listRoles

get

/ccadmin/v1/roles

List Roles. Get all roles for shoppers.

Request

Supported Media Types
Query Parameters
  • The maximum number of roles to be returned from this request.
  • The starting offset/index to be returned from this request.
  • If set to true, lists roles for preview users. Defaults to false.
  • Query string that filters the roles to be returned from this request using SCIM filtering syntax.
  • The sort order of the list to be returned from this request.
Header Parameters
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : listRoles_response
Type: object
Show Source
Nested Schema : items
Type: array
All roles for internal users
Show Source
Nested Schema : getRole_response
Type: object
Show Source
Nested Schema : accessRights
Type: array
Access rights assigned to role
Show Source
Nested Schema : category
Type: object
Category of the role
Show Source
Nested Schema : relativeTo
Type: object
Related organization for organizationRole
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
{
    "total":3,
    "totalResults":3,
    "offset":0,
    "limit":250,
    "items":[
        {
            "function":"accountAddressManager",
            "relativeTo":{
                "id":"or-100000",
                "externalOrganizationId":null
            },
            "name":"Account Address Manager",
            "repositoryId":"100001",
            "description":null,
            "id":"100001",
            "accessRights":[
                {
                    "displayName":null,
                    "name":"Create Account Address",
                    "repositoryId":"createAccountAddress",
                    "description":null,
                    "id":"createAccountAddress",
                    "type":"generic"
                },
                {
                    "displayName":null,
                    "name":"Update Account Address",
                    "repositoryId":"updateAccountAddress",
                    "description":null,
                    "id":"updateAccountAddress",
                    "type":"generic"
                }
            ],
            "type":"organizationalRole",
            "category":{
                "displayName":"Storefront Roles",
                "repositoryId":"storefrontRoleCategory",
                "id":"storefrontRoleCategory"
            }
        },
        {
            "function":"buyer",
            "relativeTo":{
                "id":"or-100000",
                "externalOrganizationId":null
            },
            "name":"Buyer",
            "repositoryId":"100002",
            "description":null,
            "id":"100002",
            "accessRights":[
            ],
            "type":"organizationalRole",
            "category":{
                "displayName":"Storefront Roles",
                "repositoryId":"storefrontRoleCategory",
                "id":"storefrontRoleCategory"
            }
        },
        {
            "name":"Custom Role",
            "repositoryId":"customRole",
            "description":"Custom Role",
            "id":"customRole",
            "accessRights":[
                {
                    "displayName":"Custom Access Right 1",
                    "name":"Custom Access Right 1",
                    "repositoryId":"customAccessRight1",
                    "description":"Custom Access Right 1",
                    "id":"customAccessRight1",
                    "type":"generic"
                }
            ],
            "type":"role",
            "category":{
                "displayName":"Custom Roles",
                "repositoryId":"customRoleCategory",
                "id":"customRoleCategory"
            }
        }
    ]
}

Default Response

The error response
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top