sym.sdk.integrations.okta

Helpers for interacting with the Okta API within the Sym SDK.

Functions

is_user_in_group(user, *, group_id)

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

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.