Skip to main content
Rename a user, change their role, their currencies or their license, and return them as they now stand. Pass at least one of name, role_id, payment_currency, calculation_currency or licensed — a call with none of them has nothing to update. Sending the values the user already has changes nothing, so the same call can be sent twice. Nothing is written when a call is refused. The role decides what the user may see and do in Qobra. Only licensed users have their compensations calculated: giving a license takes one of the company’s free seats and recalculates the user’s statements, as in the Qobra web app. A name or a payment currency an HRIS syncs is kept as set here over the next syncs, as after an edit in the Qobra web app. A user’s email and status cannot be changed here, nor who they report to, which update_user_managers sets. The call is refused when:
  • a currency is not one of the company’s, or the company has multiple currencies or separate calculation currencies turned off.
  • licensed is true while the company has no licenses activated, or every license is already in use — take one off another user first.
  • the caller lacks the permission the argument needs (see below).
Changing the role needs write permission on roles; every other change needs write permission on users. A caller holding only one of the two can still make the changes it covers, as in the web app. Available only where the Qobra write tools beta is enabled. Every write is recorded in the audit trail as the Qobra MCP agent.
Example arguments

Parameters

Body

string
required
Id of the user to update — the id list_users returns. An exact email is accepted too.
string
New display name of the user. Omit to leave it as it is.
string
Id of the role to give the user — the id list_roles returns, never a name. Omit to leave their role as it is.
string
Currency the user is paid in, as a code (EUR, USD…) among the company’s currencies. Omit to leave it as it is.
string
Currency the user’s commissions are computed in, as a code among the company’s currencies. Omit to leave it as it is.
boolean
True to give the user a Qobra license (a paid seat), false to take it off. Omit to leave it as it is.

Response

Body

object
The user as they now stand, with the role they hold — the same row list_users returns. See list_users for the full field breakdown.