Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Not getting Edit Button on related list for ITIL users

amitra2
Kilo Contributor

Hi,

I am working with an application where two tables are related in m2m relationship. When I am calling the related list of the m2m relation in the form as an admin I can see the New and Edit Button. But the buttons in the related lists are not visible for the ITIL users. Here I need only Edit button. I checked all the possibilities in the list control ,i.e, modifying the check boxes of New and Edit Button, editing the roles for them as well as the script for the edit button. I also created ACL on the m2m table for getting access for itil users. But nothing worked.

I have checked in my personal instance making an m2m relationship on Incident table(both to and from are incident) and got the same result as before, i.e itil users are not getting the New and Edit buttons. I am not sure weather it is a problem of servicenow itself or not.

Its very urgent and any help appreciated.

Regards,

Amitra Bhunia

Servicenow Developer

Infosys Ltd

9 REPLIES 9

Hi Amitra,



Thank you for the screenshots. I notice that the ACLs indicate that this user has no create access to the m2m table u_m2m_features_features.



Can you verify this and make necessary adjustments to the ACLs and recheck?



Thank you


Actually I disabled the acls when I debuged for the screen shot.I created a create restricted ACL but did not run. I also created access control role for the m2m table and added the role in ITIL so that IT users have the access. but that also gave no result.


As a test, go to the m2m list directly and try to create a new record.



In the application menu filter, type the name of the table.



u_m2m_features_features.list



and click the "New" button at the top of the list. If New doens't appear, it also indicates an ACL issue.



u_m2m_features_features.do



will bring up the form. Enter some nonsense values and try saving. Again, having the security debugger running will help you understand any ACL issues.


Thanks for helping. I just created Read ACL for the role . The difference is I am using None instead   of * for the field. And it is working...


You are welcome.



I encourage you to understand the difference between None and * when it comes to ACLs.



Docs: Access control rules


Docs: Contextual security  


Security Best Practices - ServiceNow Wiki



If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.



If you are viewing this from the community inbox you will not see the correct answer button.   If so, please review How to Mark Answers Correct From Inbox View.



Thank you