on 09-01-2008 5:43 PM
Access UME from Webdynpro Application u2013 display the user attributes from Webdynpro iview
How to go for this...??
Edited by: saurav mago on Sep 1, 2008 6:45 PM
Hi,
Please Refers the following Docs.
Fetching User Details from the Portal and Displaying it in Web Dynpro with Authentication in the Portal
Protecting Access to the Web Dynpro Application Using UME Permissions
http://help.sap.com/saphelp_nw04/helpdata/en/f3/a64d401be96913e10000000a1550b0/frameset.htm
Integrating UME Permissions in the Web Dynpro Application - Steps
http://help.sap.com/saphelp_nw04/helpdata/en/d0/13214166abc059e10000000a155106/frameset.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Links mentioned were very useful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1789] [original link is broken] [original link is broken] [original link is broken];
check this doc also:[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/905cb568-ce15-2a10-0199-af0099da322e]
Regards,
Khushboo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Saurav,
Try this:
import com.sap.security.api.IUser;
import com.sap.security.api.IUserAccount;
import com.sap.security.api.UMException;
import com.sap.tc.webdynpro.services.sal.um.api.IWDClientUser;
import com.sap.tc.webdynpro.services.sal.um.api.WDClientUser;
import com.sap.tc.webdynpro.services.sal.um.api.WDUMException;
try {
IWDClientUser wdClientUser = WDClientUser.getCurrentUser();
IUser sapUser = wdClientUser.getSAPUser();
if (sapUser != null) {
java.util.Iterator parentGroups = sapUser.getParentGroups(false);
while (parentGroups.hasNext()) {
String parentGroupName = (String) parentGroups.next();
if (parentGroupName.equals("GRUP.R3_ROLE_DS.Z:EP_XPTO123")) {
return true;
}
}
}
}
catch (WDUMException e) {
e.printStackTrace();
}
OBS.: sapUser can be used to access a lot of info regarding the user.
OBS.: you need to add a reference to "com.sap.security.api.sda", that is in the default SC SAP_JEE, if I well remember.
Regards,
Douglas Frankenberger
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.