v5

latestSwagger 2.0MIT2026-08-03485217850.7 KB
admin

Edit an existing user

patch/admin/users/{username}

Path parameters

usernamestring required

username of the user whose data is to be edited

Request body

activeboolean

Whether the user account is active

adminboolean

Whether the user has administrator privileges

allow_create_organizationboolean

Whether the user can create organizations

allow_git_hookboolean

Whether the user can use Git hooks

allow_import_localboolean

Whether the user can import local repositories

descriptionstring

The user's personal description or bio

emailstring email

The email address of the user

full_namestring

The full display name of the user

locationstring

The user's location or address

login_namestring required

identifier of the user, provided by the external authenticator (if configured)

max_repo_creationinteger

Maximum number of repositories the user can create

must_change_passwordboolean

Whether the user must change password on next login

passwordstring

The plain text password for the user

prohibit_loginboolean

Whether the user is prohibited from logging in

restrictedboolean

Whether the user has restricted access privileges

source_idinteger required

The authentication source ID to associate with the user

visibility'public' | 'limited' | 'private'

User visibility level: public, limited, or private

websitestring

The user's personal website URL

Response

User

activeboolean

Is user active

avatar_urlstring

URL to the user's avatar

createdstring date-time
descriptionstring

the user's description

emailstring email
followers_countinteger

user counts

following_countinteger
full_namestring

the user's full name

html_urlstring

URL to the user's gitea page

idinteger

the user's id

is_adminboolean

Is the user an administrator

languagestring

User locale

last_loginstring date-time
locationstring

the user's location

loginstring

login of the user, same as username

login_namestring

identifier of the user, provided by the external authenticator (if configured)

prohibit_loginboolean

Is user login prohibited

restrictedboolean

Is user restricted

source_idinteger

The ID of the user's Authentication Source

starred_repos_countinteger
visibility'public' | 'limited' | 'private'

User visibility level option: public, limited, private

websitestring

the user's website