isMemberOf()

Scripting

How To Use gs.getUser().isMemberOf()

When scripting in ServiceNow, you’ll frequently have to create conditional statements around users and their group membership. Based upon what group a certain user is … Read more

sys_user_grmember

Scripting

Get All Of The Groups For A User

This script will print all of the groups a member is in, in ServiceNow. Below, we query the [sys_user_grmember] table and find all of the … Read more