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.

Create a field on cmdb_ci table in a domain separate enviroment

Shusovit Dutta
Tera Contributor

Hi, 

I am planning to create a custom checkbox on cmdb_ci table, on a particular domain. how do i make sure if that field is not accessible (read/write/update) by other domain users. 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Shusovit Dutta 

you need to handle this using field level READ, WRITE ACL on your cmdb_ci.<customFeld>

Use advanced script

answer = gs.getUser().getDomainID() == current.sys_domain;

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

View solution in original post

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@Shusovit Dutta 

you need to handle this using field level READ, WRITE ACL on your cmdb_ci.<customFeld>

Use advanced script

answer = gs.getUser().getDomainID() == current.sys_domain;

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Shusovit Dutta 

Rather than ACLs, check whether the other user has visibility into the domain where you are creating this. If they do, then it will not be visible to you—this is the expected OOTB behavior.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************