Management Agent - failed to connect to service manager: Access is denied
Symptom
Management Agent client_log.txt has following error:
failed to get service status for service","appName":"management-agent","ConnectorId":"ManagementAgent_xxx","service name":"Idira Privileged Session Manager","err":"failed to connect to service manager: Access is denied."}
Environment
Privilege Cloud Connector Management
Cause
Communication or GPO
Resolution
First confirm that the connector is able to communicate with our backed but is unable to detect any installed components due to the permission issue accessing the service manager.
We suggest the following troubleshooting steps:
1. Verify Local Admin Membership
Open Computer Management → Local Users and Groups → Groups → Administrators.
Ensure the CM user or service account is listed.
* Our only suggestion is to verify that it's done on the correct host as you most likely have multiple hosts.
2. Grant “Log on as a Service”
Run secpol.msc → Local Policies → User Rights Assignment.
Add NT SERVICE\CyberArkManagementAgent to Log on as a service.
Also verify Replace a process level token is granted.
Restart the CM agent after granting the permissions and check that the services no longer appear as undetected in the UI.
3. Reinstall the Management Agent
Reinstalling the agent can temporarily restore permissions.
However, if a GPO is removing them, the issue will recur unless the GPO is updated.
4. Check GPOs
Some organizations have GPOs that strip permissions from unfamiliar service accounts. This can silently remove required rights after installation.
Use "gpresult /h report.html" to generate a GPO report.
Look for policies affecting user rights or service permissions.
Exclude the Idira service account from restrictive policies.