manage_user
Create, update, delete, list, or fetch Gramps Web users and change their passwords via the Gramps API. Handles user administration with role, email, and tree data.
Instructions
Administer Gramps Web users. Writes: create, update, delete, change_password.
action=list lists users (GET /users/); action=get returns one user by
name; action=create POSTs data (full_name, email, password, role and
tree required by the API) to /users/; action=update PUTs data (role,
email, full_name, name_new, tree) to /users//; action=delete
removes the user; action=change_password POSTs with data = {"old_password",
"new_password"}. Requires owner/admin permissions upstream for most actions.
Args: action: "list", "get", "create", "update", "delete" or "change_password". user_name: The user's name; required for get/update/delete/change_password. data: Body dict; required for create/update/change_password. instance: Gramps Web base URL from get_instances; default = first.
Returns: dict: {"status", "url", "data": user list/object or empty}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| action | Yes | ||
| instance | No | ||
| user_name | No |