...
Checking permissions for a user
...
Jira | ||||||||
---|---|---|---|---|---|---|---|---|
|
...
The access token must be passed to the API in the Authorization header, e.g.:
GET ${ARCHIE_HOSTNAME}/oauth2/permissions HTTP/1.1
Authorization: Bearer 3e8ec1a3d43c983b57df0616b498c04807b466e919999aa0f3f3aabca1dd48cc
The response is a JSON object (MIME type "application/json") like this:
Wiki Markup |
---|
[
{
"resource": "folder",
"entity": "all",
"grants": [
"delete",
"view_folder",
"read_files",
"write"
]
}
{
"resource": "person",
"entity": "all",
"grants": [
"view",
"view_private",
"write",
"delete",
"mark_duplicate",
"select_topics",
"affiliation_crud"
]
}
] |
Checking permissions for a single review
...