Ajaz Khan

Ajaz Khan

  • 957
  • 690
  • 37k

Authorization failed. You are not authorized to perform this function

May 26 2023 5:57 AM

Hello Everyone,

I have developed a console application to upload base64-encoded documents. The application is scheduled to run every 5 minutes using Windows Task Scheduler.Sometime I'm encountering an authorization issue while trying to perform a specific function on the API calls. I would appreciate any help or insights you can provide regarding this error.

Error Message:
Authorization failed. You are not authorized to perform this function.

Context:
I'm currently working on integrating our application with the Hexagon EAM  using the  REST API. I'm attempting to make a request to the "upload document" endpoint in order to upload a new document.

Authentication Method:
I'm using basic authentication to authenticate my requests. I'm providing the username and password in the Authorization header using the "Basic" scheme.

Expected Behavior: I expect the API to upload the document with the provided details and return a success response with the newly upload document`s information.

Additional Information: I have verified that the provided username and password are correct. I have also double-checked the API documentation to ensure that I'm using the correct endpoint and the required fields in the request payload.

Help Needed: I would greatly appreciate any assistance or insights you can provide to help me troubleshoot this authorization issue. If you have encountered a similar problem or have any suggestions on what might be causing this error, please share your thoughts.

Thank you in advance for your time and help!

Best regards,

Ajaz Khan


Answers (1)