Authentication tree pull user attributes

Hi experts,
During authentication tree after LDAP decision node I would like to pull/retrieve user email_id, firstname, lastname and etc from LDAP how would I do this?
Well, I can retrieve with below getProfileProperty node but it never works which mean can not build jar using maven always throws exception like following
org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[ERROR] Non-resolvable import POM: Could not transfer artifact org.forgerock.am:openam-auth-trees:pom:6.5.3 from/to forgerock-private-releases (https://maven.forgerock.org:443/artifactory/private-releases): authorization failed for JFrog, status: 403 Forbidden @ line 36, column 25

pls advice.

Thanks

1 Like

Hi,
The most common way to achieve this would be a scripted decision node. This gives access to the idRepository object which can be used to retrieve attributes of the user profile.
https://backstage.forgerock.com/docs/am/7.2/authentication-guide/scripting-api-node.html#scripting-api-node-id-repo

2 Likes