how to hide the choices based on roles using ACL

Lalitha7
Tera Contributor

Hi,

I have a requirement where Retired, Leased, Missing status should not reflect in list view to users who does not have "asset" role.

For this, I am trying to create ACL.

Please help to disable the list edit for the same.

 

Regards,
Lalitha

6 REPLIES 6

Pavankumar_1
Mega Patron

Hi,

ACLs not apply for drop down values within field.

please use other options to hide choices refer below 

https://community.servicenow.com/community?id=community_question&sys_id=22a542a4db7810505129a851ca961921

 

https://community.servicenow.com/community?id=community_question&sys_id=24842e64dbd245d4ae812509139619bc

 

Hope it helps!!

Please Mark Correct/helpful, if applicable, Thanks!! 

 

Regards

Pavankumar

If it helps please click Accept as Solution/hit the Thumb Icon.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar

Mohit Kaushik
Mega Sage
Mega Sage

Hi Lalitha,

You can use query Business Rule for this, to hide these states in the list view. Then they will not be able to see those states options in list view.

For making the list view non editable for them you can create an ACL of list edit type and that should solve your second requirement.

 

Please mark this as correct and helpful if it resolved the query or lead you in right direction.

Thanks,
Mohit Kaushik
Community Rising Star 2022

Thanks,
Mohit Kaushik
ServiceNow MVP (2023-2025)

Hi Mohit,

Thanks for your quick response!!

Could you please help me out with the ACL? How should I write it for the users who does not have asset role?

Please help!!

Thanks,
Lalitha

Hi Lalitha,

It is not possible to do with ACLs. You can not hide some options with ACL but you can make the whole field read only for those user. If you want to do that then I can help you out.

 

Please mark this as correct and helpful if it resolved the query or lead you in right direction.

Thanks,
Mohit Kaushik
Community Rising Star 2022

Thanks,
Mohit Kaushik
ServiceNow MVP (2023-2025)