cancel
Showing results for 
Search instead for 
Did you mean: 

Finding Groupid from userId and finding users under group

Former Member
0 Kudos

Hi all,

In SAP EP, 5 users are created (IN_COM_APP1,IN_COM_APP2,IN_COM_APP3) and client has not given group id which is assinged to those id, So can anybody tell how to find Group id from gives user id, and once if i found groupid, how to find users under that group.

Thanks,

Satish

Accepted Solutions (1)

Accepted Solutions (1)

srinivas_sistu
Active Contributor
0 Kudos

Hi Satish,

Use below code to get the group details of a user....

*

user=your loggedin User.

*

Iterator pGroups=user.getParentGroups(true);

while(pGroups.hasNext())

{

String gString=(String)pGroups.next();

IGroup g;

try

{

g=UMFactory.getGroupFactory().getGroup(gString);

now you can do...

g.getDisplayName() or g.getUniqueID()......

what ever you want to retrieve....

}

catch(Exception e)

{

//exception message

}

}

Regards,

Srinivas.

Former Member
0 Kudos

Thanks for your answers, i got the Group unique id.... Can u tell me how to get the all users under this group. Our requirment is Client have created some EP users, and from our application we have to get all the users created in ep for our tool and to add users in to database in run time.

Thank You.

Answers (1)

Answers (1)

Former Member
0 Kudos

You can find out user and group information from "User Management". Please go http://<Host>:<port>/useradmin and "Search".

Former Member
0 Kudos

Hi thanks for your. its helpful.