Sun OpenSSO Enterprise Policy Agent 3.0 User's Guide for J2EE Agents

Fetching Profile Attributes in J2EE Agents

To obtain user-specific information by fetching profile attributes, assign a mode to the profile attribute property and map the profile attributes to be populated under specific names for the currently authenticated user. The following example first demonstrates how to assign the REQUEST_ATTRIBUTE mode for fetching profile attributes and then demonstrates a way to map those attributes:

Example:

In OpenSSO Enterprise Console, Select the REQUEST_ATTRIBUTE mode option of the Profile Attribute Fetch Mode property (Tab: Application, Name: com.sun.identity.agents.config.profile.attribute.fetch.mode).

Then, map profile attributes using the property labeled Profile Attribute Mapping (Tab: Application, Name: com.sun.identity.agents.config.profile.attribute.mapping), such as illustrated in the following example:

Map Key

cn

Corresponding Map Value

CUSTOM-Common-Name

Map Key

mail

Corresponding Map Value

CUSTOM-Email

When you are done setting the Profile Attribute Mapping property as described in this example, it appears in OpenSSO Enterprise Console with the following format:


[cn]=CUSTOM-Common-Name
[mail]=CUSTOM-Email