Skip to main content
1-Visitor
July 4, 2014
Solved

Get a Group of Users?

  • July 4, 2014
  • 1 reply
  • 3836 views

Hi,

how can I get a group of users?

I've tried this code.

wt.org.WTGroup myGroup = wt.org.OrganizationServicesHelper.manager.getGroup("My group");

But the result is allways the same—myGroup value is null.

Name of the group is correct.

Any help is appreciated.

Best answer by BenPerry

wt.org.WTGroup myGroup = wt.org.StandardOrganizationServicesHelper.manager.getGroup("My group");

Perhaps?

I am feeding getGroup() both a String (the group name) and a WTOrganization. I'm not sure off the top of my head if the WTOrganization is optional or not.

1 reply

BenPerry
BenPerry15-MoonstoneAnswer
15-Moonstone
July 4, 2014

wt.org.WTGroup myGroup = wt.org.StandardOrganizationServicesHelper.manager.getGroup("My group");

Perhaps?

I am feeding getGroup() both a String (the group name) and a WTOrganization. I'm not sure off the top of my head if the WTOrganization is optional or not.

Stanley1-VisitorAuthor
1-Visitor
July 4, 2014

Feeding method with WTOrganization too works for me, thx.

1-Visitor
November 15, 2015

Hello Stanislav,

Can you post the code that works for you. I get null with the same code

  • wt.org.WTGroup myGroup = wt.org.OrganizationServicesHelper.manager.getGroup("My group"); 

Regards,

Gautham