Connect / Client / delete_all_entity_sessions

delete_all_entity_sessions

Connect.Client.delete_all_entity_sessions(**kwargs)

Deletes all active sessions for the specified entity in the specified Connect Customer instance. The operation supports only the USER entity type, so you can use it to sign out all of a user’s active sessions. Use it when you need to end a user’s access right away, for example when they leave your organization or you suspect that their credentials are compromised.

See also: AWS API Documentation

Request Syntax

response = client.delete_all_entity_sessions(
    InstanceId='string',
    EntityId='string',
    EntityType='USER'
)
Parameters:
  • InstanceId (string) –

    [REQUIRED]

    The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

  • EntityId (string) –

    [REQUIRED]

    The identifier of the entity whose sessions you want to delete. For USER, use the user ID or the user ARN.

  • EntityType (string) –

    [REQUIRED]

    The type of entity whose sessions you want to delete.

    Note

    The only valid value is USER, which signs out a user in your Connect Customer instance.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions