How to determine if a user is member of a group in one API call? Skip to main content
https://support.okta.com/help/answers?id=906f0000000i090iac&refurl=http%3a%2f%2fsupport.okta.com%2fhelp%2fanswers
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
1
2
3
4
5
Very Dissatisfied
Very satisfied
Enter content less than 200 characters.
Ask Search:
Rob EamonRob Eamon 

How to determine if a user is member of a group in one API call?

Seems to be 2 approaches. Get the list of the users from the group (not good for a list of thousands). Get the list of group from the user. Not bad but it would be nice if https://my-domain.okta.com/api/v1/users/isaac.brock%40exmple.com/groups/myGroupName was supported. An empty object would indicate not a member while an array of 1 would indicate membership. That way I wouldn't have to look through the list myself. Not a huge effort of course, but would be nice to have the server whittle the list for me.

Anyone have a different technique or other info?
Rob EamonRob Eamon
Found the answer at http://stackoverflow.com/questions/36162486/how-can-i-efficiently-find-out-if-a-user-is-a-member-of-a-group-using-the-okta-a?s=1|1.2320
Shradha GaikwadShradha Gaikwad (Okta, Inc.)
As mentioned by the asker of the question, the question has been answered by Raphael Londner on Stack Overflow. I am pasting the answer below: 

"Unfortunately you cannot as the Okta API does not currently offer an isMemberOfGroup method. You'll have to use either of the 2 APIs you mentioned in your question, whichever is the most efficient in your specific case."
Clay RomeiserClay Romeiser
Would really like to see Okta add this feature-- seems like a basic thing that would be used quite often.