Skip to main content

Update a user

PUT 

/tap/api/v1/users/:userId

Updates a user. Only the fields present in the request body are changed; a field sent as null is treated as omitted. Allowed for an admin or the user themselves; only an admin may change userRole, active, commonName, or awsRoles (a non-admin may send them unchanged). Group memberships are updated when fullName, email, or userRole changes. Changing commonName or fullName does not issue a new certificate; use POST /tap/api/v1/users/{userId}/certificate. A non-empty bundlePath in the response is replaced with a presigned download link valid for up to 8 hours.

Request​

Responses​

The result of the update. When the change could not be saved, success is false and data is absent; this includes a userRole that is not exactly user, admin, or super_admin.