- sym.sdk.integrations.knowbe4.get_training_enrollments_for_user(user: sym.sdk.user.User, store_purchase_id: Optional[int] = None, campaign_id: Optional[int] = None) List[dict] ¶
Gets all training enrollments for the given user, optionally filtered by
campaign_id. Refer to the KnowBe4 API docs for more details.
user – The
Userwhose training enrollments to retrieve.
store_purchase_id – ID for store purchase by which to filter the training enrollments.
campaign_id – ID for training campaign by which to filter the training enrollments.
A list of all training enrollments.
KnowBe4Error – If the KnowBe4 API responds with a 4xx or 5xx status code.