Token Claim using Okta Expression Language to check if user is assigned to application


I am creating a claim in the Access Token for the Authorization server thru the Okta Gui on the webpage.

I would like to know if there is an expression I can use to check if a user is assigned to a particular application. I know that you can check if a user is assigned to a group I.E. isMemberOfGroupName(“groupName1”) is there anything similar I can do for application names or Ids? Can I return an array of application names or Ids?

Please let me know if this can be done and if so how? Any help you can give would be greatly appreciated. Thank you.

Hi @ODeveloperGuy

We do not have an expression to check if a user is assigned to an application. The workaround in this case would be to assign a group to the application and then check if the user is part of this group.

I have moved this question to feature requests section as this would be a cool idea to have implemented in a future release.

Thank you for the info and inputting it as a request.