Check if User Already Exists in Okta Group C#

Hello,

I am in the process of moving a whole bunch of users over to an Okta group. I am making a script that will automatically run and insert/update user informationin the Okta group. Is there a pre-existing function that checks whether a user already exists within an Okta group given a unique identifier such as an email address?

Unfortunately there is no simple/single way to return whether or not a user is a member of a given group.

You’ll likely want to use this API endpoint, or the ListUserGroups method for the .NET management SDK, to get the list of groups the user is a member of and then search the collection returned for the group in question.

I see. Thank you very much for the quick reply!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.