POST/users/{userId}/force-logout

Forces a member to log out of the service. Once logged out, they cannot use the service in both the web and mobile environments until they log in again. Members are not logged out immediately; it takes up to 5 minutes.

When this API operation is called, the access token and the refresh token for the member expire.

Authorization

oauth2

OAuth 2.0 authentication.
For more information, see Authentication and Authorization.

Scope

directory
user

HTTP Request

POSThttps://www.worksapis.com/v1.0/users/{userId}/force-logout

Path Parameters

ParameterTypeDescription
userId string 

Member ID
- Email address
- Resource ID
- External key in "externalKey:{externalKey}" format


required
example : userf7da-f82c-4284-13e7-030f3b4c756x 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 

Response

HTTP 202

Accepted