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.
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."