Area: Product Issues
Sub-Area: User Access Management
Applies to: OSS + Cloud
Issue
Users lose access that they had through a group. Group membership is missing or changed, and the roles and policies that apply to those groups no longer reach the users.
You Might Be Asking
- Why did group memberships disappear or change?
- How do I restore group memberships and the access that comes with them?
- Does OIDC group sync overwrite groups I assigned in the DataHub UI?
- Can I recreate a group with the DataHub CLI?
- Who can create a group in the UI?
Cause
Access that comes through a group depends on membership in that group. Group members inherit the role assigned to their group, and policies can name groups as actors. If membership changes, the access changes with it.
Groups can be managed in DataHub or synced from an identity provider (IdP), using the Okta and Azure AD ingestion sources, or SCIM provisioning on Cloud.
A common cause is OIDC SSO group extraction. When it is enabled, each login replaces the user's DataHub group membership with the groups in the IdP claim. Memberships you assigned in the DataHub UI are cleared on the user's next login. If the IdP sends empty or incorrect groups, users lose their memberships.
Solution
-
Check how your groups are managed. Find out whether OIDC group extraction, an IdP ingestion source or SCIM provisioning is set up for your instance. See Groups and Configure OIDC SSO.
-
Fix the source in your IdP. If the IdP drives membership, correct the group assignments there. Make sure the users are in the right groups and that the IdP sends the right groups in the claim. With OIDC group extraction, users get their memberships back at their next login. Do not rely on UI-assigned memberships if OIDC group extraction is enabled, because the next login clears them.
-
Recreate a group with the CLI if needed. The
datahub groupcommand defaults toupsert, which takes-f/--file(required) and--override-editable. There is nocreateoradd-usersubcommand. Put group members undermembers:in the file.id: <group id> display_name: <group name> description: <description> members: # list the group members heredatahub group upsert -f group.yamlThe group YAML fields are
id,display_name,email,description,overrideEditable,picture_link,slack,ownersandmembers. See the CLI reference.You can also create a custom group in the UI under Settings > Users & Groups > Groups > Create Group. This needs the Manage Users & Groups privilege. The Admin role has it by default. Editor and Reader do not. Any user you grant the privilege through a platform policy can create groups. Without it, the request fails with "Unauthorized to perform this action. Please contact your DataHub administrator." See Groups.
-
Know that Admin, Editor and Reader are roles, not groups. Do not recreate them as groups. If users lost a role, assign it again. Under Settings > Users & Groups > Users, pick a role from the drop-down on the user's row. Or go to Settings > Permissions > Roles and click Add Users next to a role. You must be an Admin or hold the Manage Policies privilege. See Roles.
-
Check policies. Go to Settings > Permissions > Policies and confirm the policies that name your groups are active. Policy changes may take up to 2 minutes to be reflected. See the Access Policies guide.
-
Verify recovery. Check that the groups and their members appear under Settings > Users & Groups > Groups, and that users can do what their group's role and policies allow.
Related Documentation
Tags: groups, access-control, scim, provisioning, identity-provider, permissions, sso, user-management, okta