Retrieve Permission Details

get

/ic/api/process/v1/spaces/{spaceId}/permissions/{principal}

Retrieve details of the specified permission including the name of the user, the role.

Request

Path Parameters
Back to Top

Response

Supported Media Types

200 Response

Success. Retrieve Space Permission.
Body ()
Root Schema : grant
Type: object
The representation of a Permission

401 Response

Unauthorized

403 Response

Privileges required. User can't view the space permissions

404 Response

Space/Space Permissions not found.

500 Response

Error in retrieving space permission
Back to Top

Examples

The following example shows how to retrieve details of a permissions by submitting a GET request on the REST resource.

Send Request

The following example shows the contents of the send request:

https://example.com/ic/api/process/v1/spaces/<spaceId>/permissions/<principal>

Where,

Example of Response Header

Status Code: 200 OK
Date:  Tue, 21 Mar 2017 08:39:54 GMT
Content-Type:  application/json

Example of Response Body

{
  "user": "jsmith",
  "role": "OWNER",
  "links": [
    {
      "href": "http://example.com:7001/ic/api/process/v1/spaces/89f7e082-6855-4a75-b2a6-6a726aff7f23/permissions/jsmith",
      "rel": "self"
    },
    {
      "href": "http://example.com:7001/ic/api/process/v1/spaces/89f7e082-6855-4a75-b2a6-6a726aff7f23/permissions/jsmith",
      "rel": "canonical"
    },
    {
      "href": "http://example.com:7001/ic/api/process/v1/spaces/89f7e082-6855-4a75-b2a6-6a726aff7f23",
      "rel": "parent"
    }
  ]
}
Back to Top