on 06-04-2008 10:07 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You can find out user and group information from "User Management". Please go http://<Host>:<port>/useradmin and "Search".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.