Error Handling
Use the error code and message in the API response to identify the issue, then follow the standard resolution steps below. For details on the response structure and a full index of codes, see Errors.
PERMISSION_DENIED
PERMISSION_DENIED indicates that the service account does not have permission to perform the requested operation.
Resolution
Assign an appropriate role to the service account in the noon Partner Portal, then authenticate again and retry the request. Any role that grants the permissions required by the operation can be used, such as Project Viewer. If you need access to everything in the project, assign Project Owner.
How to update your service account role
-
Open the noon Partner Portal and select User Access.
-
Locate the service account that received the error, then select the three-dot menu at the end of its row and select Manage Role.
-
On the Roles & Permissions page, select Add another role.
-
Under Platform, select a role that grants the required permissions, then select Update. For full access to the project, select Project Owner.
-
Authenticate again, repeat the API request, and confirm that it no longer returns
PERMISSION_DENIED.