Read a Permission Set

get

/content/management/api/v1.1/repositories/{id}/permissionSets/{permissionSetId}

Read a permission set of a repository.

Request

Path Parameters
Query Parameters
Back to Top

Response

Supported Media Types

200 Response

OK.
Body ()
Root Schema : PermissionSet
Type: object
PermissionSet
Show Source
Nested Schema : contentPrivileges
Type: array
The privileges of content type.
Show Source
Nested Schema : Principal
Type: object
Principal
Show Source
Nested Schema : taxonomyPrivileges
Type: array
The privileges of taxonomy.
Show Source
Nested Schema : ContentPrivilege
Type: object
ContentPrivilege
Show Source
Nested Schema : operations
Type: array
Operations.
Show Source
Nested Schema : TaxonomyPrivilege
Type: object
TaxonomyPrivilege
Show Source
Nested Schema : nodes
Type: array
The path of the category.
Show Source
Nested Schema : operations
Type: array
Operations.
Show Source
Nested Schema : CategoryNodeBean
Type: object
Show Source

304 Response

Not modified.

400 Response

Bad request.

403 Response

Forbidden.

404 Response

Not found.

500 Response

Internal server error.
Back to Top

Examples

The following example shows how to get a permission set of a repository.

curl -X GET -H 'Accept: application/json' 'https://host:port/content/management/api/v1.1/repositories/{id}/permissionSets/{permissionSetId}'

Example

This reads a permission set of id 514E1A01602042FB992C74BB999F47A9 with repository of id 0A84F4683E51409C84C0D4AF0C23F4CF.

/content/management/api/v1.1/repositories/0A84F4683E51409C84C0D4AF0C23F4CF/permissionSets/514E1A01602042FB992C74BB999F47A9

Response Body

{
  "id": "514E1A01602042FB992C74BB999F47A9",
  "principal": {
    "name": "cecusername",
    "type": "user"
  },
  "contentPrivileges": [
    {
      "typeId": "",
      "typeName": null,
      "isValid": true,
      "operations": [
        "view"
      ]
    },
    {
      "typeId": "49B267B515C84AD7903C5B9C34EDB09E",
      "typeName": "TypeAAA",
      "isValid": true,
      "operations": [
        "view",
        "update",
        "create",
        "delete"
      ]
    },
    {
      "typeId": "8CB7D974CBB74923BF40A6CA68BED145",
      "typeName": "TypeBBB",
      "isValid": true,
      "operations": []
    }
  ],
  "taxonomyPrivileges": [
    {
      "taxonomyId": null,
      "taxonomyShortName": null,
      "isForSiteManagement": false,
      "categoryId": "",
      "nodes": null,
      "isSiteCategory": false,
      "isValid": true,
      "operations": [
        "view"
      ]
    }
  ],
  "links": [
    {
      "href": "http://<hostname>/content/management/api/v1.1/repositories/0A84F4683E51409C84C0D4AF0C23F4CF/permissionSets/514E1A01602042FB992C74BB999F47A9",
      "rel": "self",
      "method": "GET",
      "mediaType": "application/json"
    },
    {
      "href": "http://<hostname>/content/management/api/v1.1/repositories/0A84F4683E51409C84C0D4AF0C23F4CF/permissionSets/514E1A01602042FB992C74BB999F47A9",
      "rel": "canonical",
      "method": "GET",
      "mediaType": "application/json"
    },
    {
      "href": "http://<hostname>/content/management/api/v1.1/metadata-catalog/repositories/0A84F4683E51409C84C0D4AF0C23F4CF/permissionSets/514E1A01602042FB992C74BB999F47A9",
      "rel": "describedby",
      "method": "GET",
      "mediaType": "application/schema+json"
    }
  ]
}
Back to Top