Get usergroup from associate (id)

lock
push_pin
done
Answered
2

In CRMScript, is it possible to get a list of usergroup items that an associate belongs to?

9 h, 7 m ago | 03:01 PM

All Replies (2)

The UserAgent isn't restricted in CRMScript, so you can do;

Integer associateId = 1;

NSUserAgent userAgent;

NSUser user = userAgent.GetUser(associateId);

user.GetUserGroup();
user.GetOtherGroups();
9 h, 3 m ago | 03:04 PM

That was fast, thank you!!

8 h, 58 m ago | 03:09 PM

Add reply