How to create a field level ACL for currently logged on user in Sys_User table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2022 07:25 AM
Hi,
How to create a new field level ACL to allow the currently logged on user to write to the field. The field is on sys_user table.
Thanks
Syed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2022 10:36 AM
Hi Gousia,
You can write 'write' ACL on sys_user.<field_name>.
If your ask is that Logged in user should be able to edit that field only for his record than you can use Condition as 'sys_id' is 'javascript: gs.getUserID();'.
If your ask is something else, you can use script to check logged in user using 'gs.getUserID()" and set answer as true/false based on requirement.
Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.
Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2022 08:16 PM
Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2022 12:11 AM
Hi Gousia, If your issue is resolved, please mark this solution as Correct Answer also.
Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2022 10:45 AM
Hi,
Is your requirement is only to create a field level acl in sys_user table?
If yes then you can simply go to the acl list and create a write acl for that particular field and you can give 'sys_id' is 'Me'. If you want users having certain roles to be able to edit then you can add those specific roles also to the acl.You need to have the security admin role to be able to edit acls.
Please mark the answer as helpful/correct if it works.
Regards,
Maharshi