Skip to Content
avatar image
Former Member

Read Portal User

Hi,

We are running Poratal 6.0 and J2EE(WAS 7) Server in different server.

We created a WD Application in J2EE Server. We created a WD IView for the same application in portal.

We need identify the portal user in the WD application. When we tried with IWDClientUser user1 = WDClientUser.getLoggedInClientUser(); this solution we are getting J2EE User. But we need portal User.

Many Thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Dec 28, 2006 at 03:54 PM

    Hi Krishnaveni,

    You can get the Portal Login User by using the following code.

    <b>IWDClientUser wdUser = WDClientUser.forceLoggedInClientUser();

    IUser user = wdUser.getSAPUser();

    String Username = user.getUniqueName(); </b>

    You need to add the "com.sap.security.api" jar file inorder to get the username.

    Regards,

    Jhansi

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 29, 2006 at 12:47 PM

    Hi,

    Try the following code, to get user.

    try

    {

    IUser iuserObj = (IUser) WDClientUser.getCurrentUser().getSAPUser();

    }

    catch (WDUMException wdume) {

    // TODO: handle exception

    }

    Add comment
    10|10000 characters needed characters exceeded