Update user by sub (Admin)
PUT/user-srv/users/:sub
Update user profile information by subject identifier. This endpoint is restricted to administrators and group administrators.
Access Control:
- Requires
cidaas:userupdateandcidaas:users_writescopes - Requires admin roles:
ADMIN,SECONDARY_ADMIN,SUPER_ADMIN, orUSER_CREATE - Requires membership in
CIDAAS_ADMINSgroup - Group administrators can also update users within their managed groups
Update Options:
- Update system fields using
userData(SocialIdentity) with a givenidentityIdandprovider- both must exist and comply to user's current identity - Update custom fields via
customFieldsobject - Update user status via
userStatusanduser_status_reason - Enable/disable MFA via
mfa_enabled
Important Notes:
- System fields and custom fields can be unassigned by setting the field name with value "" or null
- Fields can only be updated if they are enabled in Field Settings
- Read-only fields can be updated by admins (users cannot update them)
- Internal fields are accessible via this admin endpoint
- The
providerinuserDatamust not be changed - The
identityIdinuserDatamust match an existing identity for the user
Error Codes:
- 400 (Bad Request): Invalid request data, such as:
- Identity with specified
identityIdandproviderdoes not exist for the user - Invalid field values or data format
- Failed to prepare user update data
- Identity with specified
- 401 (Unauthorized): Missing or invalid authentication token, or user lacks required admin permissions (not a member of
CIDAAS_ADMINSgroup or missing required roles) - 404 (Not Found): User with the specified
subdoes not exist, orsubparameter is empty or "ANONYMOUS" - 417 (Expectation Failed): Request body validation failed, such as:
- Invalid field values
- Missing required fields
- Field update restrictions violated (e.g., trying to update disabled fields)
Request
Responses
- 200
- 400
- 401
- 404
- 417
Success
Bad Request
Unauthorized
Not Found
Expectation Failed