Gets the list of users who permission to access a given resource.
Request
GET https://www.activityinfo.org/resources/databases/{databaseId}/resources/{resourceId}/grants
Successful response
application/json
array[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 |
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/resources/ck8pu9ha07/grants