- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
04-11-2024 01:02 PM
Hello guys,
When I try to update the local administrator removal policy, I receive the following error below when I try to pass the following parameters: Executors: ["HOSTNAME1"], Accounts: ["Domain\AD_GROUP"]
[
{
"Fields": [
"Executors[0]"
],
"ErrorCode": "EPM000002E",
"ErrorMessage": "JSON parsing error."
},
{
"Fields": [
"Accounts[0]"
],
"ErrorCode": "EPM000002E",
"ErrorMessage": "JSON parsing error."
}
]
I'm passing this in my body request
{
"Id": "c941dd32-767e-4a27-8714-c2024fa72ad9",
"Name": "Remove local admin rights",
"PolicyType": 46,
"Action": 23,
"Executors": ["HOSTNAME1"],
"IsAppliedToAllComputers": true,
"Accounts": ["DOMAIN\\AD_GROUP"],
"IncludeADComputerGroups": [],
"IsActive": true,
"LinkedAgentPolicies": []
}
When I send the request without providing a hostname or AD group, the sending is successful
Has anyone ever had similar behavior and know how to solve it?
05-01-2024 12:41 AM
Hi @Marcel Barreto
As the community has not answered this question for some time, could you kindly share if you could resolve this issue and how?
If the issue is still relevant, I would advise raising a ticket with our Support team for further assistance.
Thanks,
Niv
07-31-2024 01:56 PM
I didn't find a solution, I think the documentation about this API need to be updated with some detailed examples at https://docs.cyberark.com/EPM/Latest/en/Content/WebServices/RemoveLocalAdmin.htm
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!

