Get usergroup from associate (id)

lock
push_pin
done
Besvarat
2

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

30. jan. 2026 | 03:01 em

Allt Svar (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();
30. jan. 2026 | 03:04 em

That was fast, thank you!!

30. jan. 2026 | 03:09 em

Lägg till svar