Hi,
I am building a solution that (among other things) includes a customization of the "User" table (systemuser). The scenario is that I want to be able to store a configuration for each user in the system. To solve this, I have added an extra Lookup field in the "Users" table pointing to a custom table (with the values to choose for the users) and a new main form that includes only that one Lookup field (other mandatory fields are hidden).
In my solution I have created a new custom role that I will grant to those administrative users that needs to manage the configuration for all other users. The role was initially created as a copy of the "min priv apps use" role suggested by Microsoft. I have then added the permissions I though necessary.
The issue is this: Users with the custom role are not able to edit the user data - not even their own. When they visit the custom form, they are met with the warning "Read-only: You don't have access to edit Users.", and the custom Lookup field is greyed out. As a System Administrator I am able to edit all users from the form.
The role initially included the following permissions (from the "min priv apps use" role):
- User: Read (Org)
- User Setting: Read (Org)
I have added the following permissions:
- User: Write, Append, Append To (Org)
- User Setting: Write, Append To (Org)
- [My custom table]: All permissions (Org)
I have tried to run the "Check Access" function from the form. But it returns the error "There was an error. The view could not be loaded". Looking in the network monitor, I see a bit of explanation. These two show up:
- {"error":{"code":"0x80040203","message":"RetrievePrincipalAccess is invalid for entities other than User Owned. Entity: SystemUser"}}
- {"error":{"code":"0x80041103","message":"'SystemUser' entity doesn't contain attribute with Name = 'owninguser' and NameMapping = 'Logical'. MetadataCacheDetails: ProviderType=Dynamic, StandardCache=True, IsLoadedInStagedContext = False, Timestamp=1555153, MinActiveRowVersion=1555153, MetadataInstanceId=640553, LastUpdated=2021-02-11 11:16:59.703"}}
I am running out of options to analyze and fix the issue. I would rather not make my users System Administrator.
Does anyone have ideas to
- which permissions I might be needing?
- how to debug the permission problem?
Best regards,
Morten

Report
All responses (
Answers (