Search for roles
- Zuletzt aktualisiert2023/02/13
Search for roles
Use the Search for Roles API to search for roles based on a date filter, sorting, and pagination.
Prerequisites
- View Roles
- Users who have
view roles
permissions can retrieve all roles. - JSON Web Token (JWT)
- All Control Room APIs require a JSON Web Token (JWT) to access the APIs. Generate an authentication token using the Authentication API. See Enterprise 11 Authentication API.
- URL:
http://<your_control_room_url>/v1/usermanagement/roles/list
Replace the content in the angle brackets with your Control Room URL.
- Method: POST
Procedure
Note: You can also run REST requests from a command terminal. The following is a curl
request example. This example is formatted for readability. Replace the text inside
the angle brackets,
<authentication_token>
, with your
authentication token.curl -X POST "http://<your_control_room_url>/v1/usermanagment/roles/list"
-H "accept: application/json"
-H "X-Authorization: <authentication_token>"
-H "Content-Type: application/json" -d "{
{
"sort": [
{
"field": "name",
"direction": "asc"
}
],
"filter": {
"operator": "substring",
"value": "sample",
"field": "name"
},
"fields": [],
"page": {
"offset": 0,
"total": 23,
"totalFilter": 23,
"length": 200
}
}'