Skip to main content
Cadet | Tier 2
December 20, 2024
Question

Using generated API key

  • December 20, 2024
  • 16 replies
  • 448 views

Hello, I’m not an AA user but want to use AA Rest APIs.

My AA admin has generated an API key for me to use but I’m not able to authenticate using that API key.

AA Admin followed below steps

  1. Created a role with permission “Generate API Key”
  2. Assigned this role to the service account I want to use
  3. Generated API key by going to user setting page

 

Now I’m trying to generate the token to use REST APIs in postman but getting “Access Denied” error.

 

Any suggestion will be helpful.

16 replies

sudhik.skAuthor
Cadet | Tier 2
December 28, 2024

What privileges are required? I tried with two user accounts one with system admin privileges too and that didnt work either 

Aaron.Gleason
Automation Anywhere Team
Automation Anywhere Team
December 28, 2024

They need a role that contains Generate API-Key options. It's recommended you create a separate user for API access. 

sudhik.skAuthor
Cadet | Tier 2
December 28, 2024

That’s what we did. We created a new role with that permission and assigned that role along with some other roles to a new user for whom I created the api key

Aaron.Gleason
Automation Anywhere Team
Automation Anywhere Team
December 28, 2024

I would recommend reaching out to your CSM at this point in case there is some customization in your environment. 

I have no problem accessing our APIs using PHP on a separate web server. 

sudhik.skAuthor
Cadet | Tier 2
December 28, 2024

Yes, waiting for the support to respond. Thanks for all the help, I’ll let this thread know of the solution once I know

sudhik.skAuthor
Cadet | Tier 2
January 6, 2025

It was probably an issue with our firewall but URL “{{baseUrl}}/v2/authentication” works fine