Remote Access API - Return Code: 404
Symptom
When submitting Remote Access API requests using a Service Account that was created by a Tenant Admin, who is no longer active or has been removed from the Tenant, the result is Return code 404: The requested resource could not be found, or the user does not have permissions for this resource.
The issue does not occur when manually performing the same action in Remote Access portal as Tenant Admin.
Example of failing API:
Method: GET
URI: https://api.alero.io/v2-edge/vendors/phone/{phonenumber}
Return code: 404
Body: Vendor with phone number {phonenumber} in not found
Environment
12.0 Remote Access (formerly Alero) Alero SaaS
Remote Access API
Cause
The Remote Access Tenant Admin that originally created the Service Account for authentication to the Remote Access API is no longer active in the tenant and/or has been removed from the Remote Access tenant.
Resolution
Create a new Service Account with an active Remote Access Tenant Admin:
- In the Remote Access portal, go to Identities > Service accounts.
- Click Create Service Account to display the Create Service Account form, and set the service account properties.
- Click Create Service Account to create the .json file that is required to make the API calls, and save it on your computer.