跳转到主要内容
PATCH
PATCH /admin/api/users/{id}

授权

gproxy_session
string
cookie
必填

请求头

x-gproxy-admin-scope
string

Administrative scope selected by the caller.

路径参数

id
string
必填

请求体

application/json
enabled
boolean | null
name
string | null
oauthClientAllowlist
string[] | null

Absent leaves the allowlist alone, null clears it back to inheriting, a list replaces it. The password is deliberately not patchable here: changing one revokes sessions, so it is its own operation.

role
string | null

响应

Success

createdAtMs
integer<int64>
必填
enabled
boolean
必填
hasPassword
boolean
必填

Whether a console/portal password is set. password_hash itself has no field here and no accessor anywhere.

id
string
必填
name
string
必填
oauthClientAllowlist
string[] | null
必填

None inherits the levels above; an empty list denies every client for this user.

role
string
必填

Instance-wide role, admin or user. Organization and team roles are memberships and are not this.