UI Policies not working for non-admin role

Sahil_kashyap
Tera Contributor

I had created an ui policy to make configuration item field on sc_task table as mandatory for particular catalog items .But for admin users it's working as expected as it is being mandatory, for non-admin users that field is read only and non-mandatory.
Those users can see cmdb_ci table

6 REPLIES 6

J Siva
Tera Sage

Hi @Sahil_kashyap 
Check if there is any field-level Write ACL created for the configuration_item field on the Task table. If so, review the conditions. I assume that only admins are allowed to edit the configuration_item field, which is why it appears read-only for non-admin users.

Regards,
Siva

Ankur Bawiskar
Tera Patron
Tera Patron

@Sahil_kashyap 

the field on form is a dot walked field from RITM.

If your user doesn't have read access to RITM table i.e. request_item field on sc_task your UI policy condition won't work correctly.

Please check that

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi @Ankur Bawiskar 
The user has access to that field on RITM table. They can see the records there at RITM table.

@Sahil_kashyap 

how did you determine if it's not working for non-admins?

Did you add alert in UI policy execute if true and execute if false script section?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader