Update a User
Create or update a user with a full request body
PUT
PUT /v1/users
Update a User
Create a user or update it if it already exists, usingPUT /v1/users with the full request body. Send the complete definition, not just the fields you want to change. To change only some fields, use PATCH with a JSON Patch array and the application/json-patch+json content type, as shown in the PATCH examples below.
Permissions
Starting in OpenMetadata 2.0.3, updating another user’s profile requiresEditAll on that user. A request without the required permission returns 403 Forbidden.
Adding a user to a closed team (isJoinable: false) requires an administrator. OpenMetadata 2.0.3 also enforces this for create-or-update (PUT /v1/users) requests. Keeping an existing closed-team membership in a PUT request does not count as adding a new membership. Other authorization requirements still apply.
Body Parameters
PUT /v1/users
Returns
Returns the updated user object with the new version number.Response
Changing Domains
Only administrators can change a user’sdomains, through PATCH on /domains, a root-level patch, or PUT. Other callers, including bots, get 403.
- Re-sending: Sending the domains the user already holds, or none, still works for any caller with edit access.
- Inherited domains: Domains a user inherits from a team do not count as held. A non-admin cannot send them back.
- Other self-edits: Users can still update their own other fields, including
defaultDomain.