List Permission Sets

get

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

List permission sets of a repository.

Request

Path Parameters
Query Parameters
  • This parameter accepts a non negative integer and is used to control the size of the result.
    Default Value: 100
  • This parameter accepts a non negative integer and is used to control the start index of the result.
    Default Value: 0
  • This parameter accepts a boolean flag. If specified as true, then the returned result must include the total result count.
    Default Value: false
Back to Top

Response

Supported Media Types

200 Response

OK.
Body ()
Root Schema : PermissionSets
Type: object
PermissionSets
Show Source
Nested Schema : aggregationResults
Type: array
Aggregation results.
Show Source
Nested Schema : items
Type: array
Singular resources contained in the collection.
Show Source
Nested Schema : pinned
Type: array
Pinned items. Shows items pinned at the top of search list
Show Source
Nested Schema : AggregationResult
Type: object
Show Source
Nested 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 list permission sets of a repository.

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

Example 1

This lists all permission sets of repository with id 0A84F4683E51409C84C0D4AF0C23F4CF.

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

Response Body

{
  "hasMore": false,
  "offset": 0,
  "count": 2,
  "limit": 2,
  "items": [
    {
      "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"
        }
      ]
    },
    {
      "id": "3C1B236C10C54C80AA2ADDACCAFB1B4A",
      "principal": {
        "name": "cecgroupname",
        "type": "group",
        "scope": "CEC"
      },
      "contentPrivileges": [
        {
          "typeId": "",
          "typeName": null,
          "isValid": true,
          "operations": [
            "view"
          ]
        },
        {
          "typeId": "EF4C64E6BF81419F9743A8A4348A69EB",
          "typeName": "Image",
          "isValid": true,
          "operations": [
            "view",
            "update",
            "create",
            "delete"
          ]
        }
      ],
      "taxonomyPrivileges": [
        {
          "taxonomyId": null,
          "taxonomyShortName": null,
          "isForSiteManagement": false,
          "categoryId": "",
          "nodes": null,
          "isSiteCategory": false,
          "isValid": true,
          "operations": []
        },
        {
          "taxonomyId": "691B31CFB0F14381ACDF9E0CE0B63CD1",
          "taxonomyShortName": "TXM",
          "categoryId": "CEFC8C6C2AA245AB9F719FBE9C45D88A",
          "nodes": [
            {
              "id": "CEFC8C6C2AA245AB9F719FBE9C45D88A",
              "name": "Cat1",
              "apiName": "txm-c"
            }
          ],
          "isValid": true,
          "operations": [
            "view"
          ]
        },
        {
          "taxonomyId": "691B31CFB0F14381ACDF9E0CE0B63CD1",
          "taxonomyShortName": "TXM",
          "categoryId": "0EAC9A777E73415AA4BC3CDB61FBD59C",
          "nodes": [
            {
              "id": "0EAC9A777E73415AA4BC3CDB61FBD59C",
              "name": "Cat2",
              "apiName": "txm-c1"
            }
          ],
          "isValid": true,
          "operations": [
            "view",
            "categorize"
          ]
        }
      ],
      "links": [
        {
          "href": "http://<hostname>/content/management/api/v1.1/repositories/0A84F4683E51409C84C0D4AF0C23F4CF/permissionSets/3C1B236C10C54C80AA2ADDACCAFB1B4A",
          "rel": "self",
          "method": "GET",
          "mediaType": "application/json"
        }
      ]
    }
  ],
  "links": [
    {
      "href": "http://<hostname>/content/management/api/v1.1/repositories/0A84F4683E51409C84C0D4AF0C23F4CF/permissionSets",
      "rel": "self",
      "method": "GET",
      "mediaType": "application/json"
    },
    {
      "href": "http://<hostname>/content/management/api/v1.1/repositories/0A84F4683E51409C84C0D4AF0C23F4CF/permissionSets",
      "rel": "canonical",
      "method": "GET",
      "mediaType": "application/json"
    },
    {
      "href": "http://<hostname>/content/management/api/v1.1/metadata-catalog/repositories/0A84F4683E51409C84C0D4AF0C23F4CF/permissionSets",
      "rel": "describedby",
      "method": "GET",
      "mediaType": "application/schema+json"
    },
    {
      "href": "http://<hostname>/content/management/api/v1.1/repositories/0A84F4683E51409C84C0D4AF0C23F4CF/permissionSets?offset=0",
      "rel": "first",
      "method": "GET",
      "mediaType": "application/json"
    },
    {
      "href": "http://<hostname>/content/management/api/v1.1/repositories/0A84F4683E51409C84C0D4AF0C23F4CF/permissionSets?offset=0",
      "rel": "last",
      "method": "GET",
      "mediaType": "application/json"
    }
  ]
}

Example 2

This lists all permission sets of repository with id 8C2CF1B2EFE2446297825C4B869D2BF2, which happen to be the permissions sets for a granular security site's content viewer and contributor groups.

/content/management/api/v1.1/repositories/8C2CF1B2EFE2446297825C4B869D2BF2/permissionSets

Response Body

{
  "hasMore": false,
  "offset": 0,
  "count": 2,
  "limit": 2,
  "items": [
    {
      "id": "C5C6CE6503E04D71991C32B88535C8D7",
      "principal": {
        "name": "Site1_contributor",
        "type": "group",
        "scope": "CEC"
      },
      "contentPrivileges": [
        {
          "typeId": "",
          "typeName": null,
          "typeDisplayName": null,
          "isValid": true,
          "operations": [
            "view",
            "update",
            "create",
            "delete"
          ]
        }
      ],
      "taxonomyPrivileges": [
        {
          "taxonomyId": null,
          "taxonomyShortName": null,
          "isForSiteManagement": false,
          "categoryId": "",
          "nodes": null,
          "isSiteCategory": false,
          "isValid": true,
          "operations": []
        },
        {
          "taxonomyId": "AF6B75DBBCA244FC93166610EA2BA62A",
          "taxonomyShortName": "SST",
          "isForSiteManagement": true,
          "categoryId": "4136D8D1FD5C4241A3E08A42765D615C",
          "nodes": [
            {
              "id": "BE58B209A968480480AA2AFBCE9C2D64",
              "name": "org1",
              "apiName": "sst-o"
            },
            {
              "id": "F54C934D081B4768B3A93A45C0E6955C",
              "name": "team1",
              "apiName": "sst-o-d"
            },
            {
              "id": "4136D8D1FD5C4241A3E08A42765D615C",
              "name": "Site1_site_category",
              "apiName": "sst-o-t-s"
            }
          ],
          "isSiteCategory": true,
          "isValid": true,
          "operations": [
            "view",
            "categorize"
          ]
        }
      ],
      "links": [
        {
          "href": "http://<hostname>/content/management/api/v1.1/repositories/8C2CF1B2EFE2446297825C4B869D2BF2/permissionSets/C5C6CE6503E04D71991C32B88535C8D7",
          "rel": "self",
          "method": "GET",
          "mediaType": "application/json"
        }
      ]
    },
    {
      "id": "BF0F6132885D425688A58DD26D0EE1D8",
      "principal": {
        "name": "Site1_viewer",
        "type": "group",
        "scope": "CEC"
      },
      "contentPrivileges": [
        {
          "typeId": "",
          "typeName": null,
          "typeDisplayName": null,
          "isValid": true,
          "operations": [
            "view"
          ]
        }
      ],
      "taxonomyPrivileges": [
        {
          "taxonomyId": null,
          "taxonomyShortName": null,
          "isForSiteManagement": false,
          "categoryId": "",
          "nodes": null,
          "isSiteCategory": false,
          "isValid": true,
          "operations": []
        },
        {
          "taxonomyId": "AF6B75DBBCA244FC93166610EA2BA62A",
          "taxonomyShortName": "SST",
          "isForSiteManagement": true,
          "categoryId": "4136D8D1FD5C4241A3E08A42765D615C",
          "nodes": [
            {
              "id": "BE58B209A968480480AA2AFBCE9C2D64",
              "name": "org1",
              "apiName": "sst-o"
            },
            {
              "id": "F54C934D081B4768B3A93A45C0E6955C",
              "name": "team1",
              "apiName": "sst-o-d"
            },
            {
              "id": "4136D8D1FD5C4241A3E08A42765D615C",
              "name": "Site1_site_category",
              "apiName": "sst-o-t-s"
            }
          ],
          "isSiteCategory": true,
          "isValid": true,
          "operations": [
            "view"
          ]
        }
      ],
      "links": [
        {
          "href": "http://<hostname>/content/management/api/v1.1/repositories/8C2CF1B2EFE2446297825C4B869D2BF2/permissionSets/BF0F6132885D425688A58DD26D0EE1D8",
          "rel": "self",
          "method": "GET",
          "mediaType": "application/json"
        }
      ]
    }
  ],
  "links": [
    {
      "href": "http://<hostname>/content/management/api/v1.1/repositories/8C2CF1B2EFE2446297825C4B869D2BF2/permissionSets",
      "rel": "self",
      "method": "GET",
      "mediaType": "application/json"
    },
    {
      "href": "http://<hostname>/content/management/api/v1.1/repositories/8C2CF1B2EFE2446297825C4B869D2BF2/permissionSets",
      "rel": "canonical",
      "method": "GET",
      "mediaType": "application/json"
    },
    {
      "href": "http://<hostname>/content/management/api/v1.1/metadata-catalog/repositories/8C2CF1B2EFE2446297825C4B869D2BF2/permissionSets",
      "rel": "describedby",
      "method": "GET",
      "mediaType": "application/json"
    },
    {
      "href": "http://<hostname>/content/management/api/v1.1/repositories/8C2CF1B2EFE2446297825C4B869D2BF2/permissionSets?offset=0",
      "rel": "first",
      "method": "GET",
      "mediaType": "application/json"
    },
    {
      "href": "http://<hostname>/content/management/api/v1.1/repositories/8C2CF1B2EFE2446297825C4B869D2BF2/permissionSets?offset=0",
      "rel": "last",
      "method": "GET",
      "mediaType": "application/json"
    }
  ]
}
Back to Top