Gets a user's grants for this database.
In addition to the user's role assignment, users can also be granted permissions individually to specific resources
Request
GET https://www.activityinfo.org/resources/databases/{databaseId}/users/{userId}/grants
Successful response
application/json
| object | |||
| databaseId | string | required | |
| userId | string | required | |
| version | integer | required | |
| string | required | ||
| name | string | required | |
| inviteTime | float | required | |
| activationStatus | string | Values:
|
required |
| deliveryStatus | string | Values:
|
required |
| lastLoginTime | float | required | |
| role | object | required | |
| roleId | string | The id of the role assigned to this user. | required |
| roleParameters | object | The values of the parameters defined for this role. | required |
| roleResources | array[string] | The resources (database, folder, forms, or subforms) to which the role's permissions are to apply. | required |
| grants | array[object] | required | |
| resourceId | string | required | |
| operations | array[string] | required | |
| locked | boolean | required | |
Error responses
| Status Code | Error Code | Description |
|---|---|---|
| 401 | AUTHENTICATION_ |
The request must be authenticated |
| 403 | FORBIDDEN | Permission denied |
| 404 | NOT_ |
The resource could not be found |
| 410 | DELETED | The resource has been deleted |
Example
curl -u anything:YOUR_API_TOKEN \
https://www.activityinfo.org/resources/databases/ck8oykh8m5/users/432201/grants