Appearance
Role features
Returns the features granted to one role in an application.
POST /fieldservicegateway/usermanagement/v3/authorization/app-roles/features/search
Request
| Field | Type | Required | Description |
|---|---|---|---|
applicationId | string | yes | Application name. Must not contain : |
roleName | string | yes | Role name inside that application. Must not contain : |
Example
json
{
"applicationId": "Honeycomb",
"roleName": "Read"
}cURL
bash
curl --request POST 'https://[BASE_URL]/fieldservicegateway/usermanagement/v3/authorization/app-roles/features/search' \
--header 'Content-Type: application/json' \
--header 'x-api-key: {{x-api-key}}' \
--header 'Authorization: {{Authorization}}' \
--header 'Asurion-correlationid: correlation-id' \
--header 'Asurion-enduser: end-user' \
--header 'Asurion-sourcesystem: source-system' \
--header 'Asurion-serviceprovider: company-id' \
--header 'Asurion-client: default' \
--data '{
"applicationId": "Honeycomb",
"roleName": "Read"
}'Response
200 OK
json
{
"success": true,
"message": "Role features retrieved successfully",
"data": {
"applicationId": "Honeycomb",
"roleName": "Read",
"features": [
{
"featureName": "jobmanagement",
"permission": "Read"
}
]
}
}permission is the access level for that feature, such as Read, Write, or None.
Errors
| Status | Code | When |
|---|---|---|
| 400 | VALIDATION_ERROR | applicationId or roleName is missing or contains : |
| 500 | INTERNAL_ERROR | Something unexpected failed |