
DoganA.57760 (Customer) asked a question.
Hello,
I am trying to setup a mapping rule using Okta Expression Language for a specific field, and currently encountering an issue when using the user.getGroups() function, it seems to not be available/supported in this context while supposedly possible when reading the documentation page :
I do not observe this behaviour with other functions;

Got it! If it is a SAML application, you could add the expression language as a SAML Attribute which may work better. That way when a user logs in, it sends the groups in the SAML assertion. This also depends if this works for your application.
To do this: you would go to the Application in Okta, navigate to the "Authentication" tab, select edit, go under the SAML 2.0 configuration and add group attribute statements or attribute statements.