SessionTerminationManager
July 28, 2025 ยท View on GitHub
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 terminateUsersSessions.
See the endpoint docs at API Reference.
try await client.sessionTermination.terminateUsersSessions(requestBody: TerminateUsersSessionsRequestBody(userIds: [Utils.getEnvironmentVariable(name: "USER_ID")], userLogins: [user.login!]))
Arguments
- requestBody
TerminateUsersSessionsRequestBody- Request body of terminateUsersSessions method
- headers
TerminateUsersSessionsHeaders- Headers of terminateUsersSessions method
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 terminateGroupsSessions.
See the endpoint docs at API Reference.
try await client.sessionTermination.terminateGroupsSessions(requestBody: TerminateGroupsSessionsRequestBody(groupIds: [group.id]))
Arguments
- requestBody
TerminateGroupsSessionsRequestBody- Request body of terminateGroupsSessions method
- headers
TerminateGroupsSessionsHeaders- Headers of terminateGroupsSessions method
Returns
This function returns a value of type SessionTerminationMessage.
Returns a message about the request status.