Session

Admin Users Session Reset

POST
/admin.users.session.reset

Wipes all valid sessions on all devices for a given user

Authorization

slackAuth admin.users:write
AuthorizationBearer <token>

In: header

Scope: admin.users:write

Header Parameters

token*string

Authentication token. Requires scope: admin.users:write

Content-Type*"application/x-www-form-urlencoded"

Value in

  • "application/x-www-form-urlencoded"

Request Body

application/x-www-form-urlencoded

user_id*string

The ID of the user to wipe sessions for

mobile_only?boolean

Only expire mobile sessions (default: false)

web_only?boolean

Only expire web sessions (default: false)

Response Body

application/json

application/json

curl -X POST "https://example.com/admin.users.session.reset" \  -H "token: string" \  -H "Content-Type: application/x-www-form-urlencoded" \  -H "Content-Type: application/x-www-form-urlencoded" \  -d 'user_id=string'
{  "ok": "True"}