Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

Create / Edit Schedule

Cobee
Tera Expert

I'm trying to restrict the Select Group dropdown in the On-Call Scheduling > Create / Edit Schedule wizard so that users only see:

  • Groups they are a member of, or
  • Groups they manage

Currently the dropdown appears to show all records from sys_user_group, including groups unrelated to On-Call Scheduling.

1 REPLY 1

Its_Azar
Mega Sage

Hi there @Cobee 

Update the group query so it returns groups where current user is a member (sys_user_grmember)
OR current user is the group manager (manager = gs.getUserID())

avoid changing the sys_user_group reference qualifier globally, that could impact other places using the group table.

☑️ If this helped, please mark it as Helpful or Accept Solution so others can find the answer too.

Kind Regards,
Azar
Serivenow Rising Star
Architect@ KPMG.