Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. 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.