Unable to update users table when using normal account / admin account will work

Jeck Manalo
Tera Guru

Hi Everyone,

I have a question, when I process the request using my admin account this below script is able to work.

But when I am using my normal account this is not working.

 

Is there something that I need to do to make it work using my normal account when processing the request ?

 

find_real_file.png

viewing of user table in admin account = editable

find_real_file.png

 

viewing of user table normal account = not editable

find_real_file.png

1 ACCEPTED SOLUTION

Hello Jeckson,

There will be an action Look up Records and using that you can get all the records matching your condition. Also you have to make flow to run as System user otherwise I think the ACL will not allow to update the active field on sys_user table.

find_real_file.png

find_real_file.png

find_real_file.png

Please mark my respsone as helpful/correct, if it answer your question.

Thanks

View solution in original post

6 REPLIES 6

AnubhavRitolia
Mega Sage
Mega Sage

Hi Jeckson,

ACL must be present for the particular field to restrict non admin to edit it. Verify ACL once related to User table and this field.

Please mark this solution as correct answer and helpful if this help you reach towards solution.

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

Mahendra RC
Mega Sage

Hello Jeckson,

I believe this is because of write ACL on sys_user.active field as shown below. As per the ACL only users with admin or user_admin role should be able to update the active field on sys_user table. Try to run this script with user having user_admin role and if the active field is updated then you have to make change in this ACL.

find_real_file.png

find_real_file.png

Please mark my respsone as helpful/correct, if it answer your question.

Thanks

Hi Mahendra,

Thanks I know that solution will work but role will not be possible to provide to normal account.

I have another option to make it on flow designer.

I use look up record but how can i get all the record using look up is there something that can we do ?

 

find_real_file.png

find_real_file.png

Hello Jeckson,

There will be an action Look up Records and using that you can get all the records matching your condition. Also you have to make flow to run as System user otherwise I think the ACL will not allow to update the active field on sys_user table.

find_real_file.png

find_real_file.png

find_real_file.png

Please mark my respsone as helpful/correct, if it answer your question.

Thanks