Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
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.
Solved! Go to Solution.
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.
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.
Feeding method with WTOrganization too works for me, thx.
Hello Stanislav,
Can you post the code that works for you. I get null with the same code
Regards,
Gautham
Hello Gautham,
Did you try with directory service provider ?
wt.org.DirectoryContextProvider dsprovider = wt.org.OrganizationServicesHelper.manager.newDirectoryContextProvider(services, null);
wt.org.WTGroup myGroup = wt.org.OrganizationServicesHelper.manager.getGroup("groupname", dsprovider);
Thank you
Binesh Kumar
Barry Wehmiller
Hello Binesh,
Thanks. that worked.