Get role

​

Returns a specific role by ID, including all permissions and attributes.

Authorization: Requires admin role.

Path Parameters

  • Role's SCIM ID

Responses

  • application/scim+json
  • application/scim+json
  • application/scim+json
Request Example for get/v2/scim2/Roles/{roleId}
curl https://api.consentio.co/v2/scim2/Roles/role_purchasing_manager \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "schemas": [
    "urn:consentio:params:scim:schemas:Role:1.0"
  ],
  "id": "role_purchasing_manager",
  "externalId": "idp-role-purchasing-mgr",
  "displayName": "Purchasing Manager",
  "description": "Manager with full purchasing authority",
  "scope": "organisation",
  "scopeId": "org_abc123",
  "permissions": [
    "orders:approve",
    "orders:read",
    "orders:write",
    "products:read",
    "products:write",
    "reports:export"
  ],
  "meta": {
    "resourceType": "Role",
    "created": "2024-01-15T10:30:00Z",
    "lastModified": "2024-01-15T10:30:00Z",
    "location": "https://api.consentio.co/v2/scim2/Roles/role_purchasing_manager"
  }
}