Okta Workflows Tips #104: How to Check if a User Is a Member of a Specific Group

Short and handy Okta Workflows tips and tricks. Read the full series.

To check if a user is a member of an Okta group, you can call the List group members API with the search parameter:

/api/v1/groups/<groupId>/users?search=id eq "<userId>"

Build the relative URL in the Text-Compose card, and pass it to the Relative URL input of the Okta-Custom API Action card.

Check if user is in group
Check if user is in group

The API call returns the user object if the user is in the group, or an empty list if the user is not.


Okta Workflows resources

Leave a Reply