Update a user
Updates the details of a specified user.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The ID of the user
Request Body
Section titled “ Request Body ”object
The email of the user
The password of the new user
Flag indicating the account skips the confirmation by email
The name of the user
The username of the user
The LinkedIn username
The Twitter username
The Discord user ID
The website of the user
The GitHub username
The organization of the user. Empty string or nil clears the field.
The number of projects a user can create
The external authentication provider UID
The external provider
The biography of the user
The location of the user
The pronouns of the user
The public email of the user
The commit email, _private for private commit email
Flag indicating the user is an administrator
Flag indicating the user can create groups
Flag indicating the user is an external user
Avatar image for user
The GitLab theme for the user
The color scheme for the file viewer
Flag indicating the user has a private profile
Admin note for this user
Flag indicating the user sees only one file diff per page
Flag indicating that advanced editor is enabled
Compute minutes quota for this user
(admin-only) Extra compute minutes quota for this user
ID for group where SAML has been configured
Flag indicating auditor status of the user
Responses
Section titled “ Responses ”OK
object
object
object
object
object
object
Example
{ "id": 1, "username": "admin", "public_email": "john@example.com", "name": "Administrator", "state": "active", "avatar_url": "https://gravatar.com/avatar/1", "avatar_path": "/user/avatar/28/The-Big-Lebowski-400-400.png", "custom_attributes": [ { "key": "foo", "value": "bar" } ], "web_url": "https://gitlab.example.com/root", "last_sign_in_at": "2015-09-03T07:24:01.670Z", "confirmed_at": "2015-09-03T07:24:01.670Z", "last_activity_on": "2015-09-03T07:24:01.670Z", "email": "john@example.com", "theme_id": 2, "color_scheme_id": 1, "projects_limit": 10, "current_sign_in_at": "2015-09-03T07:24:01.670Z", "can_create_group": true, "can_create_project": true, "two_factor_enabled": true, "private_profile": false, "preferred_language": "en", "created_by": { "id": 1, "username": "admin", "public_email": "john@example.com", "name": "Administrator", "state": "active", "avatar_url": "https://gravatar.com/avatar/1", "avatar_path": "/user/avatar/28/The-Big-Lebowski-400-400.png", "custom_attributes": [ { "key": "foo", "value": "bar" } ], "web_url": "https://gitlab.example.com/root" }}Bad Request
Not Found