update_user
Change a Paperboy CMS user's name, roles, or section scopes (Admin only). Omitted fields stay as-is; roles and sections replace the existing lists.
Instructions
Change a user's name, roles and/or section scopes (Admin only). Omitted fields are kept; roles and sections REPLACE the current lists. Changes apply from the user's next request. Returns {ok:true}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The user's id from list_users. | |
| name | No | New display name. | |
| site | No | Site slug or id to act in (multisite). Omit to use this server's default site. Call list_sites to see what exists — an empty tree or search usually means the wrong site, not missing content. | |
| roles | No | Admin = everything; Editor = all content + publish + form submissions; Author = write content within its sections; Viewer = read-only. | |
| sections | No | documentIds of top-level pages this user is limited to (its subtree). Omit or [] for the whole site. |