---
title: "🛡️👤 Change the status of an account member: regular, admin, or banished (deleted). This endpoint is allowed only for account admins."
method: PUT
path: "/account/user"
tags: ["user", "default"]
---

# 🛡️👤 Change the status of an account member: regular, admin, or banished (deleted). This endpoint is allowed only for account admins.

`PUT /account/user`

## Request

- Base URL: `{{ server_url }}/v1`
- URL: `{{ server_url }}/v1/account/user`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/athenian/apis/title/docs/account/user/put.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- AccountUserChangeRequest: Request to change an account member's status.
  - `account` integer, required: Account ID.
  - `user` string, required: Account member ID.
  - `status` 'regular' | 'admin' | 'banished', required: Account membership role.

## Response `200`

Effective account members.

- Account: Account members ("updated" and "accounts" are not populated) and installed GitHub organizations.
  - `admins` User[], required: List of admin users.
    - `accounts` object: Mapping from user's account ID the membership status.
    - `email` string: Email of the user.
    - `id` string, required: Auth0 user identifier.
    - `impersonated_by` string: Identifier of the super admin user who is acting on behalf of.
    - `login` string, required: Auth backend user login name.
    - `native_id` string, required: Auth backend user identifier.
    - `name` string: Full name of the user.
    - `picture` string: Avatar URL of the user.
    - `updated` string, date-time: Date and time of the last profile update.
  - `regulars` User[], required: List of non-admin users.
    - `accounts` object: Mapping from user's account ID the membership status.
    - `email` string: Email of the user.
    - `id` string, required: Auth0 user identifier.
    - `impersonated_by` string: Identifier of the super admin user who is acting on behalf of.
    - `login` string, required: Auth backend user login name.
    - `native_id` string, required: Auth backend user identifier.
    - `name` string: Full name of the user.
    - `picture` string: Avatar URL of the user.
    - `updated` string, date-time: Date and time of the last profile update.
  - `organizations` Organization[], required: List of installed GitHub organizations.
    - `name` string, required
    - `avatar_url` string, required
    - `login` string, required
  - `datasources` Datasource[], required: The list of datasources configured for the account.
  - `jira` JIRAInstallation: Information about a link with JIRA.
    - `url` string, url, required: JIRA base URL.
    - `projects` string[], required: List of accessible project keys.

## Other responses

- `403`: Requesting user is not an admin of the account.
- `404`: The account was not found.

## Changes

- **2023-04-19** `59416fd802d2`: 2 info
  - added the required property `admins/items/accounts/additionalProperties/stale` to the response with the `200` status
  - added the required property `regulars/items/accounts/additionalProperties/stale` to the response with the `200` status
- **2023-01-13** `da81d83d9501`: 1 info
  - added the required property `datasources` to the response with the `200` status
- **2023-01-13** `d08637dcd231`: 1 breaking
  - removed the required property `datasources` from the response with the `200` status
- **2023-01-12** `7edfdf2bc6ec`: 1 info
  - added the required property `datasources` to the response with the `200` status

[Operation history](https://skmtc.dev/athenian/apis/title/changes/account/user/put.md)

---

[API](https://skmtc.dev/athenian/apis/title.md) - [All operations](https://skmtc.dev/athenian/apis/title/llms.txt) - [OpenAPI document](https://skmtc.dev/athenian/apis/title/revisions/110c9f7cffdd?raw)
