Show TOC

 Adding Custom Attributes to the User ProfileLocate this document in the navigation structure

Use

If you need user attributes that the user management engine (UME) does not provide, you can define additional attributes for the user profile. For example, if there is an attribute available on your LDAP directory that you want administrators to be able to view with identity management, you can create a custom attribute and map it to the LDAP directory attribute.

You can define the following kinds of custom user attributes:

  • Administrator-managed custom attributes
  • Self-managed custom attributes
  • Publicly viewable custom attributes

Only user administrators can view and modify administrator-managed custom attributes. Likewise users can only view and modify their own self-managed custom attributes. To enable business users and administrators to view and modify an attribute, enable the attribute for both users. When enabled, these attributes appear in the user profile on the Customized Information tab.

Note  

You can display a maximum of 30 custom attributes on the Customized Information tab.

Publicly viewable custom attributes are viewable, but not editable, in the user viewer to all users with the applicable authorizations. How to configure these attributes is described in another procedure.

For more information, see Allowing Users to View the Contact Information of Other Users .

Prerequisites
  • This procedure requires you to restart SAP NetWeaver Application Server (AS) Java, so you should plan for the required downtime while the AS Java restarts.
  • The attributes are mapped to the LDAP directory attributes in the data source configuration file.

    For more information, see Customizing a UME Data Source Configuration .

Procedure
  1. Start the user management configuration by choosing Configuration Management → .Identity Management.

    For more information, see Configuring User Management .

  2. Choose the User Admin UI tab.
  3. Choose Modify configuration.
  4. Under Custom Attributes of the user profile, enter data as required.

    Use the following syntax:

    <namespace>: <attribute>

    The field names appear in the user profile in the same order as they appear in the list and with exactly the same text. Separate the entries with semicolons (; ). Namespace is optional.

    Note
    • Do not use semicolons (; ) in the attribute names, as the UME interprets these as separators.
    • You cannot provide translations for these texts.
    • Include a namespace for the custom properties. If you do not include a namespace, the UME assigns the properties to the default namespace. The UME excludes custom properties from the export of user data for the default namespace.

Settings for Custom Attributes

Setting Description

Administrator-Managed Custom Attributes

Enables you to add custom fields to the user profile in the user interface. These attributes are only visible for administrator users. To enable business users to view these attributes for their user account, enter the same data for Self-Managed Custom Attributes.

MyNamespace:Room Number; MyNamespace:Building; MyNamespace:Direct Report

This adds the following attributes to the user profile: Room Number, Building, and Direct Report.

User-Managed Custom Attributes

Enables you to add custom fields to the user profile in the user interface. These attributes are only visible when users view their own profile. To enable administrators to view these attributes, enter the same data for Administrator-Managed Custom Attributes.

MyNamespace:Car License Plate;

MyNamespace:Home Telephone

This adds the following attributes to the user profile: Car License Plate and Home Telephone.

Public-Viewable Custom Attributes

Enables you to add custom fields that are visible to any user.

MyNamespace:Car Color;

MyNamespace:Car Make

This makes the following attributes visible to any user: Car Color and Car Make.

 

  1. Choose Save all changes.
  2. Restart the AS Java.
Result

Administrators can now view and modify administrator-managed custom attributes.

For other users to view and modify their own self-managed custom attributes, you must enable self-management for users. Assign the users to a role that includes the UME action UME.Manage_My_Profile.

More information: