CCP AIMWebService Windows Authentication not working
236
Created On 11/10/26 10:55 AM - Last Modified 11/10/26 16:00 PM
Symptom
Unable to retrieve password object using CCP REST API with APPAP133E Failed to verify application authentication data: OSUser \" \" is unauthorized"}
PS C:\Andy> Invoke-RestMethod -Uri "https://epvone.cyber-ark.demo/AIMWebService/api/Accounts?AppID=Database&Safe=108_Safe_Database&Object=sql02-sa2" -UseDefaultCredentials
Invoke-RestMethod : {"ErrorCode":"APPAP306E","ErrorMsg":"Authentication error for App ID [Database]. Reason: APPAP133E Failed to verify application authentication data: OSUser \" \" is unauthorized"}
At line:1 char:1
+ Invoke-RestMethod -Uri "https://epvone.cyber-ark.demo/AIMWebService/a ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
Environment
10.5 Configure Windows Domain Authentication as per https://cyberarkdocu.azurewebsites.net/Product-Doc/OnlineHelp/AIM/Latest/en/Content/CCP/Configure_CCPWindows.htm#ConfigureWindowsDomainAuthentication
Cause
The documentation applies only for SOAP API.
Resolution
Configure the following in IIS:
- Under Default Web Site > AIMWebService, configure the following in Authentication:
- Anonymous Authentication = Disabled
- Windows Authentication = Enabled
- Under Default Web Site > AIMWebService > V1.1, configure the following in Authentication:
- Anonymous Authentication = Enabled
- Windows Authentication = Disabled
- Restart IIS (iisreset).