sym.sdk.integrations.knowbe4.get_training_enrollments_for_user

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 store_purchase_id and campaign_id. Refer to the KnowBe4 API docs for more details.

Parameters
  • user – The User whose 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.

Returns

A list of all training enrollments.

Raises

KnowBe4Error – If the KnowBe4 API responds with a 4xx or 5xx status code.