Collections Permissions¶
Data Structures¶
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Read-only. The collection ID. Uniqueness is required in the combination with |
|
|
string {user, group} |
yes |
Read-only. Type of permission subject. |
|
string |
yes |
Read-only. User or group name. |
|
string {view_on_request, view, edit_on_request, full_edit} |
yes |
Read-only. Access policy level. |
|
string |
If |
Read-only. User ID when subject_type is ‘user’. Uniqueness is required in the combination with |
|
string |
If |
Read-only. Group ID when subject_type is ‘group’. Uniqueness is required in the combination with |
|
number |
If |
Read-only. Hidden. Number of users in the group. |
|
string |
If |
Read-only. Hidden. Comma separated string of user names in the group (for filtering purposes). |
Retrieve Available Attributes of the CollectionPermissionModel¶
Request
Method |
|
Path |
|
To check allowed methods, available URL parameters and possible responses please refer to the API Overview section.
Get Collection Permissions¶
Request
Method |
|
Path |
|
GET /api/v2/collection/<collection_id>/permission
Example Request
curl -s -k -X GET \
-H 'Authorization: <token>' \
'https://10.31.135.179/api/v2/collection/8754997675608244225/permission'
Response
{
"result": "success",
"collection_permission": [
{
"collection_id": "8754997675608244225",
"subject_type": "user",
"subject_name": "admin",
"access_policy": "view_on_request",
"user_id": "8754997675608244225"
},
{
"collection_id": "8754997675608244225",
"subject_type": "user",
"subject_name": "jdoe",
"access_policy": "view",
"user_id": "8754997675608244227"
}
]
}