listRoles

get

/ccstore/v1/roles

List Roles. Get all roles for shoppers.

Request

Supported Media Types
Query 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 : 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,
    "sort":[
        {
            "property":"id",
            "order":"asc"
        }
    ],
    "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"
        },
        {
            "function":"buyer",
            "relativeTo":{
                "id":"or-100000",
                "externalOrganizationId":null
            },
            "name":"Buyer",
            "repositoryId":"100002",
            "description":null,
            "id":"100002",
            "accessRights":[
            ],
            "type":"organizationalRole"
        },
        {
            "name":"Custom Role",
            "repositoryId":"customRole",
            "description":"Custom Role",
            "id":"customRole",
            "accessRights":[
                {
                    "displayName":"Custom Access Right",
                    "name":"Custom Access Right",
                    "repositoryId":"customAccessRight",
                    "description":"Custom Access Right",
                    "id":"customAccessRight",
                    "type":"generic"
                }
            ],
            "type":"role"
        }
    ]
}

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