Add Custom Attribute in UME
Situation may arise when we feel the need of flexibility of having a customized attribute in the UME. In my case this was due to the unique number assigned to the users, which was not getting mapped in LDAP and this number was required in both the servers- UME and LDAP.
UME-LDAP mapping of the attributes can be handled through the datasource xml file. Please have a look at my earlier blog on the understanding of the same – http://scn.sap.com/community/netweaver-portal/administration-and-development/blog/2013/03/14/ume-configuration-settings–2
Now adding the custom attribute would be 3 step process
New namespace shall be defined in the datasource xml file. Open the xml in textpad and look for the datasource id CORP_LDAP. You would find that this datasource is responsible for ‘account’ and ‘user’ sharing the namespace ‘com.sap.security.core.usermanagement’. Your namespace needs to be added under the user because of the obvious reasons that we need custom field for the users. I have added the attribute with the name ’employeeid’
Map this new attribute with a LDAP attribute. Look for the attributemapping tag in the xml file and add your tag under the principal type user. There should exist an attribute/variable in LDAP which you wish to map. You can check/confirm the same this using any LDAP browser. I used LDAP Softerra to confirm that employeeid exists and is currently not in use in my system.Save these changes and upload the file back on to the server.
So we are all set for this new field in the UME. Save these changes and close the screen. Restart the server and navigate to the identity management to find the additional tab ‘Customized Information’