User Creation In portal Using NWDS

Hello Experts
Is there any way we can create a job in SAP Netweaver Portal using NWDS for the user creation.
Any pointers will be extremely helpful as I am new to this.
I am using SAP Netweaver 7.3 SP 09.
Thanks
Utsav Mishra

Hi,
You can use the sample code.You can create an  Abstract Portal component in  NWDS and write the required code inside of it.
Users can be created with the UserFactory newUser() method.
IUserMaint represents a modifiable user object. You must issue
        a commit() in order to actually create the user.
An associated account needs to be created for the User with
        newUserAccount() using the UniqueID of the new User.
Take care to delete the user if an error occurs (catch the
        appropriate exception and handle it).
// Create User
String uid = "testuser01";
IUserMaint newUser = UMFactory.getUserFactory().newUser(uid);
newUser.setFirstName("Test");
newUser.setLastName("User");
newUser.setEmail("[email protected]");
newUser.save();
newUser.commit();
try
// Create User Account
IUserAccount uacc = UMFactory.getUserAccountFactory().
newUserAccount(uid,newUser.getUniqueID());
uacc.setPassword("secret");
uacc.save();
uacc.commit();
// NOTE: productive passwords cannot be set if the
// account is created in a SAP System
// continue process by trying to set password flag…
// Now try to modify password change flag for the new user
try
IUserAccount uacc = UMFactory.getUserAccountFactory().
getMutableUserAccount(uacc.getUniqueID());
uacc.setPasswordChangeRequired(false);
uacc.save();
uacc.commit();
catch (UMException ex)
//trace warning: “Password is not productive and has to
// changed during the first logon”.
catch (UMException umex)
UMFactory.getUserFactory().deleteUser(newUser.getUniqueID());
//trace error: “User cannot be created because of an
// error which occurred during the creation of the
// corresponding account object”
You can refer to the below URL for abstract portal component
Creating an AbstractPortalComponent (SAP Library - Running an Enterprise Portal)
Please reply in case you have any queries.
Regards
Veera

Similar Messages

  • User creation in portal

    HI,
    Can we change the registration flow in the portal, so that a mail is sent to the email address and only when the user clicks on the link in the mail, the user account becomes active. Until the user clicks on the link and activates his account the user account should not be active.
    Can we implement this in SAP EP?

    Hi,
    You could do it via the UME API, but you would have to code it yourself.
    You could create the user via the admin functionality (but with the standard email generation disabled for user creation) , and manually lock it, or create the user via a custom WebDynpro or JSP front end that users the UME API to create and lock the user.
    Then use a mail API to generate the email with a URL to a servlet running on the Portal server, which extracts an id of the user from the URL (either the username in unencoded form which is a bit dodgy, or using some unique number that you store against the user to be activated to associate the two) and again use the UME API to unlock the user.
    Should be fairly straightforward providing you are confident with:
    1 - Deploying a web application to J2EE engine containing a servlet.
    2 - Can figure out how to use the UME API
    3 - Can use a mail API like Javamail, which is straightforward
    Cheers,
    Steve

  • Creating Multiple Users in AS Portal using PL/SQL

    Hi Guys,
    I am very new to Portal and I was wondering if there was a way to add multiple users to Portal using a PL/SQL API?
    I have found an API called wwsec_api which has a function add_portal_users but this doesnt seem to work when I try to add a user.
    Any help is much appreciated
    Thanks
    -Mark

    The users are created in OiD, not in Oracle Portal. Oracle Portal just uses OiD similar to other products.
    The following note on http://support.oracle.com provides information about creation of users in OiD both through PL/SQL and Java :
    Note 277771.1 - How to create a new user in OID using the programmatic interfaces
    For Portal, is is important that the users are created below the user search base configured in your Portal application. This is normally something like cn=Users,dc=<your domain>, e.g. cn=Users,dc=acme,dc=org.
    Hope this helps,
    EJ

  • User creation in Portal Connected to LDAP

    Hi Gurus,
       i want to know if we have LDAP connected to a Portal and someone creates a user on Portal UME , will the user get created in LDAP or portal UME.
       The situation is where any registerd user  accessing the portal should be authenticated against LDAP and he can also do a self registration from portal.So if he self registers, does his user id/Password gets created in LDAP or it stays in Portal UME.If it gets stored all the way to LDAP then we are fine, if not , then is there a way to replicate this user id password to LDAP.
    Thanks in Advance!

    >
    Gaurav Garg wrote:
    > Hi Gurus,
    >    i want to know if we have LDAP connected to a Portal and someone creates a user on Portal UME , will the user get created in LDAP or portal UME.
    User will be created in UME only not in LDAP.
    >    The situation is where any registerd user  accessing the portal should be authenticated against LDAP and he can also do a self registration from portal.So if he self registers, does his user id/Password gets created in LDAP or it stays in Portal UME.
    No the user is created in UME database and not in LDAP. If you are setting up your user persistence in LDAP (authenticating users from LDAP) then you have to setup users in LDAP. UME has a read only access to things that it pulls from LDAP.
    Regards,
    Zaheer

  • Error in user creation in portal

    While Creating a user named as  SLDADMIN in portal i am getting error the log file contains
    #1.5#0016E69E70D20069000006A80000143400044E33DA212183#1211884516747#com.sap.security.core.wd.maintainuser.MaintainUserComp#sap.com/tcwddispwda#com.sap.security.core.wd.maintainuser.MaintainUserComp.public void saveModifications( )#J2EE_ADMIN#76936#SAP J2EE Engine JTA Transaction : 0ffffffcb6812052b5#sapserver2.delhi_BS1_13330450#J2EE_ADMIN#da4e23e12bd711ddc1ac0016e69e70d2#SAPEngine_Application_Threadimpl:3_6##0#0#Error##Java###Error in the persistence
    EXCEPTION
    #1#com.sap.security.core.wd.exception.UmeUiPersistenceException: The UME/ABAP user management connector is set to read-only mode and therefore rejects the creation request for user SLDADMIN
    Please help

    Hi,
    You should control in ABAP via SU01 the user SAPJSF (JSF Service User).
    This user should can have 2 roles :
    For read-only access from the AS Java to the ABAP system, choose the role SAP_BC_JSF_COMMUNICATION_RO.
    For read-write access from the AS Java to the ABAP system, choose the role SAP_BC_JSF_COMMUNCIATION.
    You can have more information [here|http://help.sap.com/saphelp_nw04s/helpdata/en/9e/fdcf3d4f902d10e10000000a114084/content.htm]
    Best regards,
    Mathieu
    PS : reward points if helpful

  • Formalised user creations in Portal

    How do I create users (already existing database users) in Portal 3.0 based on existing users?
    For instance if we want 600 users to use a site (an Intranet) in personalised way (so we cant use a universal user everybody can use), but dont what do create 600 (taking a whole week or so to create manually) users by hand then how do we do it assuming they already exist as database users?

    Hi Malik ,
    For your scenrio there is no ready made iview but these things can be achieved easily .We can get these values from the api and EP database tables .On a low level you can refer to
    http://help.sap.com/saphelp_nw04s/helpdata/en/fb/144120ea5b4e9c9385d493a578d6c9/frameset.htm
    Portal SP9: Portal Activity Report
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/getting%2blogged%2bin%2bportal%2buser%2bdetails%2bin%2bweb%2bdynpro
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/list%2bof%2blogged%2bon%2busers%2bin%2bthe%2bportal
    http://help.sap.com/saphelp_nw04/helpdata/en/20/b7ced1025f3245b43d23184fc0212f/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a770132b-0901-0010-5a88-b228ccc7b7b6
    UME API:-Tihis api will give details about the user and no of login and failed attempts and all.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3641e490-0201-0010-c68f-e51221925714
    Thanx
    Pankaj

  • New user creation in FND_USER using link on fly

    Hi,
    How can we stop OID Provisioning template to stop creating CUSTOMER_ID and PERSON_PARTY_ID for new users in FND_USER.
    Is there a function stored some where which we can change for the ProvOIDToApps.tmp? Please let me know.

    I should rather ask..if there is a way to customize provisioning template?

  • User creation in sap portal

    Hi All,
    I have a requirement where in a supplier registers online and after approval(application is developed in ABAP web dynpro) is created as supplier in SAP.
    At the same time the supplier should be created as a portal user with supplier email ID as his/her user ID in portal.
    Though I can achived this by creating an application in java web dynpro usig UME api, but since application for approval is created in ABAP web dynpro there fore these UME API cannot be called.
    If I create a portal service using UME API reference, it returns a message saying import reference cannot be used.
    Is there any other way for getting users created in portal using UME api via ABAP web dynpro.
    Regards
    Shakti

    Hi,
    Can you pls clarify on below point? Is it like you are not able to add references to your Portal Service for using UME API Classes?
    "If I create a portal service using UME API reference, it returns a message saying import reference cannot be used."
    However pls verify below options on your requirement. These might be helpful.
    Option#A)
    We can still be able to use write a Simple Portal Service that accepts required inputs and creates users in the UME using UME API. And then finally expose this Portal Service as Web Service for your ABAP Webdynpro to consume it.
    Below are help links based on Portal version:
    1) NW 2004
    [http://help.sap.com/saphelp_nw04/helpdata/en/43/cb213e578c0262e10000000a11466f/content.htm]
    2) NW 7.0
    [http://help.sap.com/saphelp_nw2004s/helpdata/en/df/e6b74253ffda11e10000000a155106/frameset.htm]
    [http://help.sap.com/saphelp_nw70ehp1/helpdata/en/09/c9af42a6f6cb6ae10000000a155106/frameset.htm]
    3) NW 7.2
    [http://help.sap.com/saphelp_nw72/helpdata/en/49/d6a9032190736fe10000000a42189b/frameset.htm]
    3) NW 7.3
    [http://help.sap.com/saphelp_nw73/helpdata/en/49/d6a9032190736fe10000000a42189b/frameset.htm]
    Option#B)
    If not Portal Service we can also write EJB methods using UME APIs and expose it as Web Service from the SAP J2EE Engine.
    Thanks,
    Swapna Priya.

  • Can we use AD authentication for SPoint users to access Portal behind OID?

    Hi,
    We have Oracle Portal with OID-AD sychronization set up, and are currently implementing SharePoint in our organization.
    We would like to provide links to a few pages on our Portal to some of the SharePoint users.
    The SharePoint users are authenticated by the Active Directory SSO and the Portal users are authenticated by our OID SSO setup.
    What we want to do is to let some SharePoint users access our Portal using their AD login. The SharePoint users should not have to login again to get to our Portal pages.
    Is there a way to let the AD authentication to pass through the OID setup so that SharePoint users can directly access our Portal?
    We don't have any external authentication plug-ins set up for our Portal.
    Currently we are on Portal version 9.0.4.1 but may be upgrading to version 10.1.4.2 in the near future.
    Any help would be greatly appreciated.
    Thanks.
    CV

    Hi,
    Thanks for the quick reply.
    But I have a different scenario.
    I want to establish it in such a way that certain users are stored in the LDAP and certain users are stored in the Portal Database.

  • Retrieve field value  from webdynproABAP iview into portal using studio

    Hi.
    I have to solve this problem.
    I have assigned webdynpro ABAP iview (iview created by webdynproABAP team people) into one roles.then  i assigned  that role to one user....
    now i want to pass  values  from  webdynproABAP iview  to portal using NWDS.
    how do to acheive thisone?
    i created normal JSP,JAVA class in NWDS...I dont know how to pass values in NWDS..
    but  i want to retrieve  fieldvalue  into  portal.....
    plz help to solve this problem....

    Hi Vinothini21,
    If you are using Webdynpro ABAP iview and want to modify it then you need to do in TCODE se80 in SAP system. I think not in NWDS. Please check it.
    Best Regards
    Arun Jaiswal

  • Can we develop EP(enterprise portals) using sap work bench?

    hi,
    i know that we can develop portals using NWDS. But i want to know  can we develop EP using sap work bench or any other transaction.

    Hi Arafat,
    I was trying to post few links from SAP Technical website. But, it is not allowing me post that links on here. You can have a look on their website as well. They have got some really good  tutorials on EP and Webdynpro ABAP/JAVA.
    Meanwhile, if you have access to SE80 only, then you can only develop Webdynpro ABAP Applications. The step by step procedure to create a WD ABAP Application go through the below links for detailed explanations and step by step procedures.
    Check this blog for Basics :
    Practical tips for developing with ABAP WebDynpro
    Web Dynpro ABAP Demonstration Videos
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/webcontent/uuid/fed073e5-0901-0010-4eb4-c9882aac7b11
    Developing ABAP Applications Using Web Dynpro
    http://help.sap.com/saphelp_nw2004s/helpdata/en/42/d41b25d2216babe10000000a1553f6/frameset.htm
    Web Dynpro ABAP: Development in Detail
    http://help.sap.com/saphelp_nw2004s/helpdata/en/03/0048413e466e24e10000000a155106/frameset.htm
    WDA Sample programs
    https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d
    I hope this links will help you and clear all your issues.
    Regards,
    Gopal.

  • OFA User creation

    Can one of you suggest whether or not Oracle has a stored procedure of any type with which we could use to add users in Oracle Finanical Analyzer. Is it possible to automate the user creation process by using some procedure ?

    Hello,
    I am sure that is is possible through custom express programs, entering the necessary data in the appropriate catalogs.
    (however a lot of stuff to be updated there: user dimension, user.catalog, fmsstask database, personal database creation and catalogs in it etc...)
    Regards

  • Can I use SAP HR to drive ESS Portal user creation?

    Hello
    We are implementing a new instance of SAP HR and Portal for ESS and MSS and I am not sure of all the steps that need to be completed so any guidance / tips would be greatly appreciated.
    Company currently has an LDAP - but not used extensively. Not all employees currently in LDAP as not all have network ids. All employees will have a SAP account to enable ESS (via Kiosks etc).  ESS iViews in Portal will call SAP HR and possibly SAP BW.  We have an instance of SAP already and user admin maintained via CUA - this will continue.
    Scenario:
    My initial thoughts are that we try to use SAP HR as the leading system to drive the ESS Portal users and access.  Basically I want to create the user in SAP and assign them an ESS SAP role... then through syncronization have the user created in the Portal and have the correct ESS Portal assigned (in the Portal)
    My thinking so far is to go the following way;
    1) Create User Master Record in SAP (SU01)
    2) Hire employee into the org structure (via HR processes)
    3) Populate Infotype 0105 with SAP username
    4) Populate Infortype 1016 - with SAP role to be assigned to allow ESS access (not sure about this aspect) or role could be assigned in 1) above
    I am not sure of the next steps - I think there must be a way in an SAP table to map the ESS SAP role to the ESS Portal Role (is this via WP3R?)
    then I am hoping that a standard job can be run (is this RSLDAPSYNC_USER) that will create the user in the Portal (UME?) and assign the correct Portal role ?
    (obviously configuration needed)
    For MSS and HR Power users - we would continue to assign SAP roles via SU01.
    Can anyone assist with;
    - Is my thinking correct in terms of how this should / could work?
    - in SAP how can I map SAP Roles to Portal Roles ?
    - will syncronization in SAP create the user in Portal and assign the role ? what do I need to configure?
    Thanks in advance

    Dear Michale,
    I just dont know if this can throw some light on your prob.'
    In our Orgn we had around 250 ess users and 200 sapr/3 users. Some of the r/3 users also logon to ess via their r/3 uname and password.
    What we have done is like follows:
    1. Created a role for only the ess users ZHRESS. For this i asked the HR functional people with sap_all profile to do all the job which the ESS users are supposed to do and tracer the authorization via tcode st01. We created the role on the basis of this trace report.
    2. For the purely ESS users we created the users via tcode HRUSER and assigned then with the above role.
    3. For the R/3 users who are supposed to avail the ess facility we assigned them with the role ZHRESS role in addition to the other roles assigned to them to carry out their normal R/3 transactions. Then we mapped their R/3 uname to their employee no via PA30 infotype 105.
    4. Tcode HRUSER saved time  which would have consumed had we done it via su01 and moreover it picked Name etc data from the HR master table. In HRUSER tcode , setting the user attributes helps to define what roles the users are to be assigned, what should be their initial password etc.
    Pl let me know if it satisfies you querry.
    Regards

  • Tray as appearing in the Portal User Creation screen

    Hi all,
    I am on WAS 6.40 SP15, NWDS 2.0.15 and EP 6.0 SP15.
    When I place 'tray' ui element in my application, I see one vertical line on the left side and horizontal line. I have to remove these lines.
    Can anyone suggest how to modify the 'tray' ui element so that I get a tray as appearing in the Portal User Creation screen.
    Regards
    Srinivasan T

    Hi,
    Then you will have to modify the standard UWL configuration file.
    If your task looks like a standard task (maybe you copied a standard task and modified it slightly), you have to find the ItemType corresponding to the standard task in the UWL configuration file then copy this ItemType and adjust it for you custom task. Please take a look at my last post in another thread : Re: UWL - how to approve purchase requisitions
    If your task is 100% custom then you'll have to find out what is behind the Approve and Reject buttons in the Business Workflow and modify the UWL configuration file accordingly. For instance if a function module is used to approve or reject the request you can define your approve and reject actions using the FunctionModuleActionHandler. You can find more information in the documentation : [Task Launch Customization|http://help.sap.com/saphelp_nw70/helpdata/en/36/dd4ad73c86412e81e9ce66eeb147e7/frameset.htm].
    Regards,
    Pierre

  • Portal User Creation Problem

    While Creating user in Portal i am getting following error Please help
    Current user has user creation permissions in the UME, but cannot create users in the back-end system (data source). The original and possibly untranslated message was: "No active writeable datasource found for user creation, check your Persistence Configuration.".
    Thanks
    Bhupinder

    Hi,
    If it is ABAP+JAVA stack, we have to create user only in ABAP stack only. We cannot create user in portal. Once we create user in ABAP stack , we can login to portal using that user.
    If there is permission probelm, please assign the permission to the respective user that is " manage_all" action.
    Please let me know if you have any clarifications.
    Regards,
    Bala.

Maybe you are looking for