Skip to content

Latest commit

 

History

History
74 lines (47 loc) · 2.32 KB

SessionTermination.md

File metadata and controls

74 lines (47 loc) · 2.32 KB

ISessionTerminationManager

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.

await client.SessionTermination.TerminateUsersSessionsAsync(requestBody: new TerminateUsersSessionsRequestBody(userIds: Array.AsReadOnly(new [] {Utils.GetEnvVar("USER_ID")}), userLogins: Array.AsReadOnly(new [] {NullableUtils.Unwrap(user.Login)})));

Arguments

  • requestBody TerminateUsersSessionsRequestBody
    • Request body of terminateUsersSessions method
  • headers TerminateUsersSessionsHeaders
    • Headers of terminateUsersSessions method
  • cancellationToken System.Threading.CancellationToken?
    • Token used for request cancellation.

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.

await client.SessionTermination.TerminateGroupsSessionsAsync(requestBody: new TerminateGroupsSessionsRequestBody(groupIds: Array.AsReadOnly(new [] {group.Id})));

Arguments

  • requestBody TerminateGroupsSessionsRequestBody
    • Request body of terminateGroupsSessions method
  • headers TerminateGroupsSessionsHeaders
    • Headers of terminateGroupsSessions method
  • cancellationToken System.Threading.CancellationToken?
    • Token used for request cancellation.

Returns

This function returns a value of type SessionTerminationMessage.

Returns a message about the request status.