on 02-09-2007 10:01 AM
Hello
I'm sure this is a common problem but I've checked all the older posts and I just can't get it working.
We have a web dynpro app that runs within an EP iView (EP6SP14), and we need to retrieve the portal roles for the user.
With the APIs (using IRole and IUser and the getRoles() method) we only get the J2EE roles. These are not the same.
Can anyone help?
Thanks
Chris
Hi Christopher,
I think th following blog refers to the problem you are facing.
/people/preksha.malhotra/blog/2006/12/12/accessing-a-web-dynpro-application-through-portal-using-portal-user-id
Regards,
Alka.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chris,
have you tried to read the groups of your user? As far as i know, the roles from EP are mapped to the groups in J2EE.
Try something like this:
IWDClientUser user = WDClientUser.getCurrentUser();
Iterator groups = user.getSAPUser().getParentGroups(false);
while (groups.hasNext()) {
String bez = UMFactory.getGroupFactory().getGroup((String) groups.next()).getDisplayName();
// bez contains your roles (groups)
}
i hope that helps
regards
ingo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.