Skip to Content
avatar image
Former Member

Access UME from Webdynpro Application

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 02, 2008 at 03:30 AM

    Hi,

    Please Refers the following Docs.

    Fetching User Details from the Portal and Displaying it in Web Dynpro with Authentication in the Portal

    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e039ce31-4156-2b10-1481-bdc3ff8cae48

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 02, 2008 at 04:16 AM

    Hi

    go through this thread:[retriving user details from user rofile in portal database;

    [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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 01, 2008 at 05:04 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 02, 2008 at 09:41 AM

    Links mentioned were very useful

    Add comment
    10|10000 characters needed characters exceeded