When you try to access a scheduler API endpoint with a
client_credential token, it may fail with "
401 Unauthorized".
For example, suppose the environment variable
UAA_ACCESS_TOKEN contains the token retrieved with command,
uaac token client get.
$ curl -k -X GET https://scheduler.<system domain>/jobs?space_guid=03dd1810-8118-4375-9d9e-527e476bd18f -H 'Accept: application/json' -H "authorization: $UAA_ACCESS_TOKEN"
HTTP/1.1 401 Unauthorized
However, if a user token is used, access is successful.