I want to create a module that filters records to any of the requesting users groups.

frankh_
Giga Expert

I want to create a module under an application that searches the assignment groups for any of the roles that a user has.   I am not sure how to do this since a user could have more than one group.   Searching records for a specific group, or the searches userid is easy since that is a unique entry, but I am not sure how to handle the groups since there is usually more than one.

1 ACCEPTED SOLUTION

Hi Francis,



Just save the filter and it should work.


Please attach the screenshot so that I can help you out.


View solution in original post

7 REPLIES 7

Pradeep Sharma
ServiceNow Employee

Hi Francis,



Please check the OOB module "My group work" under service desk.


Please let me know if you have any questions.


I am new to SN Admin and something obvious is escaping me.   I am literally copying and pasting the condition text from the OOB Module and it turns pink and gives me an "invalid reference" for the field.   I am operating on table "Change Request [Change_Request] and the specific line that is giving me trouble is:



Field:   Assignment Group       Operator:   is         Condition: javascript:getMyGroups()



Sorry for what is probably an obvious question.


Hi Francis,



Just save the filter and it should work.


Please attach the screenshot so that I can help you out.


I feel like slapping my forehead.   That worked.   I was so worried about the error message I had not tried just saving it.   Now I know!