Area: Product Issues
Sub-Area: Permissions & Policy Configuration
Applies to: OSS + Cloud
Issue
You created a Metadata policy so that some users can create and edit Glossary Terms and Term Groups without the Editor role. The policy has privileges such as Create Entity, Manage Direct Glossary Children and Manage All Glossary Children. The users still can't create terms. The create option is missing, or the save fails with this error:
Unauthorized to perform this action. Please contact your DataHub administrator.
You Might Be Asking
- Why can't my users create glossary terms even though I gave them glossary privileges in a Metadata policy?
- What does the "Glossary Terms & Term Groups" field in a policy do? Do I need to set it to "All"?
- Is a Metadata policy enough to let users create terms at the top level of the glossary?
- How do I grant glossary creation access without giving users the full Editor role?
Cause
DataHub decides who can create a term or term group by looking at where the new entity goes.
- At the root of the glossary (no parent Term Group), only the
Manage Glossariesplatform privilege allows it. A Metadata policy can't grant this. - Inside a Term Group, the user needs
Manage Direct Glossary Childrenon that parent group, orManage All Glossary Childrenon the parent group or any group above it.Manage Glossariesalso works here.
Create Entity doesn't control glossary term or term group creation in the UI. So a policy with the right privilege names still fails when the user creates at the root, or when the policy doesn't cover the parent Term Group.
The "Glossary Terms & Term Groups" field in the policy isn't the cause. It has no None or All setting. It's an optional filter: you pick terms or term groups, and the policy then applies only to resources that carry those terms or sit under those groups. If you leave it empty, the policy ignores glossary terms, and the policy details view shows "All". An empty field doesn't turn the policy off.
Solution
-
Find out where the users are trying to create terms: at the top level of the glossary, or inside a Term Group.
-
To let users create terms and term groups inside Term Groups, go to Settings > Permissions > Policies and create or edit a Metadata policy:
- Resource Type: Glossary Term Groups.
- Resource: leave empty to cover every Term Group, or pick the Term Groups the users should manage.
-
Privileges:
Manage All Glossary Childrenlets users create and delete everything under the group, including nested groups.Manage Direct Glossary Childrencovers only the group's direct children. - Glossary Terms & Term Groups: leave empty unless you want the extra filter.
- Applies to: the users or groups.
You don't need
Create Entityfor this. See the privilege reference in the Policies Guide and the Privileges section of the Business Glossary guide. -
If users must also create terms or term groups at the root of the glossary, create a Platform policy that grants
Manage Glossariesto them. This privilege gives full control of the whole glossary: create, edit and remove any term or term group. The built-in Admin and Editor roles already include it (Roles). If you want users limited to certain groups, skip this step and have an admin create the top-level groups for them. -
Save the policy. Policies are cached on the server and refresh every 120 seconds by default. Wait about two minutes, then have the users refresh the page and try again.
Related Documentation
- Policies Guide (see Glossary-Based Policy Targeting and the privilege reference)
- Business Glossary
- Roles