Area: Product
Sub-Area: Access Management
Applies to: OSS + Cloud
Issue
You want to know how group permissions and group ownership reach individual members in DataHub, and what a group owner can do that a group member can't.
You Might Be Asking
- If a group owns a dataset, do its members get owner permissions?
- Do group members inherit the group's role?
- What can a group owner do that a regular member can't?
- Can I assign a task to a group?
- Are there cases where group permissions don't reach members?
Cause
Group members get access in three ways:
- Roles. A user's role check includes the user's own roles and the roles of every group the user belongs to. Members inherit the role assigned to their group.
- Ownership. When a group owns an asset, every member of that group counts as an owner for owner-based policies such as "Asset Owners - Metadata Policy".
- Policies. A policy can name specific groups, or all groups, as actors. It can also name the owners of an entity, optionally limited to certain ownership types. A domain can't be an actor.
Permissions are additive and grant-only. The authorizer allows a request at the first policy that grants the privilege and denies it otherwise. There are no deny policies, so adding a policy only adds to what a user can do.
Owner privileges are not built into ownership. They come from a policy whose actors include the owners of the entity. On Cloud, that policy is urn:li:dataHubPolicy:asset-owners-metadata-policy. It has resourceOwners: true and grants owners metadata privileges. These include Edit Entity, Edit Owners, Edit Description and Edit Dataset Column Descriptions.
Group owner versus group member
Group owners get more than membership management by default. On groups they own, the Cloud Asset Owners policy grants these privileges:
- Edit Group Members
- Manage Group Notification Settings
- Manage Group Subscriptions
- Edit Entity, which covers the group's description and properties
A group member who doesn't own the group gets none of these from ownership.
Tasks
The createTask mutation on Cloud defines AI agent, eval or ingestion tasks. Its input has name, taskType, trigger, state, runAs and the task definitions. It has no assignee or due date field, and it returns a String (the task URN). Don't use it to assign a task to a group.
Solution
Give a group ownership of an asset. Run addOwners with ownerEntityType set to CORP_GROUP. ownerEntityType is required. The mutation returns a Boolean, so it takes no selection set.
mutation {
addOwners(
input: {
owners: [
{
ownerUrn: "urn:li:corpGroup:data-engineers",
ownerEntityType: CORP_GROUP
}
],
resourceUrn: "urn:li:dataset:(urn:li:dataPlatform:snowflake,db.schema.table,PROD)"
}
)
}
For a custom ownership type, set ownershipTypeUrn on the owner. See Ownership types.
Remove a group as owner. Run removeOwner with ownerUrn, resourceUrn and, optionally, ownershipTypeUrn. Without ownershipTypeUrn, it removes the owner regardless of type.
Roles and groups. Members inherit the role assigned to their group. To view roles or change a user's role, you must be an Admin or hold the Manage Policies privilege. In the UI, go to Settings > Users & Groups > Users and pick a role from the drop-down on the user's row. You can also go to Settings > Permissions > Roles and click Add Users next to a role. See Roles.
Create a group. Go to Settings > Users & Groups > Groups > Create Group. You can also sync groups from an identity provider. See Groups.
Change what owners can do. Owner privileges come from policies. Manage policies under Settings > Permissions > Policies. Saving, deleting or deactivating a policy may take up to 2 minutes to be reflected. See Access policies guide.
Cases where group membership does not carry over
- If you use OIDC SSO with group extraction enabled, each login replaces the user's DataHub group membership with the groups in the identity provider claim. Memberships you assign in the DataHub UI are cleared on the next login. See Configure OIDC.
- Owner privileges come only from policies that name owners as actors. Permissions are grant-only, so if no active policy grants a privilege to owners, group owners and their members don't have it. Check the policy list if group owners lack a privilege.
- The default Asset Owners policy described above is the Cloud default. This article doesn't cover the default policies of self-hosted DataHub Core.
Group notifications
Group notifications are managed from the group's page, on the Notifications tab. A group can have one default email and Slack channel, and an asset subscription can override them. To create a group subscription, use the dropdown next to Subscribe and choose Manage for Groups. Managing group notifications and subscriptions needs the Manage Group Notification Settings and Manage Group Subscriptions privileges. See Subscriptions and notifications.