Question
A custom role <RoleName> grants only READ and ACCEPT_CHANGE_REQUEST, so that its users can approve data change requests (DCRs: suggested changes that wait for review and approval) but not edit profiles. A user with this role can still edit profiles directly. Why, and how can the user be made approve-only?
Answer
The role's READ and ACCEPT_CHANGE_REQUEST entries don't allow editing. The edit access comes from one of these sources:
- Another role grants write access. A user with more than one role can do the maximum that any of their roles allows. This includes roles from groups: a group has its own roles, and a user can belong to several groups. Any role with
CREATE,UPDATE,DELETE, orMERGEon the entity type or its attributes lets the user edit. - The role itself grants write access on the entity type. Permissions follow URI inheritance: a URI without its own permission entry takes its parent's permissions, the same way
configuration/entityTypes/HCPextendsconfiguration/entityTypes. If the role hasREADandACCEPT_CHANGE_REQUESTon some attributes butUPDATEorMERGEon the entity type, the attributes without their own entry are editable. Permissions are configured per tenant, so the same role can behave differently in two tenants.
Find the source of the write access
- In Console > User Management, open the user. Note the user's roles and groups, then open each group and note its roles.
- With a user that has
ROLE_ADMIN_TENANT, get those roles' permissions for the entity type and for an attribute that has no entry of its own. The response applies inheritance:
POST https://<environment>.reltio.com/reltio/permissions/<tenantId>/_get?roles=<RoleName>,<OtherRole> Authorization: Bearer <access_token> Content-Type: application/json ["configuration/entityTypes/<EntityType>", "configuration/entityTypes/<EntityType>/attributes/<Attribute>"]
A role that returns CREATE, UPDATE, DELETE, or MERGE for either URI is the source. The user can also send the same body to /_check, without the roles parameter, using their own token to see their combined access.
Make the user approve-only
By default, applying a DCR also requires CREATE, UPDATE, DELETE, and MERGE on the changed objects, so removing write access alone makes the user's approvals fail. Make the changes in this order:
- Make sure the tenant setting
applyDcrWithoutPermissionsistrue. With it, applying a DCR needs onlyREADandACCEPT_CHANGE_REQUEST. The setting is in the tenant physical configuration and applies to the whole tenant, but not to potential match review tasks. To enable it, submit a support request; Reltio Support also runs a backend task that refreshes workflow caches so that users without update permissions can be assigned DCR tasks. - Remove the write access:
- If it comes from another role, remove that role from the user, or remove the user from the group that grants it. Removing the role from the group changes access for every member. If the group also provides roles the user still needs, assign those to the user directly first.
- If it comes from
<RoleName>itself, set the role's access onconfiguration/entityTypes/<EntityType>toREADandACCEPT_CHANGE_REQUESTwith the Update Permissions request (PUT https://<environment>.reltio.com/reltio/permissions/<tenantId>).
- Keep
READandACCEPT_CHANGE_REQUESTfor the role on every entity type and relation type that the user's DCRs change. Applying a DCR requiresACCEPT_CHANGE_REQUESTon all objects in it.
After the change, _check with the user's token returns READ and ACCEPT_CHANGE_REQUEST but no CREATE, UPDATE, DELETE, or MERGE for both URIs.
Comments
Article is closed for comments.