Portal - User profile read only for non admins
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2024 06:42 AM
Hi,
I am working on CSM portal and need to make user profile non editable for non admins.
I tried it by modifying ACL but nothing seems to work.
To troubleshoot, I have even inactivated all the ACL on sys_user table(table and field level) but still the fields like userID, company are non editable (OOB as expected) and email field is stil editable.
I am not understanding then from where these fields were made read only OOB
Your help will be much appreciated.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2024 05:13 PM - edited 06-14-2024 05:14 PM
You'll need to enable Debug Security Rules as an admin.
Next impersonate a non admin user and reload the same record. Then click the bug icon.
If your record/sys_user.email/write is green and you don't want it to be , you'll need to now find which ACL (field level) is granting access. Using the browser search feature, I would search for
record/sys_user.email/write
Right click on the ACL to open it in another browser, then investigate why this ACL is granting write access to the field for the non-admin user.
Hope this helps. ACL work debugging can be a nightmare to work on sometimes. I usually fall back on some version of the above steps when diagnosing ACL issues.