PSM - Connect fails with error message "Account access is restricted by granular access control"
Symptom
Connect fails with the following error message:
“You are not allowed to connect to the device as using privileged account <Object Name> with full privileges. Account access is restricted by granular access control”
Environment
11.1;11.2;11.3;11.4;11.5;11.6;11.7;12.1;12.2;12.6;12.7;13.0 Privileged Access Manager (PAM, self-hosted);Privilege Cloud PSM;Privileged Session Management (PSM) PSM
OPM enabled Targets
Cause
OPM rules are active for the password object used to initiate the PSM Connection to the target server. The EPV user (i.e. the user logged on to PVWA) trying to initiate the PSM Connect is mentioned in one or more OPM rules that are part of the policy assigned to the target account (e.g. for user “root”), restricting his access to Unix commands on the target server.
Resolution
This behavior is as by design, as a user that should have restricted access to a “OPM-protected” server must not have full root privileges at the same time while initiating a PSM Connect (e.g. as user “root”) to the target server.
You have to decide whether the user can initiate connections through PSM or is supposed to access the target system with privileges limited through OPM:
If the user must not initiate a PSM connection remove the “Use Accounts” and “List Accounts” permissions from the safe storing the corresponding (root) account for this EPV user.
If the user’s activities should be recorded through PSM, make sure you either disable OPM in the corresponding policy for the root user completely or make sure the user trying to initiate the PSM connection is not covered by any of the OPM rules in the policy.
Example: EPV-User Tom should be able to initiate a PSM Transparent Connection to Server1 as user “root”. Make sure none of the OPM rules in the policy assigned to object “Operating System-<policy name>-Server1-root” include any definitions covering Tom’s Vault account.
Notes:
This functionality was added in v9.7. Enabling OPM for an account with configured Access Control Level (ACL) commands will no longer prevent users from connecting through the PVWA with PSM using this account. Customers who wish to prevent access through PSM for users with ACLs in place and when OPM is enabled, can use other controls such as dual control, two-factor authentication in PVWA, authorized Interfaces and more.
Additional Information
Details
SYMPTOM:
Connect fails with the following error message:
“You are not allowed to connect to the device as using privileged account <Object Name> with full privileges. Account access is restricted by granular access control”
PROBLEM:
OPM rules are active for the password object used to initiate the PSM Connection to the target server. The EPV user (i.e. the user logged on to PVWA) trying to initiate the PSM Connect is mentioned in one or more OPM rules that are part of the policy assigned to the target account (e.g. for user “root”), restricting his access to Unix commands on the target server.
SOLUTION:
This behavior is as by design, as a user that should have restricted access to a “OPM-protected” server must not have full root privileges at the same time while initiating a PSM Connect (e.g. as user “root”) to the target server.
You have to decide whether the user can initiate connections through PSM or is supposed to access the target system with privileges limited through OPM:
- If the user must not initiate a PSM connection remove the “Use Accounts” and “List Accounts” permissions from the safe storing the corresponding (root) account for this EPV user.
- If the user’s activities should be recorded through PSM, make sure you either disable OPM in the corresponding policy for the root user completely or make sure the user trying to initiate the PSM connection is not covered by any of the OPM rules in the policy.
Example: EPV-User Tom should be able to initiate a PSM Transparent Connection to Server1 as user “root”. Make sure none of the OPM rules in the policy assigned to object “Operating System-<policy name>-Server1-root” include any definitions covering Tom’s Vault account.