Skip to content

Latest commit

 

History

History
70 lines (47 loc) · 1.89 KB

session_termination.md

File metadata and controls

70 lines (47 loc) · 1.89 KB

SessionTerminationManager

Create jobs to terminate users session

Validates the roles and permissions of the user, and creates asynchronous jobs to terminate the user's sessions. Returns the status for the POST request.

This operation is performed by calling function terminate_users_sessions.

See the endpoint docs at API Reference.

client.session_termination.terminate_users_sessions(
    [get_env_var("USER_ID")], [user.login]
)

Arguments

  • user_ids List[str]
    • A list of user IDs
  • user_logins List[str]
    • A list of user logins
  • extra_headers Optional[Dict[str, Optional[str]]]
    • Extra headers that will be included in the HTTP request.

Returns

This function returns a value of type SessionTerminationMessage.

Returns a message about the request status.

Create jobs to terminate user group session

Validates the roles and permissions of the group, and creates asynchronous jobs to terminate the group's sessions. Returns the status for the POST request.

This operation is performed by calling function terminate_groups_sessions.

See the endpoint docs at API Reference.

client.session_termination.terminate_groups_sessions([group.id])

Arguments

  • group_ids List[str]
    • A list of group IDs
  • extra_headers Optional[Dict[str, Optional[str]]]
    • Extra headers that will be included in the HTTP request.

Returns

This function returns a value of type SessionTerminationMessage.

Returns a message about the request status.