Advertisement

08.13.2007 at 08:11AM PDT, ID: 22759076
[x]
Attachment Details

Java BO SDK - Getting groups of a user

Asked by matthew016 in SQL Reporting, Crystal Reports Software, Business Objects

Tags: , , , ,

Hi,

I am trying to retrieve the list of the groups of all the users.
This code below displays me the list of the users, but the groups are empty.
However, when I am in the BusinessObejcts Enterprise Console, I can see that users are "members of" groups.
So shouldn't be empty.

Thank you for any help.



        IInfoObjects iObjects = iStore.query ("SELECT SI_ID FROM CI_SYSTEMOBJECTS "
                + "WHERE SI_KIND='USER' ");
            
        for(int i = 0; i < iObjects.size(); i++)

        {

                  IInfoObject iUser = (IInfoObject) iObjects.get(i);

                  Iterator groups = ((IUserBase) iUser).getGroups().iterator();

                  outString += iUser.getID()+" "+iUser.getTitle()+"<br>";

                  while(groups.hasNext()) {
                        outString += groups.next()+",";
                  }

                  outString += "<br>";
        }Start Free Trial
 
Loading Advertisement...
 
[+][-]08.13.2007 at 05:47PM PDT, ID: 19688613

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.13.2007 at 11:36PM PDT, ID: 19689790

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.17.2007 at 11:19AM PDT, ID: 19719105

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]08.17.2007 at 11:21AM PDT, ID: 19719126

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: SQL Reporting, Crystal Reports Software, Business Objects
Tags: bo, sdk, ci_systemobjects, iinfoobject, user
Sign Up Now!
Solution Provided By: matthew016
Participating Experts: 1
Solution Grade: A
 
 
[+][-]08.17.2007 at 06:54PM PDT, ID: 19721389

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_1_20070628