Granting User Permissions
PrivX users receive permissions through role membership. For example, roles can allow users to:
- Access target hosts
- Approve or deny requests
- Manage connections
- Manage audit data
- Manage secrets
- Perform PrivX administration
Users can become role members in either of the following ways:
- Mapped membership: The user matches the role's rules. For instructions on configuring role rules, see Managing Roles.
- Approved membership: The user is approved for membership in the role. For information about approval mechanisms, see Requesting and Approving Memberships.
The following applies to roles and permissions:
- Both mapped and approved memberships can be time-restricted.
- All users automatically start as members of the
privx-userrole. - Roles are also used for granting permissions to API clients.
For active PrivX users, permission changes take effect when their access token is refreshed. The refresh interval is specified by the access_token_valid setting in /opt/privx/etc/oauth-shared-config.toml.
Best Practices
Identify the different user groups and usage scenarios in your environment, and then plan what roles you need for sufficiently granular access control. Create those roles, then add your users to appropriate roles.