Area: Product Issues
Sub-Area: Permissions & Policy Configuration: Structured Properties
Applies to: Cloud
Issue
You open a structured property on an asset's Properties tab to add or edit a value. The dialog shows a Propose button next to Add or Update. The Propose button is enabled for a user even though the policy you gave their group has no Propose privilege.
You Might Be Asking
- Why is the Propose button enabled when my group has no Propose privileges?
- Is this a bug?
- How do I let a group propose structured property values without editing them directly?
- How do I make a user view only, with no Propose button?
- What happens when a user clicks Propose?
Cause
This is by design. Change proposals are a DataHub Cloud feature, and a user who can edit a structured property can also propose a change to it.
A user can propose a structured property value on an asset when they hold any of these privileges on that asset, from any policy:
-
Edit Entity(EDIT_ENTITY) -
Edit Properties(EDIT_ENTITY_PROPERTIES), orEdit Dataset Column Properties(EDIT_DATASET_COL_PROPERTIES) for a column -
Propose Structured Properties(PROPOSE_ENTITY_PROPERTIES), orPropose Dataset Column Structured Properties(PROPOSE_DATASET_COL_PROPERTIES) for a column -
Propose Structured Property Updates(PROPOSE_ENTITY_PROPERTY_UPDATE), orPropose Dataset Column Structured Property Updates(PROPOSE_DATASET_COL_PROPERTY_UPDATE) for a column. In the UI, these two only enable Propose for a property that already has a value.
The UI and the server apply the same rule. The privilege often comes from a policy other than the one you checked:
- The default Readers - Metadata Policy grants
Propose Structured PropertiesandPropose Dataset Column Structured Propertiesto everyone with the Reader role. It is a system policy. You can't edit or deactivate it on the Policies page. - The default Editors - Edit Metadata Entities policy grants
Edit Entityto the Editor role. The Admin role also has edit privileges. - The default Asset Owners - Metadata Policy grants
Edit Entity,Edit PropertiesandEdit Dataset Column Propertiesto the owners of each asset. - Any other policy that names the user, one of their groups, or their role.
Solution
Step 1: Check the user's privileges on the asset
Run this query in the GraphQL explorer. Use the URN of a user who sees the button, not a group URN. Group policies match only through the user's group memberships, so a group URN does not return what the group's members get. To check a user other than yourself, you need the Manage Policies privilege.
query getGrantedPrivileges($input: GetGrantedPrivilegesInput!) {
getGrantedPrivileges(input: $input) {
privileges
}
}
Variables:
{
"input": {
"actorUrn": "urn:li:corpuser:<user-id>",
"resourceSpec": {
"resourceType": "DATASET",
"resourceUrn": "urn:li:dataset:(urn:li:dataPlatform:<platform>,<dataset-name>,<env>)"
}
}
}
If the list contains any privilege from the Cause section, the Propose button is enabled for that user on that asset. Then check the user's role and ownership of the asset to find which policy grants it.
Step 2: Set up the access you want
Propose only, no direct edit:
- Grant
Propose Structured Properties(andPropose Dataset Column Structured Propertiesfor columns). The Reader role already grants both. - Make sure no policy gives these users
Edit Entity,Edit PropertiesorEdit Dataset Column Propertieson the assets. Removing the privilege from one group policy is not enough if another policy grants it. Check their role (Editor and Admin grant edit) and whether they own the asset (the Asset Owners policy grants edit). - Give reviewers
Manage Structured Property Proposals(andManage Dataset Column Property Proposalsfor columns) so they can accept or reject the proposals.
View only, no Propose button:
- Don't give the user the Reader, Editor or Admin role. The Reader role always grants Propose through the Readers - Metadata Policy.
- The default All Users - View Entity Page policy still lets every user view and search assets.
- Make sure no other policy grants an edit or Propose privilege from the Cause section, and that the user does not own the asset.
The privileges and the review flow are listed in Change Proposals.
What happens when a user clicks Propose
- DataHub creates a proposal for the value. The asset does not change yet. The value shows on the asset in a proposed state.
- A user with
Manage Structured Property Proposals(orEdit Entity) on the asset accepts or rejects the proposal. - When the proposal is accepted, DataHub writes the value to the asset.