On password update, user will be forced to change it upon next login.
Note, at the moment this method does only return a 404 error,
even in cases where a 409 (Conflict) would be more appropriate,
e.g. when renaming the email address to some existing one.

User deletion

Deletes a user. Available only for administrators.
This returns a 204 No Content status code if the operation was successfully or 404 if the resource was not found.

DELETE /users/:id

Parameters:

id (required) - The ID of the user

hard_delete (optional) - If true, contributions that would usually be
moved to the ghost user
will be deleted instead, as well as groups owned solely by this user.

Create an impersonation token

Requires admin permissions.

It creates a new impersonation token. Note that only administrators can do this.
You are only able to create impersonation tokens to impersonate the user and perform
both API calls and Git reads and writes. The user will not see these tokens in their profile
settings page.

POST /users/:user_id/impersonation_tokens

Attribute

Type

Required

Description

user_id

integer

yes

The ID of the user

name

string

yes

The name of the impersonation token

expires_at

date

no

The expiration date of the impersonation token in ISO format (YYYY-MM-DD)