Current section
Files
Jump to
Current section
Files
priv/docs/methods/admin.users.session.invalidate.json
{
"args": {
"session_id": {
"desc": "ID of the session to invalidate.",
"example": "12345",
"required": true,
"type": "integer"
},
"team_id": {
"desc": "ID of the workspace that the session belongs to.",
"example": "T1234",
"required": false
},
"user_id": {
"desc": "ID of the user that the session belongs to.",
"example": "U12345",
"required": true
}
},
"desc": "Revoke a single session for a user. The user will be forced to login to Slack.",
"errors": {
"admin_unauthorized": "The token provided doesn't have permission to revoke a session.",
"cannot_invalidate_primary_owner": "Only the primary owner of an organization can invalidate a primary owner's sessions.",
"feature_not_enabled": "The token provided can't call this method.",
"not_an_admin": "This method must be called by an Org Owner or Admin.",
"session_invalidation_failed": "There was an error invalidating the session.",
"session_not_found": "The requested session wasn't found.",
"unknown_method": "This method is currently not available.",
"user_not_found": "The requested user wasn't found."
},
"rate_limit": {
"label": "Tier 2: 20+ per minute",
"url": "https://docs.slack.dev/apis/web-api/rate-limits"
},
"scopes": {
"user": [
{
"name": "admin.users:write",
"url": "https://docs.slack.dev/reference/scopes/admin.users.write"
}
]
}
}