sym.sdk.integrations.knowbe4.is_user_in_group

sym.sdk.integrations.knowbe4.is_user_in_group(user: sym.sdk.user.User, group_id: int) bool

Whether the user exists in the group with the specified group_id. Refer to the API docs for more details.

Returns

A boolean indicating if the user is in the group.

Raises

KnowBe4Error – If no corresponding KnowBe4 user is found, or if the KnowBe4 API responds with a 4xx or 5xx status code.