User is not able to view assignment groups.

John Vo1
Tera Guru

I have this BR that helps filters out assignment groups depending on the role.  I have this one user that has both sn_customerservice_agent and itil role.  But when I impersonate her I'm unable to pull any of the groups up under incidents and case.  Can someone help?

Ankur Bawiskar
Tera Patron

Hi Johnvo,

Is that your complete code?

Why 2 times if statement is being used?

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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

Well I don't want ITIL to see the about groups and vice versa.  But this particular user has both of the roles in the script.

I don't want ITIL to see the above groups and customerservice agent to not see the bottom groups.

SanjivMeher
Mega Patron

I think you should change the second if condition to else if and try.


Please mark this response as correct or helpful if it assisted you with your question.