logged in user can only edit "department" filed

shid077
Tera Contributor

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

Hemanth M1
Giga Sage
Giga Sage

Hi @shid077 ,

 

There is a Out of the write ACL on the department field :

HemanthM1_0-1694025122191.png

1)You can modify this or create new one and deactivte this

2)New ACL :

HemanthM1_1-1694025185938.png

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