Body
-
At least 8 characters (the minimum is configurable per server). Servers with password complexity enabled also require an uppercase letter, a lowercase letter, a number, and one of
!@#$%^&*()-_=+~`,.. Servers that enforce password history reject a previously used password. ZIM-integrated servers also enforce ZIM's policy: at least 8 characters with an uppercase letter, a lowercase letter, and a number. A password that fails validation returns 400 with an error message naming the rule it failed (ZIM's own error text on ZIM-integrated servers). -
must match "server", "company" or "basic"
Only a Server Admin can set
serveror update aserveruser. On a role change, omittedcan_assign,can_edit_recordsandcan_delete_recordsreset to the new role's defaults.can_manage_templatesandcan_generate_documentskeep their stored values. -
Record Assignment. Company Admins, and Server Admins holding the company scope, always have it. Omitted, it keeps the stored value unless
rolechanges tobasic, which clears it. For a server-only user (server scope without the company scope)truechanges nothing, as GET already reports every permission true for them, andfalseclears it. On a role change atruesent here is kept, so a client that demotes a user by editing their GET body (every flagtruefor an admin) MUST sendfalse. On ZIM-integrated servers a grant made here survives detaching the ZIM Record Assignment policy, andfalsedoesn't remove a grant that comes from that policy. Permission bits this endpoint has no field for are kept unlessrolechanges. -
Edit Records. Lets the user edit records on forms they can view. On ZIM-integrated servers the user's ZIM policies grant or revoke this permission, and replace a value sent here at the user's next sign-in.
-
Delete Records. Lets the user delete records on forms they can view. On ZIM-integrated servers the user's ZIM policies grant or revoke this permission, and replace a value sent here at the user's next sign-in.
-
Manage Document Templates. Lets the user create, edit and delete document templates. On ZIM-integrated servers the user's ZIM policies grant or revoke this permission, and replace a value sent here at the user's next sign-in.
-
Generate Documents. Lets the user generate documents from document templates. On ZIM-integrated servers the user's ZIM policies grant or revoke this permission, and replace a value sent here at the user's next sign-in.
-
Can only unlock user
curl \
--request PUT 'https://api.iformbuilder.com/exzact/api/v80/[servername]/profiles/self/users/self' \
--header "Content-Type: application/json" \
--header "Authorization: Bearer {access_token}" \
--data '{
"first_name": "Demo",
"last_name": "User",
"role": "server"
}'
{
"first_name": "Demo",
"last_name": "User",
"role": "server"
}
{
"id": 161236
}