- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
02-18-2020 08:02 AM
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.
02-18-2020 10:05 AM
Was the "-UseDefaultCredentials" parameter specified?
Invoke-RestMethod -Uri "http://PVWAIP/AIMWebService/api/Accounts?AppID=ApplicationName&Safe=SafeName&Object=AccountObjectName"" -UseDefaultCredentialsThere is this KB relating to the required configuration: https://community.cyberark.com/s/article/CCP-AIMWebService-Windows-Authentication-not-working
02-18-2020 09:47 AM
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
02-18-2020 09:47 AM
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
02-18-2020 10:05 AM
Was the "-UseDefaultCredentials" parameter specified?
Invoke-RestMethod -Uri "http://PVWAIP/AIMWebService/api/Accounts?AppID=ApplicationName&Safe=SafeName&Object=AccountObjectName"" -UseDefaultCredentialsThere is this KB relating to the required configuration: https://community.cyberark.com/s/article/CCP-AIMWebService-Windows-Authentication-not-working
02-18-2020 10:36 AM
Thanks Ankush for your reply! it works now by disabling anonymous authentication on AIMwebservice.
02-18-2020 10:37 AM
Thanks psPete for your reply and the info!
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!

