Skip to content

Application roles ​

Lists every role defined for an application, including inactive roles and the features each role can use.

GET /fieldservicegateway/usermanagement/v3/authorization/applications/:applicationId/roles

Request ​

No body.

FieldInRequiredDescription
applicationIdpathyesApplication name. Must not contain :
serviceProviderNumberquerynoAlso return custom roles owned by this service provider

Example ​

GET /fieldservicegateway/usermanagement/v3/authorization/applications/Honeycomb/roles?serviceProviderNumber=10001

cURL ​

bash
curl --request GET 'https://[BASE_URL]/fieldservicegateway/usermanagement/v3/authorization/applications/Honeycomb/roles?serviceProviderNumber=10001' \
  --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'

Response ​

200 OK

json
{
  "success": true,
  "data": {
    "applicationId": "Honeycomb",
    "totalRoles": 1,
    "roles": [
      {
        "roleName": "Read",
        "isActive": true,
        "isTechnicianRole": false,
        "roleType": "SP",
        "isSystemRole": false,
        "features": [
          {
            "featureName": "jobmanagement",
            "permission": "Read"
          }
        ]
      }
    ]
  }
}
FieldTypeDescription
totalRolesnumberHow many roles were returned
isActivebooleanfalse when the role has been deactivated
isTechnicianRolebooleantrue when the role is a technician role
roleTypestringSA, SP, or empty
isSystemRolebooleantrue for a built-in role
featuresarrayFeature name and access level

Errors ​

StatusCodeWhen
400VALIDATION_ERRORapplicationId is empty or contains :
500INTERNAL_ERRORSomething unexpected failed