Administrative endpoint to update the details of another user in the organization.
Supports everything an administrator can do to edit details of another
user's account, including editing full name,
role, and custom profile
fields.
Usage examples
Python
curl
#!/usr/bin/env pythonimportzulip# The user for this zuliprc file must be an organization administratorclient=zulip.Client(config_file="~/zuliprc-admin")# Change a user's full name given a user ID.result=client.update_user_by_id(user_id,full_name="New Name")# Change value of the custom profile field with ID 9.result=client.update_user_by_id(user_id,profile_data=[{"id":9,"value":"some data"}])print(result)
Only organization owners can add or remove the owner role.
The owner role cannot be removed from the only organization owner.
Changes: New in Zulip 3.0 (feature level 8), replacing the previous
pair of is_admin and is_guest boolean parameters. Organization moderator
role added in Zulip 4.0 (feature level 60).
A dictionary containing the to be updated custom profile field data for the user.
Response
Example response(s)
Changes: As of Zulip 7.0 (feature level 167), if any
parameters sent in the request are not supported by this
endpoint, a successful JSON response will include an
ignored_parameters_unsupported array.
A typical successful JSON response may look like:
{"msg":"","result":"success"}
A typical unsuccessful JSON response:
{"code":"BAD_REQUEST","msg":"Guests cannot be organization administrators","result":"error"}