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]
)
- 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.
This function returns a value of type SessionTerminationMessage
.
Returns a message about the request status.
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])
- 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.
This function returns a value of type SessionTerminationMessage
.
Returns a message about the request status.