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.
await client.sessionTermination.terminateUsersSessions({
userIds: [getEnvVar('USER_ID')],
userLogins: [user.login!],
} satisfies TerminateUsersSessionsRequestBody);
TerminateUsersSessionsRequestBody
TerminateUsersSessionsOptionalsInputThis 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 terminateGroupsSessions.
See the endpoint docs at API Reference.
await client.sessionTermination.terminateGroupsSessions({
groupIds: [group.id],
} satisfies TerminateGroupsSessionsRequestBody);
TerminateGroupsSessionsRequestBody
TerminateGroupsSessionsOptionalsInputThis function returns a value of type SessionTerminationMessage.
Returns a message about the request status.