Skip to main content
1-Visitor
Jul 4, 2014 8:54 AM UTC
Solved

Get a Group of Users?

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.

BenPerry
BenPerryAnswer
15-Moonstone
Jul 4, 2014 11:30 AM UTC

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.

5 replies

BenPerry
BenPerry15-MoonstoneAnswer
15-Moonstone
Jul 4, 2014 11:30 AM UTC

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.

Translate
Stanley1-VisitorAuthor
1-Visitor
Jul 4, 2014 11:32 AM UTC

Feeding method with WTOrganization too works for me, thx.

Translate
1-Visitor
Nov 15, 2015 9:02 PM UTC

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

Translate