List All Permissions on a Channel

get

/content/management/api/v1.1/channels/{id}/permissions

List all permissions on a channel.

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 : ResourcePermissions
Type: object
ResourcePermissions
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 : ResourcePermission
Type: object
ResourcePermission
Show Source
Nested Schema : PermissionRole
Type: object
PermissionRole
Show Source

304 Response

Not modified.

400 Response

Bad request.

403 Response

Forbidden.

500 Response

Internal server error.
Back to Top

Examples

The following example shows how to get all channels permissions by submission of a GET request on the REST resource using cURL:

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

Example:

This lists all channels permissions.

/content/management/api/v1.1/channels/CC670675D33311173DD8E666F1B33ADA2D7DA16FABEC/permissions

Response Body

{
        "hasMore": false,
        "offset": 0,
        "count": 2,
        "limit": 2,
        "items": [
          {
            "id": "cecuserLoginIdName1",
            "roleName": "manager",
            "type": "user",
            "email": "email1",
            "fullName": "cecuser1"
          },
          {
            "id": "cecgroupLoginIdName2",
            "roleName": "manager",
            "type": "group",
            "email": "email2",
            "fullName": "cecgroup2"
          }
        ],
        "links": [
          {
            "href": "https://<hostname>/content/management/api/v1.1/channels/CC670675D33311173DD8E666F1B33ADA2D7DA16FABEC/permissions",
            "rel": "self",
            "method": "GET",
            "mediaType": "application/json"
          },
          {
            "href": "https://<hostname>/content/management/api/v1.1/channels/CC670675D33311173DD8E666F1B33ADA2D7DA16FABEC/permissions",
            "rel": "canonical",
            "method": "GET",
            "mediaType": "application/json"
          },
          {
            "href": "https://<hostname>/content/management/api/v1.1/v1.1/metadata-catalog/channels/CC670675D33311173DD8E666F1B33ADA2D7DA16FABEC/permissions",
            "rel": "describedby",
            "method": "GET",
            "mediaType": "application/schema+json"
          },
          {
            "href": "https://<hostname>/content/management/api/v1.1/channels/CC670675D33311173DD8E666F1B33ADA2D7DA16FABEC/permissions?offset=0",
            "rel": "first",
            "method": "GET",
            "mediaType": "application/json"
          },
          {
            "href": "https://<hostname>/content/management/api/v1.1/channels/CC670675D33311173DD8E666F1B33ADA2D7DA16FABEC/permissions?offset=0",
            "rel": "last",
            "method": "GET",
            "mediaType": "application/json"
          }
        ]
      }
Back to Top