on 06-22-2006 2:14 PM
Hi,
Is there any way I can read all the users assigned to a particular portal role?
thanks
Lm
Hi,
Use this code:
Iterator rit = null;
IWDClientUser clientUser = WDClientUser.getCurrentUser();
IUser user = clientUser.getSAPUser();
rit = user.getRoles(true);
IRoleFactory rfact = UMFactory.getRoleFactory();
while (rit.hasNext()) {
String roleName = (String) rit.next();
IRole role = rfact.getRole(roleName);
}
Regards,
Rajeev
regards,
Rajeev ranjan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi LM,
Doesn`t <i>public String[] IRoleFactory.getRolesOfUser(String uniqueIdOfUser, boolean recursive) </i> make it? See https://media.sdn.sap.com/javadocs/NW04/SPS15/um/com/sap/security/api/IRoleFactory.html for JavaDocs.
Best regards, Maksim Rashchynski.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi LM,
Check http://help.sap.com/saphelp_nw04/helpdata/en/48/d1d13f7fb44c21e10000000a1550b0/frameset.htm especially "Constraints" section. may be you will find your case there.
BTW, what is the LDAP error?
Best regards, Maksim Rashchynski.
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.