sym.sdk.integrations.okta.is_user_in_group

sym.sdk.integrations.okta.is_user_in_group(user: sym.sdk.user.User, *, group_id: str) bool

Checks if the provided user is a member of the Okta group specified.

The Okta group’s ID must be given, and the method will check that the group exists and is accessible. An exception will be thrown if not.

Parameters
  • user – The user to check group membership of.

  • group_id – The ID of the Okta group.

Returns

True if the user is a member of the specified Okta group, False otherwise.