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

Similar Messages

  • Execute Webdynpro4Abap Application with same ERP-User for all portal-users?

    Hi,
    is it possible to let a Webdynpro4Abap application run with only one ERP-User for all portal-users? Therefore not needing an ERP-license for every portal-user?
    Somekind of mapping maybe?
    Regards
    Jan

    Jan,
    It is possible but it all depends on the type of application .If you want to show same data for all users you can use one user but if data is different for all users then you cannot go with this approach.
    to configure single backend user for your application go to tcode SICF and look for that application and go to logon data tab by double clicking and give one common user details
    Thanks
    Bala Duvvuri

  • To add custom user attributes in portal user details

    Hi,
    I am looking at the possibility of adding custom user information attributes in User details of Portal User. By default there are few tabs provided ( general, account info, contact info, additional information.....). I am planning to have another extra tab (custom tab with some custom fields ) to be developed and accessible through external application. My data source would be AS database.
    Not necessary that the custom fields to be visible in the UI. but should be manipulated programatically.  
    Request inputs on feasibility and also the approach that could be followed.
    TIA,
    -Naresh

    Hi,
    Follow the link:
    http://help.sap.com/saphelp_nw70/helpdata/EN/44/0316d50bbe025ce10000000a1553f7/frameset.htm
    This explains the process of adding the custom attributes in user admin.
    Thanks,
    Rajani

  • In OLS, how to determine the list of labels a user is allowed to use?

    subject says it all; we have determined how to determine ALL labels available, but how do we filter it via existing lbac tables to show the labels the current user (either direct or via proxy) can use?
    thanks, alan

    Hi there,
    maybe these views do help:
    http://st-doc.us.oracle.com/10/102/network.102/b14267/admpriv.htm#i1012870
    Thanks, Peter

  • How to publish - Circular / News - all oracle portal users

    Dear friend,
    I am new to Oracle Portal,
    want to design two pages
    one contains about news about our organization or any new updates everyday or week those will be updated here
    another one page contains about circular for all our portal users
    anyone help with details, will be appreciated
    Thanks in advance
    Regs...
    selvan
    [email protected]

    Can you do with wikis? http://docs.oracle.com/cd/E21764_01/webcenter.1111/e10149/content_wikis.htm#WCSUG7207
    If not, take a look also here: http://www.oracle.com/technetwork/middleware/ias/index-089317.html or at discussion in this thread: Re: Metadata through user input from portal application while new check In

  • How to map LDAP user language to portal user language?

    Hi guys,
    I need to get the logon language of our portal users from LDAP. I tried to modify the xml datasourceconfiguration file adding the "language" attribute, without any result. Anyone have some ideas?
    I think this is a strange behaviour because I tried to add or remove other attributes such as "mobile", "telephone", ecc... and the system works without troubles adding or removing these attributes.

    Hi Raffaele,
    Pl refer to following link
    <b>http://help.sap.com/saphelp_nw04/helpdata/en/48/d1d13f7fb44c21e10000000a1550b0/content.htm </b>.
    Hope this might be useful.
    Rgds,
    Vivek
    P.S: Award Points if you find this useful.

  • How to determine which languages available with portal, and how to install

    I have a customer who may have a need for languages that might not be default delivered with the portal.  They are able to install languages in an ABAP environment (unicode).  What I'm trying to understand is:
    1.) What languages are available after a NW70 portal installation?  How can I determine this?  The pull-down list of languages in the UME record for a user is extensive, but they aren't all actually active because I tried some like Korean and the logon to portal was still English.  But then I tried Thai and that seemed to work, as did French, Spanish, etc.
    2.) How can I install needed langauges for the portal?
    I realize that even with the language support, the actual portal content needs to support those.  But that's an entirely different issue.

    Hi,
    In this thread you have informations you need:
    How to add Hindi language in Portal
    Regards,
    Praveen Gudapati

  • How To Change Default Expiration Date for Portal User in Linux and Windows?

    Hello,
    I have a couple of environments I recently installed:
    1. Oracle Application Server 10 Release 2 (10.1.2) SEOne on Windows
    2. Oracle Application Server 10g Release 2 (10.1.2) Enterprise Edition on Linux
    I heard the portal and orcladmin user passwords will expire in about 60 days. I want to prevent this from happening. How can I set the expiration date to never expire for both these users? Or at least give me some warning?
    I heard that you can do this through the Oracle Directory Manager. However, I am unsure as which server to enter on the field. I've used the following:
    <servername>.hostname.com/389
    <DBname>.hostname.com/389
    They say 389 is the default port. Since I did not really
    Does anyone have any ideas?

    You have the answer in yours hands:
    Search for "60 days" in the forum
    How can I enfore Password Expiry Without Lockout?
    for instance.
    For the servername, it's the name of your server and the port is depending of your platform (have a look to $ORACLE_HOME_INFRA/install/portlist.ini) and
    chech the value for: Oracle Internet Directory port
    Patrick.

  • How to catch PERNR number  linked to Portal User

    Hello All,
    Just working on some webdynpro demo and examples. I have a question to you all experts. Just want to know how to capture the pernr attached to a poral user.
    Ex:
    I want to display home and office address in iView. For some portla user1 there is attached pernr1.
    How will I be able to identify the pernr number?
    Thanks,
    Raj

    catch(Exception e)
    //wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("Exception"+e.getMessage());
    //@@end
    The following code section can be used for any Java code that is
    not to be visible to other controllers/views or that contains constructs
    currently not supported directly by Web Dynpro (such as inner classes or
    member variables etc.). </p>
    Note: The content of this section is in no way managed/controlled
    by the Web Dynpro Designtime or the Web Dynpro Runtime.
    //@@begin others
    IRepository repository;
    public int getPernr(String user)
    int ret = 0;
    double pool = Math.random();
    //the repository we gonna be using
    try{
    // Add a connection pool for the specified system
    JCO.addClientPool(
    "test1"+pool, //alias for this pool
    100,
    //max. number of connections
    "", //SAP client
    "", //userid
    "", //password
    "EN", //language
    "", //host name
    "00" //system number
    // Create a new repository
    repository = JCO.createRepository(
    "MYRepository", "test1"+pool);
    catch(JCO.Exception ex) {
    wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess(
    "Exceptionwwwwwwx"+ex.getMessage());
    JCO.Client client =
    null;
    try{
    // Get a function template from the repository
    System.out.println(
    "start");
    //wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("ExceptWWWW");
    JCO.Function function = repository.getFunctionTemplate(
    "CRIF_GET_EMPLOYEE_FOR_USER").getFunction();//it is a function module u need to write that takes user_name as input and gives employeenumber as output
    //wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("ExceptioWWW");
    // Fill in input parameters
    JCO.ParameterList input = function.getImportParameterList();
    input.setValue(user,
    "USER_NAME" );
    //input.setValue(String.valueOf(new Date()), "BEGINDATE" );
    //input.setValue(String.valueOf(new Date()), "ENDDATE" );
    // Get a client from the pool
    //wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("ExceptionQQ");
    client = JCO.getClient(
    "SB1");
    //wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("Exception");
    // Execute function the remote system
    client.execute(function);
    System.out.println(
    "2");
    // Print return message
    ret=function.getExportParameterList().getInt(
    "EMPLOYEENUMBER");
    System.out.println(
    "3");
    System.out.println(
    "RETURN MESSAGE: " + ret);
    catch(Exception ex) {
    System.out.println(
    "Caught an exception333: " + ex);
    finally{
    // Always release client !!!
    JCO.releaseClient(client);
    //try
    return ret;
    //@@end
    content of obsolete user coding area(s) -
    //@@begin obsolete:javadoc:getPerNr()
    // /** Declared method. */
    //@@end
    //@@begin obsolete:getPerNr()
    //@@end
    xxxxxxxxxxxxxxxxxxxxxxxxxx
    Bala
    Edited by: Armin Reichert on Jan 1, 2008 3:57 PM

  • 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

  • How can I grant Application access to a user via API ) programattically

    how do I grant access to a portal user from API
    I want to grant access to a user from an API, ie I need a
    command to grant "SCOTT" access to "EXAMPLE_APP" APPLICATION as
    an end user?

    Hi,
    I am assuming that you have already updated the EUL in the Administrator Edition, correct? If not, open Discoverer Administrator and login to the database you want to connect to. You must use your EUL user name which I assume has already been created and assigned the correct privileges in the database. You will be asked to update your EUL. Follow the prompts.
    Once logged into the EUL, go to Tools \ Privileges and find the user that you want to give administrator access to.
    Hopefully, this answers your question.
    Regards,
    Nancy

  • What is the difference b//w R/3 user and Portal user in ESS/MSS

    Hi All,
    How do we create ESS R/3 Users and  ESS Portal Users. How does these users merged with each other. General process of user creation in both the end's.
    Thanks & Regards,
    kishore.

    You dont need to create ESS users seperately in portal. It can be created in R/3 like any other user ids. By using R/3 User management engine in Portal, you will get all R/3 users there as well. so no need to create seperate users in portal. When you login to portal, you are also logging into R/3 using SSO tickets.
    To make use of HR functionality, user ids have to be mapped to Personnel no. in Infotype 105 subtype 0001.

  • Portal Users name for auditing

    Hi,
    How can i get the name of portal users. Some one told me that there is some Portal_api through which i can get Portal user and then i can write custom code to insert that name for auditing purpose in tha database table. Can any one tell me what that Portal_api is? If any has done this before then can you expalin it with some example.
    Your help in this matter will be highly appreciated.

    muhammad
    I can't tell you the exact name of any particular api but I can tell you where a good place to look.
    If you are familiar with any of the MONITOR functions on the Oracle main page, there is one sub category for "chart by user". The contents for these are located under the navigator -> contents -> monitor -> chart by user.
    I haven't drilled down far enough to find any specific calls, but since documentation seems so lacking for these thints, I have to go find an example to take apart for the pieces I need.
    Hope this helps.
    Mike

  • Retrieving portal user name

    Hi,all
    In NW 2004 I retrieved the user name of portal user by following:
    HttpServletRequest req =((com.sap.tc.webdynpro.services.sal.adapter.core.IWebContextAdapter) WDWebContextAdapter.getWebContextAdapter ()).getHttpServletRequest();   
    wdContext.currentContextElement().setUserName(req.getRemoteUser());
    But in NW 2004S it is not working.I can not to locate IWebContextAdapter.
    How can I retrieve the portal user name here?
    Regards,
    Michael

    Hi,
    Please try following code and let me know.
    import com.sap.tc.webdynpro.services.sal.um.api.IWDClientUser;
    import com.sap.tc.webdynpro.services.sal.um.api.WDClientUser;
    try
         //get the currently logged in user
         IWDClientUser wdUser = WDClientUser.getCurrentUser();
        //get the com.sap.security.api.Iuser; It is null in case wdUser represents an anonymous user
        IUser user = wdUser.getSAPUser();
       //check whether the user is anonymous
       if (user != null)
          //access logon ID by iterating through the IUserAccount array
          IUserAccount[] acct = user.getUserAccounts();
         if(acct[0] != null)
            String strUserid = acct[0].getLogonUid();
            wdContext.currentContextElement().setId(strUserid);
            //pass the value obtained from the portal to value attribute
    catch (Exception e)
       wdComponentAPI.getMessageManager().reportException("Failed to get current user: " + e.getLocalizedMessage(), true);
    Regards,
    Vaibhav

  • Deactivating Portal users

    I was deactivating a user using the portal user maintenance API, 'deactivate_portal_user' passing in the portal user name. I called this procedure on a trigger from Forms, it looked as if it worked in forms but when I tried to log on in Single sign on I was allowed to which is not what I expected to happen.
    Am I correct in assuming that I can deactivate a user in forms using the api. If so can you shed any light I what may have went wrong
    Thank You.

    Mervyn,
    single sign-on uses mod_osso and the SSO server to check if a user has been authenticated or not. All user information is stored in OID. Don't know what happens after you execute your Portal procedure, but it is actually not logging off the single sign-on user. There is a API on teh Single Sign-On Server (I think its a Java API) that allows you to propagate single sign-offs which then leads to all sso accounts getting disconnected from teh session.
    Frank

Maybe you are looking for