The CreatorCon Call for Content is officially open! Get started here.

Change Model Restriction to Some Group Members

tarun12
Tera Contributor

Hello All,
I want my change request to be available only for certain Assignment groups based on my Assignment group department value. (Department value is a custom field on my groups table). If the Department value is only something XXX then for those Assignment groups only it should be visible. Therefore for other Assignment groups it should not be visible in change landing page. How to achieve using scripting in available for section in change model. Can anyone help me on this.

Thanks in advance.

10 REPLIES 10

Ankur Bawiskar
Tera Patron
Tera Patron

@tarun12 

you will require a query business rule on change request table

which page you are referring?

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

@Ankur Bawiskar 

We want to hide Change model visibility for some Assignment groups like grp.name contains xxx in my query. We are mentioning the available for in change model related list 

@Ashwin Perumal1 

please share screenshot what you want to hide

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

@Ankur Bawiskar 

AshwinPerumal1_0-1698745494001.png

Want to hide change model using available for tagged under change model related list. We have created a custom field on sys_user_group table named "Department Value". If the Department value is something "XXX" then for those Assignment groups only my Change model should be visible.  For other Assignment groups the change model should not be visible. Can you help me in scripting part like how to restrict change model as there are more than 100's of groups for which my change model to be restricted