Hi everyone!
I am using a REST API to create and update secrets in PAM, but I'm encountering an error when trying to use the "POST" method. The error message is shown above.
Does anyone know what the problem could be? I cannot find anywhere to change the API settings in PAM. We are using ISVA in this environment.
I run the script directly on the PAM server, so the connection doesn't go through ISVA.
-----Create secret -----
----- Exception -----
System.Net.WebException: The remote server returned an error: (400) Bad Request.
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
BadRequest
Bad Request
{
"errorCode": "API_AccessDeniedOnFolder",
"message": "Access Denied on Folder"
Here you can se the full script to create secrets.
REST API PowerShell Scripts
------------------------------
Jakob Diab
------------------------------