on 10-15-2006 5:59 PM
Hi all,
I have a specific requirement to develope using Webdynpro. I want to programically display the list of roles assigned to a selected user. Could some one help me . I promise to award points for the solution.
Thank you in advance
Regards
Maruti
Hi Maruti,
Iterator rit = null;
try
{
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);
}
}catch(Exception e)
{
e.getLocalizedMessage();
}
check this thread too
/message/1565111#1565111 [original link is broken]
Regards, Suresh KB
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Maruti,
You need to add something called com.sap.security.api.jar file to the library of your project(It will be in SAP\JDT\eclipse\plugins folder). when you want access the UME APIs.
See this link for UME APIs
https://media.sdn.sap.com/javadocs/NW04/SPS15/um/index.html
Regards, Suresh KB
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
6 | |
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.