Get All Permissions - GET /Permissions



Get details of all permissions.

The ‘Manage Roles’ or ‘Manage Users’ permission is required to execute this API.

Usage:

  1. GET /Permissions and get details of all permissions
  2. GET /Permissions/{id} and get details of a permission

URL

/cxrestapi/auth/Permissions

Method:

GET

Media Type (header):

Authorization: Bearer <access token value>
Accept: application/json;v=1.0

Parameters

None

Success Response:

Code: 200 Success

Error Response:

Code: 401 Unauthorized
Code: 403 Forbidden

Sample Response:

[
  {
    "id": 1,
    "serviceProviderId": 1,
    "name": "manage-users",
    "category": null
  },
  {
    "id": 2,
    "serviceProviderId": 1,
    "name": "manage-authentication-providers",
    "category": null
  },
  {
    "id": 3,
    "serviceProviderId": 1,
    "name": "manage-clients",
    "category": null
  },
  {
    "id": 4,
    "serviceProviderId": 1,
    "name": "manage-system-settings",
    "category": null
  }
]

Notes:

Retrieves details of all permissions. Service Provider Id (serviceProviderId) is used in the Service Provider API. If the request fails, it returns an error response.




Send Documentation Feedback - If you have comments about this documentation, you can contact the documentation team by sending your feedback to usWe appreciate your feedback!