appcrane_grant_app_access
Grant a user access to an app with a specified role. Accepts user ID, email, or username, and updates role idempotently.
Instructions
Grant a user access to an app at a specific per-app role. user accepts a numeric user id, an email, or a username — first match wins. role defaults to "user". Idempotent: existing rows are upgraded/downgraded to the new role. App-admin or owner of the app required (or global admin).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"slug": "<slug>",
"user": "<user>"
},
"name": "appcrane_grant_app_access"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | user | |
| slug | Yes | ||
| user | Yes | User id (numeric string), email, or username |