By: Martin Leukam user 14 Nov 2018 at 12:46 p.m. CST

3 Responses
Martin Leukam gravatar
I'm new to your product an following this guide: https://gluu.org/docs/ce/3.1.4/integration/saas/office/ When I want to custom attributes named IDPEmail, ImmutableID and objectguid i get this error: ![](https://cloud.gms-schwarzach.de/s/drsJoGncFRkQ2QM/preview) Following the "docs" doesn't help me. What am I doing wrong here? Thanks in advance! Martin L.

By Aliaksandr Samuseu staff 14 Nov 2018 at 1:17 p.m. CST

Aliaksandr Samuseu gravatar
Hi, Martin. You need to add those attributes to schema first, only after that you'll be able to register them in web UI. Please check [this doc](https://gluu.org/docs/ce/3.1.4/admin-guide/attribute/#opendj) for details.

By Martin Leukam user 15 Nov 2018 at 10:41 a.m. CST

Martin Leukam gravatar
Thanks for your fast reply - great support! My /opt/opendj/config/schema/77-customAttributes.ldif looks like this: ``` dn: cn=schema objectClass: top objectClass: ldapSubentry objectClass: subschema cn: schema objectClasses: ( 1.3.6.1.4.1.48710.1.4.101 NAME 'gluuCustomPerson' SUP ( top ) AUXILIARY MAY ( telephoneNumber $ mobile $ carLicense $ facsimileTelephoneNumber $ departmentNumber $ employeeType $ cn $ st $ manager $ street $ postOfficeBox $ employeeNumber $ preferredDeliveryMethod $ roomNumber $ secretary $ homePostalAddress $ l $ postalCode $ description $ title $objectguid $ IDPEmail $ ImmutableID )$ X-ORIGIN 'Gluu - Custom persom objectclass' ) attributeTypes: ( 1.3.6.1.4.1.48710.1.3.1001 NAME 'objectguid' DESC 'Custom Attribute Office 365' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 X-ORIGIN 'Gluu custom attribute' ) attributeTypes: ( 1.3.6.1.4.1.48710.1.3.1002 NAME 'ImmutableID' DESC 'Custom Attribute Office 365' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 X-ORIGIN 'Gluu custom attribute' ) attributeTypes: ( 1.3.6.1.4.1.48710.1.3.1003 NAME 'IDPEmail' DESC 'Custom Attribute Office 365' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 X-ORIGIN 'Gluu custom attribute' ) ``` Anf I finally restart `service opendj restart` I still get the same error - what am I missing? Thank you for any hints...

By Aliaksandr Samuseu staff 15 Nov 2018 at 11:21 a.m. CST

Aliaksandr Samuseu gravatar
Here is how this file looks like in my case: ``` dn: cn=schema objectClass: top objectClass: ldapSubentry objectClass: subschema cn: schema attributeTypes: ( 1.3.6.1.4.1.48710.1.3.1400 NAME 'customTest' DESC 'Custom Attribute' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 X-ORIGIN 'Gluu custom attribute' ) objectClasses: ( 1.3.6.1.4.1.48710.1.4.101 NAME 'gluuCustomPerson' SUP ( top ) AUXILIARY MAY ( telephoneNumber $ mobile $ carLicense $ facsimileTelephoneNumber $ departmentNumber $ employeeType $ cn $ st $ manager $ street $ postOfficeBox $ employeeNumber $ preferredDeliveryMethod $ roomNumber $ secretary $ homePostalAddress $ l $ postalCode $ description $ title $ customTest ) X-ORIGIN 'Gluu - Custom persom objectclass' ) ``` Two notable differences: 1. Ordering: your "attributeTypes" definitions go after "objectClasses" 2. Empty lines between them - and in this case it actually may matter Check `/opt/opendj/logs/server.out` file, there must not be any schema-related errors. Re-arrange your definitions to match example above, restart OpenDJ and check that log again.