logged in user can only edit "department" filed
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2023 07:09 AM
as a logged in user can only edit "department" filed in the user table and other then logged in user when someone else try to access "department" field that user find read-only.
please suggest??
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2023 11:35 AM
Hi @shid077 ,
There is a Out of the write ACL on the department field :
1)You can modify this or create new one and deactivte this
2)New ACL :
a)select write
b)select sys_user table
c)select department field
d)Add te=he script logic as below
var answer =false;
if(current.sys_id == gs.getUserID()){ //only logged user can change his/her department and no one else, not even admins
answer = true;
}
Accept and hit Helpful if it helps.
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025