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.

Assignment groups, groups for roles.... why such confuse?

Brendan Hallida
Kilo Guru

Hi all,

Just want to start in saying that this could be me confusing myself!

From what I can gather - the best way to assign roles is to assign to groups, and then add the users to those groups.

This is fine and dandy - however we do not want to have these groups as assignment groups.

I followed the below wiki article, and assigned the group type as 'itil' and then modified the Assignment group's dictionary entry to contain type 'itil'

Configuring Group Types for Assignment Groups - ServiceNow Wiki

find_real_file.png

find_real_file.png

This works great, and as expected, until someone who is a member of more than one group.

What we have found is if you were to add an assignee in Assigned to before adding an assignment group, it will add the first group they are a member of, whether or not it is an assignment group with the 'itil' type or not.

Does anyone know how I can stop this from happening?

I hope I have explained this well enough......

Thanks in Advance!

Brendan

1 ACCEPTED SOLUTION

Hello Brendan,



Replace gr.group.type with group.type


View solution in original post

20 REPLIES 20

Hit the below link by replacing with YOURINSTANCENAME.


https://YOURINSTANCENAME.service-now.com/sys_user_group_list.do?sysparm_userpref_module=c5aa68730a0a...


and search for group name as ITIL and right click on header and copy SYSID


Hey Pradeep,



oh, I mean the group type "itil", not the group name "itil"



find_real_file.png



Is this something that can be done?



Cheers,


Brendan


Hello Brendan,



In the script, my reference was also to group type.


Please let me know if I am missing something.


hey Pradeep,



Yep it does - I was having issues getting the sys id for the group type.   The link you sent me was to the actual groups.



I think I have found the type sys_id now - will report back in shortly after I have tested


Thanks for the update. Navigate to the table sys_user_group_type.list from navigation filter and right click on record "ITIL" to get the sys_id