Skip to Content
0
Former Member
Apr 22, 2008 at 04:42 AM

Read current login id of portal

149 Views

Hi,

How colud i read the user id of the portal who logged in.....

Here is the code i wrote to read....

IWDClientUser user = WDClientUser.getLoggedInClientUser();

IUser iuser = user.getSAPUser();

String userid = iuser.getDisplayName();

wdContext.currentZemp_Dob_Alerts_InputElement().setUname(userid);

IWDMessageManager manager = wdComponentAPI.getMessageManager();

manager.reportSuccess(iuser.toString());

But when i loggin to the portal, i m getting below error....

  • * com.sap.security.core.persistence.imp.PrincipalDatabag Mon Apr 21 10:00:24 IST 2008 * UniqueID: USER.PRIVATE_DATASOURCE.un:sep_amar * Type: USER * Home data source: PRIVATE_DATASOURCE * Private id part: un:sep_amar * * Existence not checked. * * "com.sap.security.core.usermanagement"|->"j_authscheme" (no time limit)="basicauthentication" * "com.sap.security.core.usermanagement"|->"MYSAPSSO2_STRING" (no time limit)="AjExMDAgAA9wb3J0YWw6c2VwX2FtYXKIABNiYXNpY2F1dGhlbn... (total length: 468 characters)" *************************************************************************** Persistent data: *************************************************************************** * com.sap.security.core.persistence.imp.PrincipalDatabag Mon Apr 21 10:00:24 IST 2008 * UniqueID: USER.PRIVATE_DATASOURCE.un:sep_amar * Type: USER * Home data source: PRIVATE_DATASOURCE * Private id part: un:sep_amar * * Principal exists. * * Direct parents: * GRUP: GRUP.SUPER_GROUPS_DATASOURCE.EVERYONE * GRUP.SUPER_GROUPS_DATASOURCE.AUTHENTICATED_USERS * ROLE: ROLE.PCD_ROLE_PERSISTENCE.VvlvkEGjiW9zPFaxR/4pd2/bX5Q= * ROLE.UME_ROLE_PERSISTENCE.un:SAP_JAVA_SUPPORT * ROLE.PCD_ROLE_PERSISTENCE.X0i/uUhhjJXOYQyzAkx5hpvh5CQ= * "com.sap.security.core.usermanagement"|->"lastname" (no time limit)="nath" * "com.sap.security.core.usermanagement"|->"accessibilitylevel" (no time limit)= * "com.sap.security.core.usermanagement"|->"locale" (no time limit)= * "com.sap.security.core.usermanagement"|->"uniquename" (no time limit)="sep_amar" * "com.sap.security.core.usermanagement"|->"firstname" (no time limit)="amar" * "com.sap.security.core.usermanagement"|->"email" (no time limit)= * "com.sap.security.core.usermanagement"|->"salutation" (no time limit)= * "com.sap.security.core.usermanagement"|->"displayname" (no time limit)= * "com.sap.security.core.usermanagement"|->"company" (no time limit)= * "com.sap.security.core.usermanagement"|->"APPROVAL_REQUEST_COMPANYID" (no time limit)= * "$serviceUser$"|->"SERVICEUSER_ATTRIBUTE" (no time limit)= * ""PortalFavoritestH90zpQXu8M9/O7OZG+UO8iYi90" target="_blank">http://sapportals.com/xmlns/cm"|->"PortalFavoritestH90zpQXu8M9/O7OZG+UO8iYi90=" (no time limit)= * "com.sap.portal.dsm"|->"DebugControlFlag" (no time limit)= * "com.sap.tc.webdynpro"|->"debugParameters" (no time limit)= * "com.sapportals.portal.navigation"|->"uipmode" (no time limit)= * "com.sap.portal.aidebug"|->"AppIntegratorDebugMode" (no time limit)= ***************************************************************************

Kindly let me knw how could i solve this poroblem

Thanks & Regards,

Amarnath S