Access is Denied when using the AIM Web Service REST call

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

Access is Denied when using the AIM Web Service REST call

L1 Bithead

I downloaded the Postman collection for CyberArk REST API from - https://documenter.getpostman.com/view/998920/RzZ9Gz1U?bs=true&version=latest#97bada25-0588-4660-9fc...

 

I have the AIMWebService setup in IIS on my PVWA servers with Windows Authentication disabled and Anonymous Authentication enabled.

 

I have setup the App ID with my machine in the Allowed Machines list and granted the AppID permissions on the safe.

 

I'm running the following CCP GetPassword GET request in Postman on my machine.

 

https://{{BaseURL}}/AIMWebService/api/Accounts?AppID={{AppID}}&Safe={{Safe}}&Folder={{Folder}}&Object={{ObjectName}}

 

All the variables are configured as environment variables, authorization type is "Inherit auth from parent", passing the Content-Type header with value "application/x-www-form-urlencoded".

 

When I run this, I'm getting an "Access is Denied" message while the status shows 200 OK.

 

My machine does not have AIM agent installed. Does it need to be installed for running this? Please advise further on what could be causing this issue.

 

I have the vault and PVWA running v10.10.

 

Thanks,

Ashwin

 

1 accepted solution

Accepted Solutions

L1 Bithead

This issue was due to redirection being applied on the Default Web site and AIMWebService site in IIS. Once the redirection was removed, I was able to retrieve the credentials.

 

Thanks.

View solution in original post

4 REPLIES 4

L6 Presenter

what do you get when you run the query in browser or powershell using Invoke-RestMethod?

L4 Transporter

what do you get when you run the query in browser or powershell using Invoke-RestMethod?

L1 Bithead

Running this in browser gives me the login page and I get a blank (empty) response in PowerShell.

L1 Bithead

This issue was due to redirection being applied on the Default Web site and AIMWebService site in IIS. Once the redirection was removed, I was able to retrieve the credentials.

 

Thanks.

  • 1 accepted solution
  • 1270 Views
  • 4 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!