How to determine portal user in a BSP

Hi,
is it possible to determine the current logged in portal user in a BSP iView? If it's possible, how?
regards

it is possible.
1. if spalogon ticket based SSO, then with BSP application, sy-uname will hold the user id.
2. if the sso is based on user mapping (different logged on user in EP and different user id for logging on to ABAP system)
check this link where i have explained on how to do this
Re: EP user credentials as attributes of BSP
in the bsp application iview application parameter
pass
you need to use
epuser=<User.UserID>
you can also use
epuser=<User.LogonUid>
then in the corresponding bsp page have page attirbute with auto check with the name epuser. now epuser will  hold the ep logged on user
Regards
Raja

Similar Messages

  • How to create portal user and integrate with external appl login

    How to create portal user and integrate the user with external application for single sign-on ?
    I want to access my external application thru portal user ..?
    Shyam

    Hi Jithin,
    The link that you've shared talks about a different scenario.
    In my case, I want to pass the portal user id when the user clicks on the Help Link present in the header area.
    I am trying to pass it along with the Help Link Url property of a masthead iview but it is not getting passed to the target Url.
    I would like to know if it is possible to pass the Portal User Id in this way or not.
    Though if we create a appintegrator iview and pass the user id <User.UserID> along with the target Url, it reaches there.
    Thanks & Regards,
    Anurag

  • How to determine if user is a portal user

    I am running a java servlet OUTSIDE of portal. I require a username. But I must first see if that person is also a Portal user.
    Does anyone know of some way I can accomplish this? The only idea I have so far is to make a database link to the 9ias database and expose the wwsec_person view to my servlet. I am running into trouble since my wwsec_person view isn't populated for some reason.
    I also thought about trying to find an api that returned user information from the oid, but since I am running outside of portal, I don't know if this is possible either.
    I would appreciated any ideas.
    Thanks

    Hi,
    I think you have to set the context first with the plsql call wwctx_api.set_context all views are influenced by user & groups privilegs... see secure content repository views p 2-18
    Luc

  • How to use Portal SSO with existing BSP application

    Hi all,
    we run SAP EP 6.0 here and have a single start BSP page of
    an application integrated with the SAP appintegrator for BSP. The rest of the existing BSP application still uses
    the login functionality based on CL_BSP_LOGIN_APPLICATION
    and is not integrated in the portal.
    Problem: If a user directly accesses one of the "old" BSP pages, he should be redirected to the portal to auth. him via SSO and afterwards the original BSP page with all its parameters should be processed.
    How to deal with that? Is there a similar mechanism like with the BSP_LOGIN_APP in between for the SAP EP?
    Thanks for your help!
    -RAINER-

    I think that doesnt solve the problem.
    I have 2 systems: SAP ECC with all BSPs and the portal on another system. So I have to entry points: Via portal using the appIntegrator BSP or directly to the ECC.
    As-is: If the auth. for the BSP appl. fails, the user is re-directed via the error page given in the service (SICF)
    to a BSP login app. and from there to the requested page.
    No portal in this concept.
    Must-be: A user is still able to directly access a BSP on the SAP ECC by entering the URL in the browser. It's not a must entering via the portal first.
    So when the login failed on the ECC (no SSO ticket), he should be redirected to the portal for getting his SSO.
    After he signed in successfully the user will be forwarded to the BSP page he entered in the browser the first place.
    I can't see a way to use the URL iView. I am thinking of simply changing the login mechanism of the BSP using the portal login functionality.
    The link you gave me offers an implementation of CL_ICF_SYSTEM_LOGIN. Any ideas?
    Regards,
    -RAINER-

  • How to get Portal User Context  in Web Dynpro application

    I have successfully integrate a web dynpro app into SAP Netweaver Portal.
    Within my web dynpro app, how can I get portal user context information such as first name, last name, job title or some newly created ume attibutes.
    Is there any programmatical approach to get portal user context in my web dynpro. I not sure whether I can use the following codes in web dynpro?
    IUserContext userContext = request.getUser();
    String firstName = userContext.getFirstName();
    String lastName = userContext.getLastName();
    If yes, can someone point me the name of the jar file I have to import.
    Note : The SAP Netweaver installation that runs my web dynpro app is same with the SAP Portal.

    Hi ,
    you can use the below code to get User details and  add com.sap.security_2.0.0 > lib > com.sap.security.api.jar
    try
              IWDClientUser clientUser = WDClientUser.getCurrentUser();
    String firstName = clientUser.getFirstName();
    String lastname = clientUser.getLastName();
    catch (WDUMException e) {
                wdComponentAPI.getMessageManager().reportException("Error Retrieving User"+e.toString(),true);
    Regards,
    Sunitha Hari

  • How to determine the user who placed a certain concurrent request?

    Hi there,
    Is there a way (SQL query, for example) that can help me determine the user (EBS username) who placed a certain concurrent request?
    Thanks,
    Tareq

    Hi Tareq;
    Please check below notes which could be helpful for your issue:
    Concurrent Request-whcih is submmited by one of the Oracle USER *<<Posted By Hussein Sawwan*
    How to See Others Concurrent Request Oracle 11i
    Concurrent program- How to find database session *<<Posted By Hussein Sawwan*
    Re: Reg: Apps Concurrent
    Regard
    Helios

  • How to determine best User Device Affinity Settings

    We've configured User Device Affinity for our site based on the canned defaults. Initially we started with 14 days and 1440 minutes. But after a recent deployment, we discovered that our Antivirus service account is registering as a "Primary User"
    on all of our machines which has triggered a very bad situation.
    My question is how do you determine these settings? My first try was to find a report that showed how many minutes each user was registering in the given period so that I could adjust it accordingly. I assume that my regular users are using the computers
    a lot more than my service account but I have no way of verifying this.
    I've tried combing through the security logs, but I'm not sure what SCCM is picking up on to determine the time period.
    To me, it seems that 24 hours is a really low threshold and that I could bump that up to 120 hours over 14 days pretty easily without issue. My concern is that there is a reason that they are setting it so low to begin with that I'm missing. Even then, I'm
    just randomly trying things hoping to get it right as I don't have the proper information to make the right decisions.
    Any ideas? Feedback?  

    Yeah, I saw those logs but it still seems mysterious to me. I'm not sure where it's getting it's info. I assume it's the security log for each machine but I have nothing to confirm that. It's odd because our service account for our antivirus solution isn't
    actually logging onto the machines so I'm not sure how it decides that this user is a primary user. 
    Ultimately, we worked around the problem by switching antivirus solutions but that won't be an option next time. 
    My guess is that we could have fixed our problem by adjusting our security logging settings in windows. But it wasn't something I wanted to do without direct confirmation with how this all works. 
    Thank you for your help on this though. 

  • How to fetch Portal Users data ? (Including Mapping details)

    Hi all,
    I want to retrieve Portal users data with the detail of its mapping (i.e. if the user is mapped or not with backend user? and if yes, to which backend user?).
    Thanks,
    Tejas

    Thanks for the reply Nadav.
    But what I want is the complete list of all the users, the reason being there are more than 2000 users on Portal and going for this one by one mapping checking is not really feasible time and effort wise.
    So is there any way how can I get the users data from UME or LDAP? as I have both kinds of users.
    Please guide.
    Thanks and Regards.
    Tejas

  • JSR168 portlet - How to acquire Portal user identity?

    My scenario is:
    - Write a JSR168 portlet to access data in an Oracle database
    - The portlet will use the identity of a Oracle Portal user, who currently logs in, to create the connection to that database
    - In the database, I create a global role, that in turn, assigned to an enterprise role, already granted to the portal user.
    - When that user logins the database, depend on his available roles, the database will control his access on data
    My problem is: how can I get the identity (username/password) of that Portal user to establish the connection to my database?
    If anyone know, plz give me some help. I'm very thankful.

    Dear Steven,
    Can you elaborate on your query a bit further?
    If you are looking for some SQL statement that will validate against a table for a given portal user then you can use the API wwctx_api of Portal.
    For example,
    SELECT FIELD1, FIELD2, FIELD3.....
    FROM TABLE1
    WHERE PORTAL_USER = WWCTX_API.GET_USER;
    I hope this helps.
    Thanks.
    Saabir.

  • How to get Portal user from a standalone Java application

    Hi,
    I have a standalone Java application from where I need to fetch the Portal User Information like userid and email id.
    I am using the below line of code
    iUser = UMFactory.getUserFactory().getUserByLogonID("e017939");
    I have included the jar file com.sap.security.api , But it was giving me the below exception
    java.lang.NoClassDefFoundError: com/sap/tc/logging/Location
         at com.sap.security.api.UMFactory.<clinit>(UMFactory.java:55)
         at com.am.wcas.java.mailscheduler.kmaccess.FetchDataFromKM.getiUser(FetchDataFromKM.java:29)
         at com.am.ScheduleEmails.main(ScheduleEmails.java:89)
    and I am getting a pop Up message from the Java Virtual Machine Launcher, saying a Fatal Exception has occured and the Program will exit.
    Then I went throught he SDN threads and they asked me to include the
    logging.jar and com.sap.security.perm.api .
    I Included them, then also, it is giving me Exception
    java.lang.NoClassDefFoundError: com/sap/engine/lib/logging/LoggingHelper
         at com.sap.security.api.UMFactory.<clinit>(UMFactory.java:56)
         at com.am.FetchKMData.main(FetchKMData.java:30)
    Exception in thread "main"
    and I am getting a pop Up message from the Java Virtual Machine Launcher, saying a Fatal Exception has occured and the Program will exit.
    Kindly let me know if it is possible to access the User info using UMFactory in a standalone Java application. If yes kindly let me know where i am going wrong.
    Regards,
    Shilpa B.V

    Hi Shilpa,
    1. Check that you have added com.sap.security.api within the Your Project>Libraries folder (under navigation tab) and also added jars in the build path of the Your Project under project>properties>Build Path.
    2. In case you have a DC instead of Web Dynpro Project then you have to add the com.sap.security.api under Your DC>Used DCs and have compile time and runtime dependency added.
    Here java.lang.NoClassDefFoundError is caused basically due to only build time dependency added and reference to the jar missing at runtime. Rest the code to retrieve the current user id using UME API and getUserByLogOnID("....") method with/without portal environment would not be an issue at all.
    Regards,
    Tushar SInha

  • How to determine if user is logged in

    I am trying to look for a flag which tells me whether the user is logged into the application or not. I thought I could user :APP_USER but it can still contain value even if the user has logged out the application. We are using LDAP authentication. Thanks.

    I have some items on page 0 which I do not want displayed on the log in page. So I was looking for a condition which basically tells me whether the user has logged in or not. May be there is a better way of dealing with this other than figuring out if user is logged in. My understanding is that a user gets a session id regardless of whether the user is logged in or not. Upon successful login APEX creates a cookie with values that it uses to match with user session id to determine if user is logged in or not.

  • How to map Portal User groups to a MDM System?

    Hi,
    Have anyone tried mapping portal user group to a MDM System?
    The idea is to avoid each user to do user mapping for MDM of their own.
    When i look into the usermapping section of a portal user group, it shows me a message -
    "There are no systems available for user mapping for the selected principal"
    Thanks and best regards,
    Arun prabhu S

    Hi All,
    Got it!
    1. Create portal users,
    2. Create a portal user group,
    3. Assign Users to User group,
    4. Go to System Administration, edit permission of the MDM system, add the user group to the MDM system permission list and save
    5. Go to User Management, modify the user grooup, go to the User mapping of the user group and do mapping for MDM system and user group using a valid MDM User name and password and Save
    6. In User Management, modify the Portal role for MDM , add the user group to the role and save
    7. Edit permission of the role object, add the user group to the permission list and save
    Result:
    All the users assigned to the user group will be able to access MDM information on the portal correspond to the MDM mapping done at the user group level. This avoids self user mapping in personalization link.
    Best regards,
    Arun prabhu S

  • How to determine the users Browser (IE or WML)

    is there a way to programatically determine what the users browser is?
    I have a webdynpro that can run on both Blackberry (WML browser) and IE via the portal.
    I need a way to identify the users browser from Webdynpro Java.

    Yes we currently are using 2 URLs to launch the apps, however, we wanted to see if we could just give 1 URL out to the end user....so they wouldn't have to remember which one to go to for Blackberry and which one to go to for IE.
    I have a solution working....I just need to find a way to detect the client without using the TaskBinder.
    Let me know if you find another way ....

  • How to determine if user is a  head of department in ppoma_bbp

    Hello , in ppoma_bbp, in the attributes of a user,  i need to determine if the user is the head of own organizational unit.Which FM can i use?

    Hi
    in ppoma _bbp
    click the user and go to basic data .
    there u can see one check box, head of own organisation unit
    if you flag it. user becomes Red cap
    i am not aware FM ..
    regards
    muthu

  • How to determine which user uses which database-object

    Hi,
    currently we are in the process of consolidating our databases. One of the neccessary steps is to figure out which user connects to the database at all. That's easy, we implemented a logon-trigger and log the collected information into a separate table.
    If a user with objects (e.g. tables, views, procedures) exists - but this user never connects to the database - does that automatically mean that these objects are not used at all? No need to say that this is not true. But how can we figure out if a connected user has selected an object of this user?
    Our porblem is that we have alot of schemas in our database - but the developers don't know if this schema is not used by an application or not (sad but true).
    To enable auditing would be one choice to figure out if an object was ever used or not.
    Are there any other possibilities?
    Any help will be appricated
    Rgds
    Jan

    VivaLaVida wrote:
    Hi,
    currently we are in the process of consolidating our databases. One of the neccessary steps is to figure out which user connects to the database at all. That's easy, we implemented a logon-trigger and log the collected information into a separate table.It could have been even easier by turning on the built-in audit feature.
    If a user with objects (e.g. tables, views, procedures) exists - but this user never connects to the database - does that automatically mean that these objects are not used at all? No need to say that this is not true. But how can we figure out if a connected user has selected an object of this user?audit would be a good choice.
    Our porblem is that we have alot of schemas in our database - but the developers don't know if this schema is not used by an application or not (sad but true).Not sure what developer will do with used/not used application.
    To enable auditing would be one choice to figure out if an object was ever used or not. What's wrong in auditing ?
    Even though audit may have a footprint on performance, that would probably be less costly than any custom solution.
    Nicolas.

Maybe you are looking for

  • HT1338 how to use a webcam in a mac pro?

    How to use a webcam on a mac pro?

  • Tab Container Issue - Graph not plotting.

    Hi All, I am currently working on cost model which is split into two tab containers.  the first tab contains the graph (Model) while the other tab contains the adjustable variables (Assumptions).  The graph is dependent on the adjustable variables in

  • How to Install the Designer2k

    Hello. I hava spent much time on installing the Designer.But I failed each time. I have installed the Oracle8i for windows 2000,and I hava installed desinger in another computer.Then the sql*plus in the workstation works well.But the Repository Admin

  • Install IOS 5.1 on iphone 3GS

    Hello I would like to install IOS 5.1.1 on my iphone 3GS. But itunes only proposes to install IOS 6 which I do not want. Does anyone know how this can be done?? Thanks, Olivia, Paris, France

  • Grid Values

    Materials are currently counted in our warehouse using SKU numbers and Grid Values (colors) within SAP (non-warehouse managed).  If we were to implement the warehouse management module of SAP, how would I organize a material (with one material number