How to restrict end users from editing their profile

sagar_basu
Tera Contributor

Hi All,

 

In Employee center . Profile details should not be editable by end users.

sagar_basu_0-1677133423868.png

 

 

None of the above fields should be editable by end users.

Only User preferences should be editable.

 

Please help me how to achieve this.

 

Thanks,

Sagar

1 ACCEPTED SOLUTION

@sagar_basu it is based on sys_user ACLs.

 

Here's the quick test I did by adding write ACL on sys_user.location (I just forced it to restrict Abel Tuter)


Abel Tuter before ACL

Pooja_Patil_0-1677699890979.png


Abel Tuter after ACL

Pooja_Patil_1-1677699962263.png

 

Having said that, instance option to set the field editable/read only will make this use case easy to implement, I suggest you submit it on Idea Portal .

Please mark this as helpful and as answer if applicable.

 

View solution in original post

5 REPLIES 5

Dan O Connor
ServiceNow Employee
ServiceNow Employee

This is a frequent ask I see from Employee Center users. To my knowledge it requires cloning of the OOTB widgets User Profile and HRI Profile. From here you then edit code in the HTML and other sections to remove the edit function on these fields.

 

@Pooja Gupta1 might know if there is some config or administration around this that I'm not aware off 🙂 

Pooja_Patil
ServiceNow Employee
ServiceNow Employee

@sagar_basu the fields are editable based on ACLs. If you impersonate non admin user, some fields will be read only.

@Pooja_Patil , Can you please tell me the table against which I should be writing the ACL to control fields on Profile in Employee center. ( ACL written against fields of sys_user table is not applicable to profile fields in Employee center)

 

Thanks

@sagar_basu it is based on sys_user ACLs.

 

Here's the quick test I did by adding write ACL on sys_user.location (I just forced it to restrict Abel Tuter)


Abel Tuter before ACL

Pooja_Patil_0-1677699890979.png


Abel Tuter after ACL

Pooja_Patil_1-1677699962263.png

 

Having said that, instance option to set the field editable/read only will make this use case easy to implement, I suggest you submit it on Idea Portal .

Please mark this as helpful and as answer if applicable.