View Role Properties (v1)
Newer Version Available
A newer version of this API is available with simplified payloads aligned with the UI.
This operation returns the properties associated with a role.
Path Parameters
- roleId string required
 
Responses
- 200
 
OK
- application/json
 
- Schema
 - Example (from schema)
 - Example 1
 
Schema
roleProperties object[]
{
  "roleProperties": [
    {
      "visibility": 0,
      "description": "string",
      "role": {
        "roleId": 0,
        "roleName": "string",
        "flags": {
          "disabled": true
        }
      },
      "categoryPermission": {
        "categoriesPermissionList": [
          {
            "srmReportSet": 0,
            "type": 0,
            "srmReportType": 0,
            "clientSidePackage": true,
            "categoryName": "string",
            "_type_": 0,
            "consumeLicense": true,
            "categoryId": 0,
            "permissionId": 0,
            "permissionName": "string"
          }
        ]
      },
      "securityAssociations": {
        "associations": [
          {
            "userOrGroup": [
              {
                "srmReportSet": 0,
                "type": 0,
                "srmReportType": 0,
                "clientSidePackage": true,
                "userId": 0,
                "_type_": 0,
                "userName": "string",
                "consumeLicense": true
              }
            ],
            "properties": {
              "isCreatorAssociation": true,
              "role": {
                "_type_": 0,
                "roleId": 0,
                "roleName": "string"
              }
            }
          }
        ],
        "ownerAssociations": {}
      }
    }
  ]
}
{
  "roleProperties": [
    {
      "visibility": 0,
      "description": "testing role modification.",
      "role": {
        "roleId": 34,
        "roleName": "TestRole",
        "flags": {
          "disabled": false
        }
      },
      "categoryPermission": {
        "categoriesPermissionList": [
          {
            "srmReportSet": 0,
            "type": 0,
            "srmReportType": 0,
            "clientSidePackage": true,
            "categoryName": "Alert",
            "_type_": 121,
            "consumeLicense": true,
            "categoryId": 117
          },
          {
            "srmReportSet": 0,
            "type": 0,
            "srmReportType": 0,
            "clientSidePackage": true,
            "permissionId": 2,
            "permissionName": "Agent Management",
            "categoryName": "Client",
            "_type_": 122,
            "consumeLicense": true,
            "categoryId": 102
          },
          {
            "srmReportSet": 0,
            "type": 0,
            "srmReportType": 0,
            "clientSidePackage": true,
            "permissionId": 3,
            "permissionName": "Agent Scheduling",
            "categoryName": "Client",
            "_type_": 122,
            "consumeLicense": true,
            "categoryId": 102
          }
        ]
      },
      "securityAssociations": {
        "associations": [
          {
            "userOrGroup": [
              {
                "srmReportSet": 0,
                "type": 0,
                "srmReportType": 0,
                "clientSidePackage": true,
                "userId": 1,
                "_type_": 13,
                "userName": "testadmin",
                "consumeLicense": true
              }
            ],
            "properties": {
              "isCreatorAssociation": true,
              "role": {
                "_type_": 120,
                "roleId": 3,
                "roleName": "View"
              }
            }
          }
        ],
        "ownerAssociations": {}
      }
    }
  ]
}
GET /role/:roleid
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X GET 'https://CommandCenterHostName/commandcenter/api/Role/:roleId' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'
curl -L -X GET 'https://CommandCenterHostName/commandcenter/api/Role/:roleId' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'
curl -L -X GET 'https://CommandCenterHostName/commandcenter/api/Role/:roleId' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'
curl -L -X GET 'https://CommandCenterHostName/commandcenter/api/Role/:roleId' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'
curl -L -X GET 'https://CommandCenterHostName/commandcenter/api/Role/:roleId' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'
curl -L -X GET 'https://CommandCenterHostName/commandcenter/api/Role/:roleId' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'
curl -L -X GET 'https://CommandCenterHostName/commandcenter/api/Role/:roleId' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'