Skip to content

Deactivate a person

POST
/api/settings/people/{id}/deactivate
curl --request POST \
--url https://forge.example.com/api/settings/people/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/deactivate \
--header 'Authorization: Bearer <token>'

Ends all their sessions at once and refuses every way in. Their work and their name stay. Never your own, and never the last active administrator. Frees a seat. For administrators.

id
required
string format: uuid

OK

Media typeapplication/json
object
id
required
string format: uuid
email
required
string
displayName
required
string
roles
required
Array<string>
isActive
required
boolean
authenticatorApp
required
boolean
passkeys
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
isYou
required
boolean
deactivatedAt
null | string format: date-time
singleSignOn
boolean
version
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
provisioned
boolean

Example

{
"singleSignOn": false
}

A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.

Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string

Example generated

{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}