Deactivate a user in the organization.
DELETE
/v1/organizations/members/{user_id}
const url = 'https://api.adversarial.com/api/v1/organizations/members/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'DELETE'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.adversarial.com/api/v1/organizations/members/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”user_id
required
string format: uuid
The UUID of the user to deactivate
Responses
Section titled “Responses”User deactivated
Media typeapplication/json
object
email
required
string
first_name
required
string
icon
Relative path to the user’s avatar endpoint, e.g.
"users/{id}/avatar?v={hash}". None when the user has no avatar.
string | null
id
required
string format: uuid
last_name
required
string
deactivated_date
string | null format: date-time
joined_date
required
string format: date-time
kind
required
Kind of principal an OrganizationMember represents. Always HUMAN on the
/v1/users endpoint today; included on the wire so consumers have a single
discriminator regardless of which endpoint surfaced the row.
Wire format is SCREAMING_SNAKE_CASE so the values read as constants (HUMAN,
SERVICE_ACCOUNT).
string
last_login
string | null format: date-time
roles
required
Array<string>
Example
{ "kind": "HUMAN"}Cannot deactivate self or last admin
Forbidden - insufficient permissions
User or organization not found