API Documentation
|
GET
- retrieves a list of permission sets along with their individual permissions, where a permission set defines access that a collaborator has to a file/Secure Object or folder/collection.Note: This method takes no parameters.
This API endpoint retrieves a list of permission sets along with their individual permissions.
A permission set:
The following table lists each permission set and their individual permissions:
Permission set | Permission set ID | Individual permissions |
---|---|---|
View | 1 | View |
Download | 2 | View, Print, Download |
Upload | 5 | View, Print, Download, View Other, Upload File, Create Folder * |
Modify | 3 | View, Print, Download, View Other, Upload File, Create Folder * , Rename, Remove (File), Remove (Folder) * , Move |
Manage | 6 | View, Print, Download, View Other, Upload File, Create Folder * , Rename, Remove (File), Remove (Folder) * , Move, Share |
For details about these permission sets and individual permissions and their affect on items, refer to the Detailed description - PUT method requests sections of:
* These individual permissions are not applicable when either the Modify or Manage permission set is applied to collaborators on files.
Note: Individual permissions cannot be applied to collaborators - only permission sets.
This API endpoint supports the following Cocoon Data user roles (as described in the SafeShare Administrator's and Organisation Administrator's Guides):
The Cocoon Data Platform's resources available to one of these Cocoon Data users (above) is determined by the access token submitted in the header of requests to this endpoint.
The appropriate access token as the Bearer
token:
Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJleHAiOjE0NjcwMTY2NjYsInVzZXJfbmFtZSI6ImFsZXgub...
If the request succeeded, then an HTTP response status 200 OK
is returned.
For successful requests only, a JSON-formatted response containing the following members is also returned:
object
(if the individual permission applies to files/Secure Objects only) or collection
(if the permission applies to folders/collections only) or both of these values (if the permission applies to both files and folders). server.permission.name.view
server.permission.name.view.other
server.permission.name.print
server.permission.name.download
server.permission.name.file.upload
server.permission.name.folder.create
server.permission.name.rename
server.permission.name.file.delete
server.permission.name.folder.delete
server.permission.name.move
server.permission.name.share
object
(if the permission set applies to files only) or collection
(if the permission set applies to folders only) or both of these values (if the permission set applies to both files and folders). server.permissionset.name.view
server.permissionset.name.download
server.permissionset.name.upload
server.permissionset.name.modify
server.permissionset.name.manage