Request URI: /path/to/some/resource/fcr:accessroles Methods: GET, POST, DELETE Warning |
---|
Arbitrary access roles may be set through this API. However, they are only enforced when paired with a Policy Enforcement Point that is aware of access roles. |
Get a list of all the roles assigned to principals on this resourceOutput formats: application/json Query Parameters: When supplied, gets the list of effective roles for this resource, including those inherited from the parentExample: Code Block |
---|
curl "http://localhost:8080/rest/49/3d/24/41/493d2441-0541-41c7-a23b-09d1f17d4a0f/fcr:accessroles"
|
Response: Code Block |
---|
Status: 200 OK
Headers:
Content-Type: application/json
Transfer-Encoding: chunked
Server: Jetty(8.1.11.v20130520)
Body:
{"principal name 3":["admin"],"principal name 1":["reader"],"principal name 2":["writer"]}
|
Status: Status |
---|
| |
---|
subtle | true |
---|
colour | Green |
---|
title | 200 |
---|
| OK: if access roles retrieved successfully Status |
---|
| |
---|
subtle | true |
---|
colour | Green |
---|
title | 204 |
---|
| No Content |