How to access the User's login portal ID?

Hi all,
     How to access the user's portal login id??
   Thanks,
   Anirudh.

Hi
Try this
String loginuser="";
     try{
          IWDClientUser wdUser = WDClientUser.getCurrentUser();
          IUser user = wdUser.getSAPUser();
          if(user != null)
               IUserAccount acct[] = user.getUserAccounts();
               if(acct[0] != null)
                    loginuser = acct[0].getLogonUid();
                    strUserid = strUserid + acct[0].getLogonUid();
}catch(Exception e){
Kind Regards
Mukesh

Similar Messages

  • How do assign the user of Consumer Portal to the role of Product Portal?

    Hello All:
        Use FPN, now I want to assignment the role of Consumber Product Portal the user of Consumer Portal to  the user of Consumer Portal(RRA) .But because There are too many user that needed be configured.It is arduous work.
         So Pls help me and tell me how to import the role of Product portal to the user of Consumter Portal,
    Thanks In addvance.
    jideliang

    Thank all:
    Because I want assign the Remote Role of Produce to user of Consumer with FPN.Use:
    [Role]
    rid=Role1
    rdesc=Role description
    user=MarcPeters;JackSmith;Alan_Fox;
    group=HappyBuyersOf2003;HappyBuyersOf2002
    Can not import.
    I have find the document "How to Automate Content Creation via XML Content and Actions (NW7[1].0).pdf", it help me to use XML to import the role,the following format:
    <Action id="com.sap.portal.roleassignment">
    <Roles>
    <Role name="pcd:portal_content/myFolder/myRole" producer.alias = "myProducer">
    <Principal type="user" id="test"/>
    But when I import the XML file.There is a error.
    Have someone used it ?
    jideliang
    </Role>
    </Roles>
    </Action>
    How

  • How to access the User Reports using 'Administrator' login in OBIEE 10g

    Is there any way to access the reports saved in Users/'My folders' using the Administrator Login?

    Hi User,
    Create a new shared folder.
    Provide access to all the users.
    Now, ask the user who created the report in 'My Folders' to save the report in this new shared folder.
    And, Delete those reports in 'My Folders'.
    Now, as the report is saved in New shared folder you can access - this one.
    Else--- Ask the user who created the report in my folder to make sure that it is available to all users. (Permissions - Permission should need to be provided for Administrator group)
    Thank you.

  • How to reset the user password in Portal (SSO Users).

    Hi,
    How to let the Portal users (SSO Users) reset their passwords by themselves..?
    - J

    Forgot one another thing,
    Assume that the users have set their required challenge questions (hints).
    How does it work when the user forget his/her password. Is it like something below.
    - click the "Forgot Password" link.
    - Enter your id
    - Answer your Hints.
    Will the new password be emailed to you or you will be allowed access the system and then the user has to choose a new password.
    Could you please shed light on this.
    J.

  • In java ,how to access the  user-defined type of pl/sql?

    in my application,i using the following code to access the pl/sql type self-defined,but it throws run-time exception,how can i resolve it?String sqlStr="{call BossStat.dunStat(?,?,?,?,?,?)}";
    OracleCallableStatement ocstmt=(OracleCallableStatement)conn.prepareCall(sqlStr);
    int paramIndexInt=1;
    ocstmt.setInt(paramIndexInt++,100);
    ocstmt.setInt(paramIndexInt++,1);
    ocstmt.setInt(paramIndexInt++,1);
    ocstmt.setTimestamp(paramIndexInt++,new java.sql.Timestamp(System.currentTimeMillis()));
    ocstmt.setTimestamp(paramIndexInt++,new java.sql.Timestamp(System.currentTimeMillis()));
    ocstmt.registerOutParameter(paramIndexInt++,OracleTypes.ARRAY,"BossStat.TP_STATLABELVAR");
    ocstmt.execute();

    You can have a look at this how to document
    http://otn.oracle.com/sample_code/tech/java/codesnippet/jdbc/objects/ObjectTypes.html
    You can apply similar concept if you want to use stored procedure.
    If you still get problems, post the type that you have created and the error you are getting.
    Chandar

  • How to access the user-id property which is available in VM engine in the rulebase

    Hi Experts,
    The interview engine exposes various application constants and one of them is the user-id which gives the user-id of the current interview session. This is basically taken from the url for the web-determinations. We would want to use this property in the rule bases to take the user-id of the current interview session. Is there any function available in the Rulebase which will return this value? Or is there any other way to get this value in the rulebase?
    Thanks,
    KK

    The demo app is only available when at apple stores it's not actually a downloadable app.

  • How to display the user in a Portal page?

    This is certainly a qyestion many of you have come across:
    What is the best way to display the portal username in a portal page?
    Thanks in advance for your help,
    Miguel

    From a dynamic page, you'll want to call:
    htp.p(wwctx_api.get_user());
    For info on how to print out other information from their profile, you'll want to review the documented API calls at:
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/plsql/doc/astart.htm

  • How to access the global data in user exit.

    Hi All,
    How to access the global data in user exit.
    the question is that when we were writing a code in the FM. i need to read data from the standard program like newly created documen and this document number need to be accessed in my program.
    this document number is not imported to the FM i needed to access for frther proceed.
    Thanks in advance.

    Hi,
    See the below PDF file by Jeff Goldstein. There you can find all the details about accessing data outside of the exit.
    [SAP User Exits and the People Who Love Them|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/208811b0-00b2-2910-c5ac-dd2c7c50c8e8]
    This will help you to solve your problem.
    Regards
    Karthik D
    Edited by: Karthik D on Dec 2, 2008 4:18 PM

  • How to access the portal database ?

    Hi ,
    1. How to access the portal database from an abstract portal component program ?
    2. How to insert data to the Table from the abstract portal component program ?
    Please provide me some direction to proceed .
    plz send me the steps how to access the Database using SQL.
    Thanks
    Smita
    Edited by: Smita Mohanty on Nov 14, 2008 9:21 AM

    Hi Smita,
    In case your portal has MS SQL server as its databse, then I am giving the step by step directions to achieve 90% of what you wish to do. Rest 10% you can try on your own.
    Go through my article given below:
    [How to Create a Web Service using Enterprise JavaBeans|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/b00917dc-ead4-2910-3ebb-b0a63e49ef10]
    First go through pages 1-12 which will help you to create user/table in MS SQL database as well as create a data source in Visual Admin. Page 19 will give you the code which you can use in your Portal component to access the tables you have created in your SQL database.
    I hope your problem gets solved.
    Bye
    Ankur

  • How to access the webservice in portal component

    hai
         how to access the webservice in portal component.
         anyone knows give the solution
    Rds
    Shanthakumar

    Hai
    Please check this link.
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/vc/connectivity&
    Regards

  • Chat App: how to store the user IP in database when they login.

    hello,
    i am working on chat application. first i made a login GUI form. after login when we run the Chat program, it ask the ip address of the server to whom it want to connect. and if u enter the ip address, it will connect to the server and chat will begin, thats working perfect.
    but i want to show the list of users who r logged on and when i simply click on the user name, chat should begin.
    i have the logic that when any user log in, then its IP address will be stored in the database. this ip address will shown to the online users.
    but i dont know how to store the user information in database when they log in. can any body suggest me wht lines of code i should use.
    thanks.

    palakk wrote:
    i have the logic that when any user log in, then its IP address will be stored in the database. Bad approach. That will only work if this chat is only intended for use on a LAN. If it's used on the internet, then your users' IP addresses will almost always be either a) those of their routers, or b) private IP addresses, and in both cases, multiple users can have the same IP address.
    this ip address will shown to the online users. Why would you want to do that? I want to chat with "Bill", not with "1.2.3.4".
    but i dont know how to store the user information in database when they log in.Do the same thing that you're currently doing to store the IP address, but with the other information you want to store.
    can any body suggest me wht lines of code i should use. This is not a code writing service.

  • How to get the User Details inoformation in portal?

    I had defined the user informations in "Portal User Details". But i don't know how to get it and what the user table is?
    for example: How to get the email address of user i have defined in portals?
    Tank you very much!
    Ghia Liu
    Genesyslogic.com.tw

    You would use the portal API's for this, there is one named wwsec_api.person_info that returns a record with the specified user's information, such as first name, lsat name, email, telephone, etc - a pretty long list. With release 2 of portal the data is no longer stored in the wwsec_person$ table as it was in release 1 so use the API (which actually is how I would normally do it in release 1 as well).
    To get more documentation on portal API's go to: http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/plsql/doc/astart.htm
    Hope that this helps you - enjoy the day!
    Art

  • How can all the users in my computer (my kids) have access to all the photos I have in I Photo?

    How can all the users in my computer (my kids) have access to all the photos I have in I Photo? My photos only appear when I (the administrator) log into the computer. I want my kids to be able to access them also.

    For iPhoto 09 (version 8.0.2) and later:
    What you mean by 'share'.
    If you want the other user to be able to see the pics, but not add to, change or alter your library, then enable Sharing in your iPhoto (Preferences -> Sharing), leave iPhoto running and use Fast User Switching to open the other account. In that account, enable 'Look For Shared Libraries'. Your Library will appear in the other source pane.
    Any user can drag a pic from the Shared Library to their own in the iPhoto Window.
    Remember iPhoto must be running in both accounts for this to work.
    If you want the other user to have the same access to the library as you: to be able to add, edit, organise, keyword etc.
    Quit iPhoto in both accounts. Move the Library to the Users / Shared Folder
    (You can also use an external HD set to ignore permissions, a Disk Image or even partition your Hard Disk.)
    In each account in turn: Double click on the Library to open it. (You may be asked to repair the Library Permissions.) From that point on, this will be the default library location. Both accounts will have full access to the library, in fact, both accounts will 'own' it.
    However, there is a catch with this system and it is a significant one. iPhoto is not a multi-user app., it does not have the code to negotiate two users simultaneously writing to the database, and trying will cause db corruption. So only one user at a time, and back up, back up back up.

  • How to access the External Applicaitons

    Hai,
    I need to access the external application from portal. My basic need is, when user login with SSO, the user automatically login into my external applications also. my external applications are not web based applications.
    Thats why, i am thinking to provide a link to my external applications in a portlet. When the user clicks that link after sing-in SSO, then it automatically login into the external application without asking the password. Is there any way to do that.. Can anybody help me it is urgent.... If u find the code also mail me to: [email protected]
    Thanks in advance
    Damodar

    Hai Paul,
    Thanks for ur response.I need this specific requirement. In a portlet that is written in jsp, i need to access another page which is running in another server.I will explain what is my requirement clearly.. In a portlet, i have to acess a page from another site, and i have to pass username as a parameter directly. If i use URL-Based Portlet with passing parameters, It ask the user to enter the parameter and submit the page.. But it wont satisfy my requirement. As u said, access as External application, then it also asks the user for authentication when user access first time. That also don't want.bcoz we integrating that external application into the portal, and all the users existing in portal also does not exist in the external application. thats why i use to send it username as parameter. and i thought place the url in a portlet and ask the user to click it. But, it comes under security issue, the url may copy and place in another syster to access it....Then How does i proceed for it...
    Can anybody help me.. Its URGENT....
    If possible send me the code..
    my mail id: [email protected]
    Thanks in advance
    damodar

  • How to enable create user option in portal under user administration?

    Hi,
    In Portal, in user administration tab, always the create user and Copy to  New user option is disabled, how can i enable those?
    -Siva

    If the AS ABAP is your datasource for your users there is NO WAY you can create users in the portal UME.
    &#9679;     If the UME has read-only access, you cannot modify user attributes stored in the ABAP system, like first name and last name. You can modify attributes stored in the UME database, like street. Even if read-only access is assigned, users can still change their own passwords.
    &#9679;     If the UME has read-write access, you can create users using the tools of the J2EE Engine. Users created in this way are stored as users in the ABAP system. Extended user data that cannot be stored in the standard ABAP user record is stored in the database of the UME.
    in the read/write access the users are created only in the ABAP side and not the java. If you have the read access you cannot create users in the abap side. hence you need the SAP_BC_JSF_COMMUNICATION role to create users in the AS ABAP.....
    Trust me .......bottomline ....you cannot create users in the JAVA UME if you have AS ABAP as your datasource !!!!
    hope this helps..
    \m/

Maybe you are looking for

  • XML validation error while parsing MXI Manifest

    Hi, I have created an hybrid extension for Photoshop. I want to upload my extension on Adobe Exchange. during the upload process I get an error, "XML validation error while parsing MXI Manifest: Declarations can only occur in the doctype declaration.

  • I have installed flash on my laptop, ie, but computer says no flash is installed. Help!

    I have Windows Vista SP2, 4gb, 32 bit.    Each time I install Flash 11 (via links) or 11.5 (directly), the screen tells me either I must close IE (task manager says it is closed) or install is complete.  But when I go to the adobe flash site, it says

  • I'm trying to open LR5 from CC for the first time.

    I've been runnng LightRoom 4 for the past year.  Decided to Check out LightRoom 5.  Tired it for 30 days and really liked it.  So I decided to upgrade to Creative Cloud and get LR 5 and Photoshop at the same time.  The problem is I can;t figure out h

  • Blackberry Curve 9320 - App Store Problems

    Heyo! I have a problem with my new BB. When I want to connect App World / My account i get this msg: BBID token is expired (Error ID: 40631) I registered first time my phone, so the problem's reason is not this. I also used the store at home, when i

  • ACR VS RAW Developer for image detail

    I am an avid/loyal ACR fan who makes mural sized landscape prints from digital capture.  I keep hearing on various forums how Raw Developer (Mac) is the best out there for extracting every ounce of discernable detail from a raw file to a print.  I am