This content has been marked as final. Show 4 replies
The oracle.security.idm.UserProfile; has specific attributes but how can we access our own custom attrs?
This should be possible.
You get access to all user properties using the getAllUserProperties() API of oracle.security.idm.UserProfile.
Refer below link.
You need to iterate over the output of the above API and check for your attribute being not null.
Hope this helps.
thanks for that....I have tried to iterate this but only get a few attributes back...
userProfile = user.getUserObject().getUserProfile();
Iterator ps = (Iterator)userProfile;
//Iterator itr = ps.getAll();
Property prp = (Property) ps.next();
LOGGER.logp(Level.FINER, "UserIdentificationPlugIn", "process",
"The properties in OID " + prp.getName());
The properties in OID NAME
The properties in OID FIRST_NAME
The properties in OID USER_ID
The properties in OID USER_NAME
The properties in OID PASSWORD
The properties in OID LAST_NAME
Not sure why other attitributes are not getting returned?
I have tried both getAllUserProperties() and getUserProfile() and both return the same set of attributes.