- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
01-01-2024 07:27 PM
I onboarded ansible app account to CCP server, I am able to fetch the passwords on windows machines with PowerShell script and Linux using curl string but i am using default app account "aimwebservice" however if I take ansible-app-id that i created in application it is giving error.
Not working one
cls
# CHANGE REQUIRED IN THE VALUE FIELD
$ccphost = 'ccp.my.com'
$appid = 'ansible-app01'
$safe = 'tst-safe'
$showPassOffAppID = 'ansible'
$object = 'my-ansible'
#execute REST API call
invoke-restmethod -uri
Error :
invoke-restmethod : {"ErrorCode":"APPAP306E","ErrorMsg":"Authentication error for App ID [ansible-app01]. Reason: APPAP133E Failed to verify application authentication data: OSUser \" \" is unauthorized"}
At C:\Users\myhost\Desktop\ccp-working.ps1:11 char:1
+ invoke-restmethod -uri https://ccp.local/AIMWebServic ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
Note: even after adding the OS user mydom\admin01 error is same
Working with default user :aimwebservice"
cls
# CHANGE REQUIRED IN THE VALUE FIELD
$ccphost = 'ccp.my.com'
$appid = 'aimwebservice'
$safe = 'test-ssafe'
$showPassOffAppID = 'ansible'
$object = 'my-ansible'
#execute REST API call
invoke-restmethod -uri
01-02-2024 12:17 AM
Hİ @Vaish mohammad
Have you enabled Windows authentication on the IIS server?
https://docs.cyberark.com/AAM-CP/13.0/en/Content/CP%20and%20ASCP/Authentication-Methods-for-CCP.htm
Thanks,
01-02-2024 02:59 AM
Hi @Vaish mohammad
Is your application protected to be run by a specific user or by hash value under ‘Authentication’ tab ?
01-02-2024 07:03 AM
Check this article
https://community.cyberark.com/s/article/CCP-AIMWebService-Windows-Authentication-not-working
02-07-2024 02:46 AM
Hi @Vaish mohammad
As it seems several community members provided an answer to your question, could you kindly share if this solution resolved your issue?
If so, could you please mark one of their answers as "Select as Best" to help other community members?
If the issue is still relevant, I would advise raising a ticket with our Support team for further assistance.
Thank you,
Niv
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!

