Area: Product
Sub-Area: Access Management
Applies to: OSS + Cloud
Issue
A user can do more than their role allows, or can't do something their role should allow. Common cases are a Reader who can edit an asset, or a user who still has old privileges after a role change.
You Might Be Asking
- Why can a Reader edit an asset?
- Do group permissions override a user's role?
- How long until a role or policy change takes effect? Do I need to clear the browser cache or log out?
Cause
DataHub permissions are additive and grant-only. The authorizer checks the relevant policies and allows the action at the first one that grants the privilege. Otherwise it denies the action. There are no deny policies, and policies are not ranked by specificity. A new role, group or policy only adds to what a user can do. Groups can't conflict with a role or take privileges away.
A user can get a privilege from any of these sources:
- Their own role.
- The role of any group they belong to. Group members inherit the group's role.
- A policy that names the user or one of their groups.
- An owner-based policy. When a group owns an asset, every member of that group counts as an owner.
On Cloud, the default "Asset Owners - Metadata Policy" gives owners metadata privileges. These include Edit Entity, Edit Owners, Edit Description and Edit Dataset Column Descriptions. On groups they own, owners also get Edit Group Members. This is why a Reader who owns an asset, or whose group owns it, can edit it.
Solution
-
Check the user's role. Go to Settings > Users & Groups > Users. The role drop-down on the user's row shows the current role. You can also go to Settings > Permissions > Roles. To view or change roles, you must be an Admin or hold the Manage Policies privilege. See Roles.
-
Check the user's groups. If a group the user belongs to has a higher role, the user inherits it. Remove the user from the group, or change the group's role, if that is not what you want. If OIDC SSO group extraction is enabled, each login replaces the user's DataHub group membership with the groups in the IdP claim. A removal made in the DataHub UI is undone at the next login, so make the change in your IdP. See Configure OIDC.
-
Check ownership. If the user owns the asset, or a group they belong to owns it, owner-based policies apply. Go to Settings > Permissions > Policies and review the "Asset Owners - Metadata Policy" and any other policy that names the user or their groups. See the access policies guide.
-
Wait for policy changes to apply. Saving, deleting or deactivating a policy may take up to 2 minutes to be reflected. The documentation doesn't call for clearing the browser cache or logging out and back in. If the user still has a privilege after 2 minutes, a role, group or policy is still granting it. Check steps 1 to 3 again.
-
Know the default roles.
- Admin: can do everything on the platform.
- Editor: can read and edit all metadata. Cannot take administrative actions.
- Reader: can read all metadata. Cannot edit anything by default, or take administrative actions.
The role policies can't be changed. To give a Reader more access, add a policy.
If a policy or role change isn't taking effect on Cloud, contact DataHub Support.