sym.sdk.integrations.aws_sso.is_user_in_group¶
- sym.sdk.integrations.aws_sso.is_user_in_group(user: sym.sdk.user.User, *, group_name: str) bool ¶
Checks if the provided
User
is a member of the AWS SSO group specified.The AWS SSO group’s display name must be given, and the method will check that the group exists and is accessible. An exception will be raised if not.
- Parameters
user – The
User
to check group membership of.group_name – The display name of the AWS SSO group.
- Returns
True if the
User
is a member of the specified AWS SSO group, False otherwise.- Raises
AWSSSOError – If no AWS SSO group with the given name exists.