why OS user was not passed to CCP when using powershell to invoke the rest API call ?

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

why OS user was not passed to CCP when using powershell to invoke the rest API call ?

L2 Linker

Hi, we have tested to use powershell to invoke the rest API call to CCP. It seems the OSUser was not able to pass to CCP. The error message is : "Invoke-RestMethod : {"ErrorCode":"APPAP306E","ErrorMsg":"Authentication error for App ID [xxx]. Reason:

APPAP133E Failed to verify application authentication data: OSUser \" \" is unauthorized"}

 

Anyone knows how the OSUSer can be passed to CCP for OSUser authentication?

 

BTW, According to the CCP doc, it mentioned only enable windows authentication, but Without anonymous authentication enabled, we got 401.2 unauthorized errors, so we have enabled both anonymous authentication and windows authentication.

 

1 accepted solution

Accepted Solutions

L6 Presenter

Was the "-UseDefaultCredentials" parameter specified?

Invoke-RestMethod -Uri "http://PVWAIP/AIMWebService/api/Accounts?AppID=ApplicationName&Safe=SafeName&Object=AccountObjectName"" -UseDefaultCredentials

There is this KB relating to the required configuration: https://community.cyberark.com/s/article/CCP-AIMWebService-Windows-Authentication-not-working

View solution in original post

5 REPLIES 5

L6 Presenter

If you enable both anonymous and Windows it will not work, just enable Windows. Make sure you are doing at aimwebservice level and not v1.1 level

L4 Transporter

If you enable both anonymous and Windows it will not work, just enable Windows. Make sure you are doing at aimwebservice level and not v1.1 level

L6 Presenter

Was the "-UseDefaultCredentials" parameter specified?

Invoke-RestMethod -Uri "http://PVWAIP/AIMWebService/api/Accounts?AppID=ApplicationName&Safe=SafeName&Object=AccountObjectName"" -UseDefaultCredentials

There is this KB relating to the required configuration: https://community.cyberark.com/s/article/CCP-AIMWebService-Windows-Authentication-not-working

Thanks Ankush for your reply! it works now by disabling anonymous authentication on AIMwebservice.

Thanks psPete for your reply and the info!

  • 1 accepted solution
  • 1659 Views
  • 5 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!