Create Portal Users (In English)

Hi...
I'm creating users manually in Portal via PL/SQL with this functions:
wwsso_api_user_admin.create_user(uid,pwd,uid || '@xxxxxxx.com',sysdate,null,false,foo);
dbms_output.put_line('user created');
portal30.wwctx_api.set_context(p_user_name => 'PORTAL30',p_password => 'xxxxxxx');
DBMS_OUTPUT.put_line('context set ');
foo := portal30.wwsec_api.add_portal_user(p_user_name => uid,p_db_user => null,p_portal_user => 'Y');
dbms_output.put_line('portal user added ');
l_gid := portal30.wwsec_api.group_id(l_GROUP);
portal30.wwsec_api.add_user_to_list(p_person_id =>foo, p_to_group_id =>l_gid, p_is_owner => portal30.wwsec_api.NOT_OWNER);
portal30.wwsec_api.set_defaultgroup ( p_groupid => l_gid ,p_username => uid );
dbms_output.put_line('portal default group ');
This process creates the user correctly, but after the process, I can't access any application, even do a logout… because I’m getting this error:
[Thu Mar 29 11:34:02 2007] [warn] mod_plsql: Stale Connection due to Oracle error 6510
[Thu Mar 29 11:34:02 2007] [error] mod_plsql: /pls/portal30/STARTER.LOS_HOME_ASEG.show ORA-6510
ORA-06510: PL/SQL: unhandled user-defined exception
ORA-06512: at "PORTAL30.WWCTX_SSO", line 852
ORA-06510: PL/SQL: unhandled user-defined exception
ORA-06512: at "PORTAL30.WWCTX_SSO", line 935
ORA-06512: at "PORTAL30.WWCTX_API", line 170
ORA-06512: at "PORTAL30.WWSEC_API", line 3665
ORA-06512: at "PORTAL30.WWV_USER_SECURITY", line 32
ORA-06512: at "STARTER.LOS_HOME_ASEG", line 303
ORA-06512: at line 8
The only way to use any application with this new user is closing all the browsers windows
What can i do?

Yes you can. you will need to create the
login server and portal users and activate them as part of a looping block of code.
Check out the security and login server forum for how to create users using the APIs
hth

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

  • Create portal user using web dynpro abap application

    Dear All,
    I would like to know is it possible to create portal user-id through web dynpro abap application.
    My requirement is
    > I have to create a web dynpro abap application. In the web dynpro abap application I have name email-id and phone number as entry fields.
    > I will click on submit, one unique id will get created. This unique id will be the login id for portal.
    I found how to create portal user using web dynpro java, but i could not find regarding web dynpro abap.
    If it is possible to create the portal users using web dynpro abap pls share the code as well.
    Regards,
    Swapnil Indulkar

    Hi swapnil,
    I think by using BAPi.. BAPI_USER_CREATE1 you can create.
    Please check this...
    Create portal user from webdynpro abap
    Creating user and assigning a group through code
    user administration su01
    How can i get the portal user id from logon ticket in the webdyn 4 ABAP
    Cheers,
    Kris.
    Edited by: kissnas on May 21, 2011 8:47 AM

  • Creating Portal users

    Hiii,
    Iam creating portal users in the web dynpro.I had taken Grid layout.I written code like this.
    public void onActionCreateUser(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionCreateUser(ServerEvent)
         String user = wdContext.currentContextElement().getUser();
         String lastName = wdContext.currentContextElement().getLastName();
         String firstName = wdContext.currentContextElement().getFirstName();
         String email = wdContext.currentContextElement().getEmail();
         IUserFactory userFact = UMFactory.getUserFactory();
         try {
         IUserMaint userMaint = userFact.newUser(user);
         userMaint.setLastName(lastName);
         userMaint.setFirstName(firstName);
         userMaint.setEmail(email);
         userMaint.commit();
         wdComponentAPI.getMessageManager().reportSuccess("User Created "+user);
         } catch (UMException e) {
         wdComponentAPI.getMessageManager().reportException(e.getMessage(),false);
         e.printStackTrace();
        //@@end
    In the output iam getting
      : Vijay
    : Vijay
    :Tivari
      : email address giving
    Label is not displaying in the output (.that is the left part).But iam able to create the users.
    Name
    First Name
    Last Name
    Email
    These things have to be shown in the output.
    Please provide the solution for this.

    Hi
    Iam creating portal users in the web dynpro. Iam getting error in the code
    _Error     :     The method setPassword(String) is undefined for the type IUserMaint*_     *
    Will anyone help me to sort this issue.
    Please reply the necessary code.
    public void onActionCreateUser(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionCreateUser(ServerEvent)
         String user = wdContext.currentUserDataElement().getUser();
         String password = wdContext.currentUserDataElement().getPassword();
              String lastName = wdContext.currentUserDataElement().getLastName();
              String firstName = wdContext.currentUserDataElement().getFirstName();
              String email = wdContext.currentUserDataElement().getEmail();
              IUserFactory userFact = UMFactory.getUserFactory();
              try
              IUserMaint userMaint = userFact.newUser(user);
              {code}userMaint.setPassword(password);
              userMaint.setLastName(lastName);
              userMaint.setFirstName(firstName);
              userMaint.setEmail(email);
              userMaint.commit();
              wdComponentAPI.getMessageManager().reportSuccess("User Created "+user);
               catch (UMException e)
              wdComponentAPI.getMessageManager().reportException(e.getMessage(),false);
              e.printStackTrace();
        //@@end
    Regards
    Sushma

  • Creating portal users with owner privileges?

    Hello,
    I need to let local adminstrators create users in the portal.
    This is based on instance-specific privileges, not global.
    Setting them to 'owners' of the group in the portal should let them add users.
    Once created and I log in as one of them I do not have the privileges of being an
    'owner', eventhough it's visible in the portal that I am an owner.
    Anybody?
    /

    Hi,
    To make the problem a little clearer.
    I want to have "local adminstrators" that can manage portal users i.e; delete, insert and update portal users.
    However I do not want these "local administrators" to be "Full administrators"- too dangerous.
    The "local adminstrators" should belong to the same group as the users they are set to administer. The
    only difference between a "local administrator" and a user of a group is that the "local administrator" have privileges
    to manage the other users of the group. If I have understood the concept right an owner have these privileges.
    I made them owners of the group, but this did not enable them to manage users.
    This must be a rather common approach, to have some users being able to administer other users without being a fullfledge DBA.
    Right now I'm looking into mapping them(the local administrators) to a different database schema with rights to manage users.
    I realize that to map them to another schema, then the checkbox "Use this schema for Portal Users" have to be checked when creating the
    schema. How do I check if this was checked and if it wasn't checked can I alter it now?
    Another thought is to dynamically upon meeting certain conditions making them Full Administrators, then after finishing the task
    reinstating them as normal users.. but this.. well hmm
    Thanks.
    /

  • Creating portal users from SU01 users

    Hi,
    We are on SRM 7.0 and have a requirement that whenever an SU01 user is created, a portal user should also be created immediately corresponding to this SU01 user.
    Since we are also using SUS, whenever an admin supplier creates a contact person for his company, an SU01 user is created at the backend. We want this contact person to be created automatically in the portal. Currently its an offline activity where the admin supplier calls up the helpdesk to enable his contact person in the portal.
    Pl shed some light on this.
    Thanks & regards,
    Nikhil

    Thanks for the update.
    We don't have an LDAP and hence option 1 is ruled out for us.
    If i have the Portal UME as a data source, then how to replicate the users that are created in SRM?. The Users are created an SRM for EBP-access as end users, approvers, purchasers, bidders etc... and how to replicate these users to the Portal?. The SUS users are accessing both SUS functionality and bidder functions and hence they need to be in Portal Or they have to go to 2 different links with different password and hence we need to replicate the SUS users to the Portal too.
    We are not considering CUA as of now and hence as of now this is ruled out too.
    Any pointers/suggestions are highly appreciated.
    Thanks
    velu

  • Form to create portal users

    In 9.02 I would like to make a form that creates the portal users, assigns user profile info and assigns them to a specific group. Does anybody have the plsql needed to do this?

    Hi,
    You can use the form on tables to build a form on the user table and have a trigger on this table which inserts and updates the other tables or have a form on a procedure which will insert into the user table and the other dependant tables. In the case of form on procedure you will have to build a procedure with parameters same as the input fields.

  • Create Portal Users?

    What Built-ins must I call to create a Portal user?

    Tom,
    This post is best suited to the Oracle9iAS SSO and Portal Security forum.
    Thanks

  • Create Portal user within Oracle IAS9.0.4 (10g) using APIs

    With the Portal version 3.0 we created our users using the functions:
    1. wwsec_api.add_portal_user(...)
    2. wwsec_api.activate_portal_user(<user>)
    3. WWSSO_API_USER_ADMIN.CREATE_USER(...)
    Now with the Portal version 9.0.4 (10g) we can't create the users.
    Any sugestions?

    declare
    l_group varchar2(240);
    l_member varchar2(240);
    l_guid varchar2(32);
    l_id number;
    l_user_name varchar2(64) := 'user';
    l_pass varchar2(64):= 'user';
    l_email varchar2(64) := '[email protected]';
    begin
    --user to ldap
    l_guid := wwsec_oid.create_user_entry
    p_base => wwsec_oid.get_user_search_base,
    P_USER_NAME => l_user_name,
    p_password => l_pass,
    p_email => l_email
    commit;
    --include to default group
    l_group := 'cn=AUTHENTICATED_USERS,'||wwsec_oid.get_group_search_base;
    l_member := 'cn='||l_user_name||','||wwsec_oid.get_user_search_base;
    wwsec_oid.grant_group_membership
    (p_group_dn => l_group, p_member_dn => l_member);
    commit;
    --in portal default group
    wwsec_api.add_user_to_list(
    p_person_id => wwsec_api.id(l_user_name),
    p_to_group_id => wwsec_api.group_id('AUTHENTICATED_USERS'),
    p_is_owner => wwsec_api.not_owner
    commit;
    --add to portal
    l_id := portal.wwsec_api.add_portal_user(p_User_Name=>l_user_name,
    p_Portal_User=>'Y',
    p_Email => l_email);
    commit;
    end;
    lower('LUCK')

  • Create Portal user programmatically

    Hi,
    I've been told there was an API in the 3.0.8 portal release to allow the creation of portal users in the Login Server programmatically.
    I think this API is called : portal30_sso.wwsso_ls_private.
    Does anyone know where I can find this API description ?
    Thanks.
    null

    This informaiton is contained in the PDK - PL/SQL:Reference Material accessible at http://portalstudio.oracle.com
    Direct links: http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/plsql/doc/sdk6pkg.htm http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/plsql/doc/sdk6apo.htm

  • Diable Password Generation while creating Portal users..

    Is there a way you can disable the passworg generation fields while an Admin creates a user.
    Well, I would like to disable all the 3 optionsfor the Admin (Define Pwd/Generate Pwd/Disable Pwd)
    The users are going to be authenticated by Site Minder Agent.
    Thanks

    Hi Ritu,
    >>please guide me as to how can I set mandatory fields in my code??
    In ur jsp file or in the controls code add the following attribute
    <hbj:label id="userIdLabel"
               text="User ID"
               labelFor="userIdInput"
               design="HEADER3"
               required="true"/>
    and to check the mandatory entry for that field do this in the submit button
    <hbj:button id="insert"
                text="Submit"
                design="emphasized"
                onClick="save"
                onClientClick="if(!isMandatory()) htmlbevent.cancelSubmit=true;;"/>
    and in the javascript write the client validation code.
    Hope this helps.
    Regards,
    Joshua Kiran

  • Portal users

    Dear Gurus
    To map the employees from R/3 to Portal Users, we have to create a user id for every employee in the portal, at the same time is it necessary to create the user in the R/3
    Eg. We have 3000 employees, and their data is maintained in R/3, now we have to create the Users for these employees in Portal, at the same time is it necessary to create the Users for all the 3000 employees  in R/3? 
    Regards
    kumar

    Yes in case ur UME is database data source then u need to create the portal users as well the r/3 users.
    in case ur UME is ABAP data source then in portal automatically the r/3 users will be appeared and there is no need to create portal users seperately.
    Always ESS Users need to have userid in the Backend system also (i.,e SAP R/3)
    Edited by: Vijay Mohan on Mar 30, 2010 12:23 PM
    Edited by: Vijay Mohan on Mar 30, 2010 12:24 PM

  • How to set DEFAULT GROUP for a user when I create a user manually thru pl/s

    Hi Gurus,
    I am creating portal user accounts and groups thru pl/sql calls to
    portal.wwsec_oid.create_user_entry
    portal.wwsec_api.ADD_USER_TO_LIST
    I didn't find any parameters to set the DEFAULT GROUP for the users. I want to set the default group for all my users. I don't want to do it thru portal. Cuz, We have around 1600 users. Please post a reply if you have some info about how I can set this thru code.
    Thanks
    Raj

    You can achieve that using 'wwsec_api.set_defaultgroup'....

  • 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 create external users in SAP EP as authenticated users

    I am able to create portal users  . I would like to know how to acccess automatically login as external users (stored in Cutomized table in CRM).

    Rakesh,
    acccess automatically login as external users (stored in Cutomized table in CRM).
    Firstly, your question is a little unclear.
    Where is your UME pointing to?
    Go to http://<FQDN>:<Port>/irj/useradmin/index.jsp, click on configuration and check the datasource.
    1. If it is for external users you could use anonymous logon
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/cd/1aad4abcb98c4597f9e395a6b62f43/frameset.htm
    2. If you want to use the users exisiting in the CRM system to logon to the portal, then you might have to point your UME to it.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/7e/a2d475e5384335a2b1b2d80e1a3a20/content.htm
    3. If you intend to use the users exisitng in a custom table in the CRM system, then I guess you would have to customize the UME Data Source .
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/b7/14d43f2dd44821e10000000a1550b0/content.htm
    Hope this helps.
    Cheers!
    Sandeep Tudumu

Maybe you are looking for

  • Question about CHKDSK ,S.M.A.R.T and low level format

    hi, I like to know the difference     exactly  between CHKDSK and S.M.A.R.T and low level format program(I know that  low level format  writes zero"s) I mean besides the low level format writes  zero's what onother benefits it  has , it repairs some

  • Process purchase order not displaying PO.

    Hi, We have assigned role "SAP_EC_BBP_OP_PURCHASERu201D  to the user so that she can process purchase orders.But when she is seraching for PO using process purchase order she is getting teh message "no documents corresponding to the serach criteria".

  • Php - get name from 'file field' and pass to database?

    Is it possible to extract the 'image' name from the 'file' field and insert it into a database using php? <input type="file" name="ImageName" id="ImageName"> I can't have: $ImageName = trim($_FILE['ImageName']); So hows this handled? Cheers Os

  • Epub creator

    I am looking for an epub book creator for professional books. I like iBooks Author but i want to make clear chapter breaks, be able to change the font types and sizes. Please tell about your best epub creator experience.

  • Plz help! how to create a LinkedList inside each element of ArrayList

    how do i create a LinkedList inside each element of ArrayList