Update a dynamically created users attributes if they are updated in IDP

This topic has 1 reply, 2 voices, and was last updated 2 months, 1 week ago by ak.tokas.

  • Author
  • #28473

    Hi All,

    I have configured OpenAM as a Service Provider (SP), SP initiated SSO (integrated mode) and configured Just-in-time provisioning as mentioned in the below articles, and configured the SAML2 authentication module and linked to a SAML2 chain.


    SAML attribute Map : I configured attribute mapper as the below to map SAML attributes to local OpenDJ profile attributes.


    SSO flow is working as expected and creating profile dynamically.

    Issue: However OpenAM doesn’t update a dynamically created users attributes if they are updated in Identity Provider. For example, userRole will be changed time-to-time for users, however role changes will not be updated in OpenDJ.

    In order to fix this issue, I created a Scripted authentication module (Script-type: Server-side authentication) to read SAML attributes and then update in OpenDJ repository. I added this module to a chain.

    However, I’m unable to read SAML attributes/claim values in the Scripted authentication module using either session or sharedState.

    var userRole = sharedState.get(“userRole”);
    var userRoleFromSession = session.getProperty(“userRole”);

    Can you please guide me how to read attribute/claim values from SAML assertion in Scripted module?

    Thanks for your support.

    Best Regards


    Hi, Were you able to find a solution to this?

    I am trying to read the user attributes from a SAML response in Scripted module and Facing the exact same issue as you.


Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

©2021 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?