Restrict Standard Change Templates to members of the template owner group

ronaldanand
Tera Contributor

Hi All,

Currently anyone can create a standard change from available templates. I want it to restricted to only allow members of the template owner group to create changes from templates. EX. If a member of TEST GROUP CHNAGE1 creates a standard change template, only members of that group have access to create a change off that template.

only Members of template owner group can create standard changes from template.Non-members of template owner group are not able to create standard changes from template.

Please check and help me how to do this.

Thanks in advance!!!!

13 REPLIES 13

Hi @James Kailukai1 ,

 

Thanks for the above solution, i have same requirement but i have list collector variable where it stores group names, how can we achieve by using the multiple groups to restrict the access. Please help on it.

 

thanks in advance,

Hi,

 

A list collector is just a string of sys_ids. You can modify the above as follows:

  1.  In step 3.1 (Flow step 3) instead of reading the sc_cat_item you can read any record where your list variable exists. Change this to read the record that holds your list field. 
  2. In step 3.2 (Flow step 4) you would modify this code to use the variable from step 3.1 that holds the list of sys_ids. The flow variable is just a string and can contain a set of comma separated sys_ids like: "abc,123,xyz" .

    JamesKailukai1_1-1711109078693.png

     


    As you can see the group field on the user criteria is also a "list", which is just a string of sys_ids:
    JamesKailukai1_3-1711109599566.png

     

    JamesKailukai1_0-1711108797449.png
  3. The rest of the script should be the same as Step 3.3 (Flow Step 5) just uses what was stored in the variable to set the user criteria. 

This worked great!

 

When using the record producer to retire a std change, do you know how to limit the lookup so it only shows ones that they have access to via the User Criteria?

 

 

*edit 

was able to restrict the Assignment Group selection by adding this filter

 

javascript: "^sys_idIN" + gs.getUser().getMyGroups()

 

ronaldanand
Tera Contributor

Hi

change managers has the ability to create new standard templates, but they don't have access to create/map user criteria to standard change templates. IS this  works for existing templates and new templates.
Please check and  help me