Automating User Creation

Hi - I've been working on the following script to automate creation of users. I want to run it as a scheduled task so the service desk guys don't have to spend the time. The way it sits currently it will create the user just fine. It fails when trying to
set the LineUri. The error is:
PS C:\Temp> C:\Users\wilson\Desktop\CreateUsers.PS1
Set-CsUser : Management object not found for identity "Joffery McIntyre".
At C:\Users\wilson\Desktop\CreateUsers.PS1:14 char:9
+         Set-CsUser -Identity "Joffery McIntyre" -LineUri $phoneNumber
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Set-CsUser], ManagementException
    + FullyQualifiedErrorId : Microsoft.Rtc.Management.AD.ManagementException,Microsoft.Rtc.Management.AD.Cmdlets.SetOcsUserCmdlet
Set-CsClientPin : Cannot find user in Active Directory with the following SIP URI: "CN=McIntyre\, Joffery,OU=Administrative_Users,OU=All
Users,DC=fws,DC=weststeel,DC=com"
At C:\Users\wilson\Desktop\CreateUsers.PS1:15 char:9
+         Set-CsClientPin -Identity $ID -Pin $phonePIN
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (CN=McIntyre\, J...eststeel,DC=com:UserIdParameter) [Set-CsClientPin], ArgumentException
    + FullyQualifiedErrorId : Cannot find user in Active Directory with the following SIP URI: "CN=McIntyre\, Joffery,OU=Administrative_Users,OU=All Users,DC=fws,DC=weststeel,DC=com",Microsoft.Rtc.Management.UserPinService.SetOcsUserPinCmdlet
import-module 'C:\Program Files\Common Files\Microsoft Lync Server 2013\Modules\Lync\Lync.psd1'
$UserInfo = Get-CsAdUser -filter {enabled -ne $true} -OU "ou=all users,dc=fws,dc=weststeel,dc=com"
foreach ($User in $UserInfo)
        $ID = $User.Identity
        $phoneNumber = $User.Phone
        $phoneNumber = $phoneNumber -replace "[^0-9]"
        $phoneNumber = $phoneNumber -match "^4"
        $phonePIN = "0" + $phoneNumber
        $phoneNumber = "tel:+" + $phoneNumber + ";ext=" + $phoneNumber
        Enable-Csuser -Identity $ID -RegistrarPool "FWC-Hen-Lync.fws.weststeel.com" -SipAddressType EmailAddress -SipDomain farweststeel.com
        Set-CsUser -Identity $ID -LineUri $phoneNumber
        Set-CsClientPin -Identity $ID -Pin $phonePIN

Okay - I found that the problem was that the LineURI and PIN were both being set too quickly after account creation. Adding a sleep in there makes it run perfectly. It ran fine with 15 seconds, but I increased to 30 in case there is heavy load. The second
part of the script removes users that have left the company.
import-module 'C:\Program Files\Common Files\Microsoft Lync Server 2013\Modules\Lync\Lync.psd1'
$UserInfo = Get-CsAdUser -filter {enabled -ne $true} -OU "ou=all users,dc=fws,dc=weststeel,dc=com"
foreach ($User in $UserInfo)
        if ($user.WindowsEmailAddress -like '*@weststeel.com')
        Enable-Csuser -Identity $User.Displayname -RegistrarPool "FWC-Hen-Lync.fws.weststeel.com" -SipAddressType EmailAddress -SipDomain weststeel.com
        Clear-Variable -name extension
        Clear-Variable -name phoneNumber
        Clear-Variable -name UDN
        Clear-Variable -name phonePIN
        $UDN = $User.Displayname
        $phoneNumber = $User.Phone
            if ($phoneNumber.length -gt 4)
                    $phoneNumber = $phoneNumber -replace "[^0-9]"
                    $extension = $phoneNumber.Substring(6,4)
                    $phonePIN = "0" + $extension
                    $phoneNumber = "tel:+" + $extension + ";ext=" + $extension
                    Start-Sleep -s 30
                    Set-CsUser -Identity $UDN -LineUri $phoneNumber
                    Start-Sleep -s 30
                    Set-CsClientPin -Identity $UDN -Pin $phonePIN
                    Write-Output $UDN
$RemoveUserInfo = Get-CsAdUser -filter {enabled -eq $true} -OU "ou=departed,ou=users,ou=archive,dc=fws,dc=weststeel,dc=com"
foreach ($RemoveUser in $RemoveUserInfo)
        Disable-CsUser -Identity $RemoveUser.DisplayName

Similar Messages

  • Automating user creation for Unity Connection when sync'd with LDAP

    Hi
    Is it possible to automatically create users that sync with unity connection?
    I have a unity connection 7.0 server that is sync'd with LDAP and i use a ldap filter so that only users with a specific attribute are sync'd. I can see the users when i try to do an import but is there anyway that they can automatically be created

    No
    Check this check box so that Cisco Unity Connection gets basic information on Connection users from the LDAP directories that you specify on the LDAP Directory page. Data is synchronized only for the Connection users that you created by importing users from the LDAP directory. Connection does not automatically create new Connection users when new users are added to the LDAP directory.
    http://www.cisco.com/en/US/docs/voice_ip_comm/connection/7x/gui_reference/guide/7xcucgrg100.html#wp1069724
    HTH
    java
    if this helps, please rate
    www.cisco.com/go/pdihelpdesk

  • GRC CUP - How to change SNC Name to lower case during user creation.

    Hi All,
    We are using GRC 5.3. CUP automatically creates user in R3 but SNC p:username'@'DOMAIN.COM is in upper case.
    1. During automated user creation.
    2. How change default DOMAIN.COM to lower case "domain.com"
    Currently we have to manually change is via SU01 after user has been created.
    Thank you
    Regards,
    Jacky

    Sorry please ignore this thread. I got the wrong details. Post cancelled

  • How to automate User creation using SCAT ?

    Hi,
    Can any body help me out in generating a script for automating User creation by SCAT ?
    I recorded the steps,but failed to upload the values from the excel sheet to SAP.How to enter the values in the excel sheet - Is it row-wise or columnwise ?
    Thanks,
    s<i><b>A</b></i>mik.

    Hi,
    SCAT includes the following main steps
    1)Recording the Steps
    (Go through the screens you want to make entries to be careful not to forget to fill in Lastname and password as they are the mandatory fields and rest are optional depends on whether u want them to be involved in the script or not. Once done save the script
    2) Now declare the values u entered in the script to variables for this go to test case created in change mode and double click TCD  then select the "Field List" in the upper left corner of the screen. Now here you can see the values u entered replace any which you feel need to entered with a & . Fields which you donot declare as variables get the values u entered as default values .
    after filling fields you wanted backout from screens and save it
    3) Download the script to your computer.
    for this Select Goto > Variants> Export and save the file with .TXT
    4) open the file with excel and fill in the values donot change any entries obtained in the excel otherwise the uploading script will be corrupted.
    5)Select Execute Button in the subsequent screen choose the file with filled in entries make sure that the file is not open.
    Select the procesing mode as background to be on the safer side
    and press execute
    it will work if you have performed the above steps correctly.
    Regards,
    Manohar

  • Please advice process change in Solution Manger user creation

    Hello All,
    We have like 5 systems linked to Solution manager now.
    We are trying to make some improvements in our daily activities by reducing / eliminating few steps. In our current scenario, users are LDAP authenticated, so we run a query (RSLDAPSYNC_USER) and create a user. Then assign the roles in SU01.
    So, is it possible to have user creation (by LDAP authentication - RSLDAPSYNC_USER) and role assignment in a single step?
    Or
    Can you create a user group for each type of user and have any automated jobs for automatically assigning roles to the users of that user group?
    We can use su10 for assigning roles in case of more users, but i am looking for some more options.
    Thanks in advance.
    Muzammil

    Hello Miguel,
    We are using solution manager for user maintenance.
    If any internal user requests for SAP application access we give it via solution manage. Solution manager is again connected to our LDAP server and pick the details from LDAP by running a query.
    During this user creation process we have some default roles which are supposed to be given to all the users related to one particular system. Lets say SRM users, if we are creating any SRM users then we have to give the default roles to all the users we created.
    So, is it possible to have these default roles assigned automatically when i create?
    Thanks in advance.

  • Essbase - Shared Services - Maxl - User creation

    Hi,
    I have an issue looking similar to [Automating User/Group creation & Assigning filters in Shared Services|http://forums.oracle.com/forums/thread.jspa?threadID=1009127]
    When trying to add internal groups to an external MSAD user, I get following messages:
    h3. when adding a group to an external user:
    h6. alter user 'x29027' add 'GR_GROUP';
    Maxl returns:
    h6. Statement executed with warnings.
    h6. User x29027 does not exist
    => the system does not recognize the user
    h3. when trying to create this user first as an internal user
    (based the settings from on another external user)
    h6. create or replace user 'x29027' identified by 'password' as 'i09740';
    Maxl returns:
    h6. Statement executed with warnings.
    h6. A user/group with the same name (x29027) exist at Shared Services
    => the system does recognize the user in MSAD!
    ===> both statements seem to be contradictory!!!
    h3. Other remarks/thoughts:
    - we have two MSAD links (to two different domains), does this matter?
    - no difference when addressing users as x29027@MSAD_FIB (a syntax similar to the HSS security report output)
    - any possibilities in creating a user internally first (using the 'as' option; to copy settings from another user) and then moving to external? (like alter user 'Test_EDR4' set type external;)
    Thanks in advance
    Erik
    Environment: Essbase 9.3.1.3. with Shared Services

    Hi Erik,
    When you create an user in Essbase, the user will be created both in Essbase as well as Shared Service,
    where as when you create an user in Shared service, the user will not be created in essbase untill you perform refresh.
    In your case you can create the external user in Essasbe by using "Create user 'x29027' type external;'.
    By this you will be creating the user in Essbase and the particular user is recognised in Essbase.
    Now you can add him to any group.
    - Krish

  • Can we automate user creation or responsibility addition

    HI,
    I would like to know, if by any way we automate user creation in apps. or If not user creation, at least responsibility addition. Lets say we create users with some default responsibility. And after that with the use of user management or CRM HTML Admin some automation can be done like, they select the responsibility they want, it reaches next approval level, once approved it automatically gets added to user account.
    Not sure if this can be done or not. I heard someone did in his project using user managemenr or CRM HTML ADmin, not sure though

    Hi,
    You can do manually (as per your other thread).
    Creating 1000+ users in Oracle R12
    Creating 1000+ users in Oracle R12
    Not sure if this can be automated. However, refer to these manuals/docs and see if it helps.
    Oracle Applications System Administrator's Guide - Security
    http://download.oracle.com/docs/cd/B53825_03/current/acrobat/121sasg.pdf
    Note: 290525.1 - Oracle User Management FAQ
    Note: 290996.1 - Oracle User Management Additional Documentation
    Oracle HRMS Approvals Management Implementation Guide
    http://download.oracle.com/docs/cd/B53825_03/current/acrobat/121ameig.pdf
    Thanks,
    Hussein

  • Automating Administrator creation in 11g OMS

    Is there any way to automate the creation of an Administrator in 11g OMS? I can automagically create the database user, but there are some resource privs that need to be granted as well. If anyone has done this, I would be grateful for some steps in the proper direction.
    Thanx in advance.

    Thanx for the tip using emcli. We have an automated system that let's us know when a new user is requested for our OMS. I am looking to let that message be the trigger for an additional automated process for the user creation.
    One thing I noticed is that the emcli command creates the application user but not the database user. It also has the incorrect database profile. Perhaps I am missing something?
    Here is the command I used:
    emcli create_user -name=TEST123 -desc="Test using EMCLI" -privilege="VIEW_ANY_TARGET" -expire="true" -password="XXXXXXXXXX" -email="[email protected]" -profile="XXX_PWD_AGING" -roles="PUBLIC" -type="DB_EXTERNAL_USER"
    And here is my output from both emcli and sqlplus:
    User "TEST123" created successfully
    SQL> select * from dba_users where username = 'TEST123';
    no rows selected
    Perhaps I am missing something?

  • Multiple user creation in R12 and migration of users

    I would like to know how we can automate a process of user creation in R12, or is there a way to create multiple users in Ebiz with respective responsibilities.
    Second case is, migration of users from one instance to another. The problem out here is selective users not all?
    Regards

    Pl search the forums for FND_USER package - you will find several hits that show how this package can be used in a programmatic fashion to bulk create new users and assign responsibilities. Examples are also available on My Oracle Support.
    To migrate user, use FNDLOAD. See this doc - you will also find hits in these forums if you search.
    376469.1 - Can FNDLOAD Migrate User Accounts Without Forcing Users To Change Their Passwords?
    HTH
    Srini

  • No active writeable datasource found for user creation, check your Persiste

    HI SAP Guru's
    Suddenly when I am login in Portal with J2EE_ADMIN or any user , I am getting error
    You are not authorized to access this application; contact your system administrator
    and when I am going to create user in identity management I am getting below error
    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.".
    I have searched all related treads in SDN but no success
    Please help.
    Thanks & Regards
    Vinay Patel

    Dear all,
    I was searching the community because I had this same error and there was no answer of how it was fixed. So I'm sending how I fixed today in a customer environment.
    1. Go to portal  http://<portal>/webdynpro/dispatcher/sap.com/tcsecumewdumeadmin/UmeAdminApp
    - select configuration
    - folder "sap system based in abap"
    - do the conection test
    If the test fails, log on in client 001 and change user SAPJSF:
    - assign role SAP_BC_JSF_COMMUNICATION (only this one) and one profile that has permission to RFC logon
    - you can change the password too
    STOP/START ABAP+JAVA
    Go again to the portal above and test connection again. The tests should now be OK.
    2. Go to portal  http://<portal>/irj
    - Log on with administrator user
    Now you should be able to create an user.

  • New sap user creation

    Hi All SAP experts,
    My company has implemented 2 Systems SAP Landscape with one development and one production server which are running on R/3 Enterprise 4.7 (Kernel Release 6.20) with Microsoft SQL 2000 as database server.
    I have the following questions regarding new sap user creation by using user copy function.
    1.When I request to create new SAP User by using user copy function ,should I just create the user acct in DEV and transport it to PROD System? If yes, how could I do that?
    2.When I request to create new SAP User by using user copy function, can I just create it on PROD System only? If yes, what is the impact?
    3.When using User copy function to create new user acct, should I select all parts (like adress ,defaults,reference user, user groups.....) of the existing user to be cloned to new user acct?
    Thanks.
    Leon

    Hi Leon,
    Answer to your questions in their respective order:
    1. You can create user in DEV and then make remote client copy to PRD system using scc9 t-code. Here you can choose user accounts and authorizations for the copy. ( Rem: Data will be overwritten in target system when copied).
    You can also use client export/import(scc8/scc7)
    But, When you do the client import from the exported files using STMS,you will have to select only one of the transport requests and then STMS automatically selects the other requests for you.
    Then it will show you the different transport requests that you have created during your export, the client copy profile and the target system and client. The customizing and application data is deleted in the target client before copying for all profiles except SAP_USER. This is technically unavoidable (and hence the data will be overwritten).
    So if you can afford overwritting of user data in target client , you can go with the above procedure.
    2. Using  user copy in su01, you can copy one user to another user only in that client and is confined to that system only. So yes, If you want 2 or more users to have same authorizations, profiles ,etc etc.. you can choose this in PROD system.
    3. It depends.. If you want user to be in same group, then you can choose user groups. If you want them to have same authorizations , you can choose roles and profiles... If you want them to have same company address and others,... you can select address.. and so on.
    Also below link provides required steps in case you choose local/ remote client copy:
    http://www.sap-basis-abap.com/bc/client-copy-by-using-scc8-and-scc7.htm
    Hope this helps...
    Thanks,
    Ajith
    Edited by: Ajith Kamath on Oct 20, 2009 8:28 AM

  • Solution Manager 4.0,  Red hat Linux 4.0 ES & AS, JSF user creation error

    Dear SAP Gurus,  Please advise.
    I have problem during the installation of SAP SOL Man4.0
    Input:
    I am using <b>SOL Man 4.0</b> with Linux version 2004s version2
    1. <b>Red Hat 4.0 ES</b> , 2. <b>Red hat 4.0 AS</b> (Tried both)
    <b>Java 1.4.2_09
    java Cripto: 1.4.2</b>
    when it go the step 34 out of 44 when it create JSF user creation, I am getting error
    It could not able to create Java user.
    It stops. this error is coming during sapjsf user creation.
    is this bug in SOL man 4.0, any one able to successfully install on Linux.
    I see lot of people had probem while doing on windows, but no one tried on Linux.
    I really appriciate, if some one can help on this.
    Thanks
    Ashok .K
    [email protected]

    Dear Raguraman C ,
    Thanks for your help, here is the log i got, during installation step of <b>Phase 33 of 45 JSF user creation</b>.
    Please analyse, advise me what Java settings need to be changed.
    Thanks
    Ashok .K
    [email protected]
    INFO       2006-12-29 00:06:38
    Execute step createJSF of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind |ind|1|0|NW_CI_Instance|ind|ind|ind|ind|11|0|NW_CI_Instance_Doublestack|ind|ind|ind|ind|2|0.
    INFO       2006-12-29 00:06:39 [syuxcpath.cpp:351]
               CSyPath::createFile()
    Creating file /tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/UserCheck.jlaunch.
    INFO       2006-12-29 00:06:39 [syuxcpath.cpp:351]
               CSyPath::createFile()
    Creating file /tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/UserCheck.log.
    INFO       2006-12-29 00:06:39 [syuxccuren.cpp:264]
               CSyCurrentProcessEnvironmentImpl::setGroup(PSyGroup)
    Real group id set to 501.
    INFO       2006-12-29 00:06:39 [syuxccuren.cpp:543]
               CSyCurrentProcessEnvironmentImpl::setEffectiveGroup(PSyGroup)
    Effective group id set to 501.
    INFO       2006-12-29 00:06:39 [syxxccuren.cpp:105]
               CSyCurrentProcessEnvironmentImpl::setWorkingDirectory(iastring)
    Working directory changed to /tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS.
    INFO       2006-12-29 00:06:39
               CJSlibModule::writeInfo_impl()
    Output of /usr/sap/SM1/DVEBMGS01/exe/jlaunch UserCheck.jlaunch com.sap.security.tools.UserCheck / tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/install/lib:/tmp/sapinst_instdir/SOLMAN/SYSTEM/O RA/CENTRAL/AS/install/sharedlib:/tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/install -c sysn r=01 -c ashost=machine5 -c client=001 -c user=DDIC -c XXXXXX -a checkCreate -u SAPJSF -p XXXXXX - r SAP_BC_JSF_COMMUNICATION_RO -message_file UserCheck.message is written to the logfile /tmp/sapi nst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/UserCheck.log.
    WARNING    2006-12-29 00:09:27
               CJSlibModule::writeWarning_impl()
    Execution of the command "/usr/sap/SM1/DVEBMGS01/exe/jlaunch UserCheck.jlaunch com.sap.security.t ools.UserCheck /tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/install/lib:/tmp/sapinst_instdir /SOLMAN/SYSTEM/ORA/CENTRAL/AS/install/sharedlib:/tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS /install -c sysnr=01 -c ashost=machine5 -c client=001 -c user=DDIC -c XXXXXX -a checkCreate -u SA PJSF -p XXXXXX -r SAP_BC_JSF_COMMUNICATION_RO -message_file UserCheck.message" finished with retu rn code 4. Output:
    Dec 29, 2006 12:06:44... Info: User management tool (com.sap.security.tools.UserCheck) called for  action "checkCreate"
    Dec 29, 2006 12:06:44... Info: Connected to backend system SM1 client 001 as user DDIC
    Dec 29, 2006 12:06:45... Info: Called for user SAPJSF
    Dec 29, 2006 12:06:49... Info: Formal password check successful
    Dec 29, 2006 12:06:49... Info: Will create user SAPJSF
    Dec 29, 2006 12:09:20... Info: Created user SAPJSF of type A with reference user <none>
    Dec 29, 2006 12:09:22... Warning: Error during creation of user SAPJSF. Will remove user again to  ensure clean exit state
    Dec 29, 2006 12:09:27... Error: Exception during execution of the operation
    [EXCEPTION]
    com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: Invalid request.
            at com.sap.mw.jco.MiddlewareJRfc.generateJCoException(MiddlewareJRfc.java:455)
            at com.sap.mw.jco.MiddlewareJRfc$Client.execute(MiddlewareJRfc.java:1395)
            at com.sap.mw.jco.JCO$Client.execute(JCO.java:3917)
            at com.sap.mw.jco.JCO$Client.execute(JCO.java:3354)
            at com.sap.security.tools.UserCheck.createUser(UserCheck.java:1876)
            at com.sap.security.tools.UserCheck.main(UserCheck.java:289)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)
    Dec 29, 2006 12:09:27... Info: Leaving with return code 4
    INFO       2006-12-29 00:09:27 [syuxcfile.cpp:280]
               CSyFileImpl::remove()
    Removing file /tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/dev_UserCheck.
    INFO       2006-12-29 00:09:27 [syuxcfile.cpp:280]
               CSyFileImpl::remove()
    Removing file /tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/dev_UserCheck.clone.
    ERROR      2006-12-29 00:09:27
               CJSlibModule::writeError_impl()
    CJS-30196  Invalid request.
    ERROR      2006-12-29 00:09:27
    FCO-00011  The step createJSF with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind |ind|ind|ind|1|0|NW_CI_Instance|ind|ind|ind|ind|11|0|NW_CI_Instance_Doublestack|ind|ind|ind|ind|2 |0|createJSF was executed with status ERROR .
    Ashok kalakota My coment:
    Phase 33 of 45 JSF user creation
    INFO       2006-12-29 00:06:38
    Execute step createJSF of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind |ind|1|0|NW_CI_Instance|ind|ind|ind|ind|11|0|NW_CI_Instance_Doublestack|ind|ind|ind|ind|2|0.
    INFO       2006-12-29 00:06:39 [syuxcpath.cpp:351]
               CSyPath::createFile()
    Creating file /tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/UserCheck.jlaunch.
    INFO       2006-12-29 00:06:39 [syuxcpath.cpp:351]
               CSyPath::createFile()
    Creating file /tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/UserCheck.log.
    INFO       2006-12-29 00:06:39 [syuxccuren.cpp:264]
               CSyCurrentProcessEnvironmentImpl::setGroup(PSyGroup)
    Real group id set to 501.
    INFO       2006-12-29 00:06:39 [syuxccuren.cpp:543]
               CSyCurrentProcessEnvironmentImpl::setEffectiveGroup(PSyGroup)
    Effective group id set to 501.
    INFO       2006-12-29 00:06:39 [syxxccuren.cpp:105]
               CSyCurrentProcessEnvironmentImpl::setWorkingDirectory(iastring)
    Working directory changed to /tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS.
    INFO       2006-12-29 00:06:39
               CJSlibModule::writeInfo_impl()
    Output of /usr/sap/SM1/DVEBMGS01/exe/jlaunch UserCheck.jlaunch com.sap.security.tools.UserCheck / tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/install/lib:/tmp/sapinst_instdir/SOLMAN/SYSTEM/O RA/CENTRAL/AS/install/sharedlib:/tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/install -c sysn r=01 -c ashost=machine5 -c client=001 -c user=DDIC -c XXXXXX -a checkCreate -u SAPJSF -p XXXXXX - r SAP_BC_JSF_COMMUNICATION_RO -message_file UserCheck.message is written to the logfile /tmp/sapi nst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/UserCheck.log.
    WARNING    2006-12-29 00:09:27
               CJSlibModule::writeWarning_impl()
    Execution of the command "/usr/sap/SM1/DVEBMGS01/exe/jlaunch UserCheck.jlaunch com.sap.security.t ools.UserCheck /tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/install/lib:/tmp/sapinst_instdir /SOLMAN/SYSTEM/ORA/CENTRAL/AS/install/sharedlib:/tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS /install -c sysnr=01 -c ashost=machine5 -c client=001 -c user=DDIC -c XXXXXX -a checkCreate -u SA PJSF -p XXXXXX -r SAP_BC_JSF_COMMUNICATION_RO -message_file UserCheck.message" finished with retu rn code 4. Output:
    Dec 29, 2006 12:06:44... Info: User management tool (com.sap.security.tools.UserCheck) called for  action "checkCreate"
    Dec 29, 2006 12:06:44... Info: Connected to backend system SM1 client 001 as user DDIC
    Dec 29, 2006 12:06:45... Info: Called for user SAPJSF
    Dec 29, 2006 12:06:49... Info: Formal password check successful
    Dec 29, 2006 12:06:49... Info: Will create user SAPJSF
    Dec 29, 2006 12:09:20... Info: Created user SAPJSF of type A with reference user <none>
    Dec 29, 2006 12:09:22... Warning: Error during creation of user SAPJSF. Will remove user again to  ensure clean exit state
    Dec 29, 2006 12:09:27... Error: Exception during execution of the operation
    [EXCEPTION]
    com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: Invalid request.
            at com.sap.mw.jco.MiddlewareJRfc.generateJCoException(MiddlewareJRfc.java:455)
            at com.sap.mw.jco.MiddlewareJRfc$Client.execute(MiddlewareJRfc.java:1395)
            at com.sap.mw.jco.JCO$Client.execute(JCO.java:3917)
            at com.sap.mw.jco.JCO$Client.execute(JCO.java:3354)
            at com.sap.security.tools.UserCheck.createUser(UserCheck.java:1876)
            at com.sap.security.tools.UserCheck.main(UserCheck.java:289)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)
    Dec 29, 2006 12:09:27... Info: Leaving with return code 4
    INFO       2006-12-29 00:09:27 [syuxcfile.cpp:280]
               CSyFileImpl::remove()
    Removing file /tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/dev_UserCheck.
    INFO       2006-12-29 00:09:27 [syuxcfile.cpp:280]
               CSyFileImpl::remove()
    Removing file /tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/dev_UserCheck.clone.
    ERROR      2006-12-29 00:09:27
               CJSlibModule::writeError_impl()
    CJS-30196  Invalid request.
    ERROR      2006-12-29 00:09:27
    FCO-00011  The step createJSF with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind |ind|ind|ind|1|0|NW_CI_Instance|ind|ind|ind|ind|11|0|NW_CI_Instance_Doublestack|ind|ind|ind|ind|2 |0|createJSF was executed with status ERROR .
    [root@machine5 AS]# cat UserCheck.log
    Dec 29, 2006 12:06:44... Info: User management tool (com.sap.security.tools.UserCheck) called for action "checkCreate"
    Dec 29, 2006 12:06:44... Info: Connected to backend system SM1 client 001 as user DDIC
    Dec 29, 2006 12:06:45... Info: Called for user SAPJSF
    Dec 29, 2006 12:06:49... Info: Formal password check successful
    Dec 29, 2006 12:06:49... Info: Will create user SAPJSF
    Dec 29, 2006 12:09:20... Info: Created user SAPJSF of type A with reference user <none>
    Dec 29, 2006 12:09:22... Warning: Error during creation of user SAPJSF. Will remove user again to ensure clean exit state
    Dec 29, 2006 12:09:27... Error: Exception during execution of the operation
    [EXCEPTION]
    com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: Invalid request.
            at com.sap.mw.jco.MiddlewareJRfc.generateJCoException(MiddlewareJRfc.java:455)
            at com.sap.mw.jco.MiddlewareJRfc$Client.execute(MiddlewareJRfc.java:1395)
            at com.sap.mw.jco.JCO$Client.execute(JCO.java:3917)
            at com.sap.mw.jco.JCO$Client.execute(JCO.java:3354)
            at com.sap.security.tools.UserCheck.createUser(UserCheck.java:1876)
            at com.sap.security.tools.UserCheck.main(UserCheck.java:289)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)
    Dec 29, 2006 12:09:27... Info: Leaving with return code 4
    [root@machine5 AS]# pwd
    /tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS
    [root@machine5 AS]#

  • User Creation at the time of Self Registration not via Admin (xelsysadm)

    Hello there,
    I had a question related to User Creation in OIM via Self Registration (Create Request) and via "xelsysadm" itself creating one user via the web console.
    Can I do this -
    When a user does self registration then how can I directly create a user in OIM?
    Right now: the user's request needs to be approved by xelsysadm first and then only that user can login into OIM and then only that user can be seen in OIM - I want to remove the "xelsysadm" gateway of approving the request.
    I want that user directly to be present in the OIM as soon as he/she fills out it's information in the self registration pages. How can we do this?
    Also, I want an email to be sent to the user to its email ID that he/she provided at the time of self regn containing its User ID and password in it from the xelsysadm email id. How can I do that?
    TIA for the help,
    - oidm.

    Hi oidm
    User Registration is R.O. which used for User Self Registration.
    But if you see it carefully, there's no Approve Task (not workflow) in it.
    It has three task
    1) SV
    2) PI
    3) AAD
    And if you see the request while approval it shows Awaiting Approval Data means it stuck in AAD.
    Try to modify this, I can't as I don have any extra machine with. Try to modify this. It may not allow you to update it, you'll have to change its security level in Database level.
    *Awaiting Approval Data  System Administrator [XELSYSADM] Pending*
    I hope it helps you to start R n D.

  • Need API for user creation

    Dear All,
    I need to use bulk user creation through API. Please advice which API i use to resolve this issue.
    Thanks
    Rehan

    I need to use bulk user creation through API. Please advice which API i use to resolve this issue.FND_USER_PKG.CREATEUSER
    FND_USER_PKG
    https://forums.oracle.com/forums/search.jspa?threadID=&q=FND_USER_PKG&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    PACKAGE: APPS.FND_USER_PKG
    http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=FND_USER_PKG&c_owner=APPS&c_type=PACKAGE
    Thanks,
    Hussein

  • Can we Automate User Creation in SAP IDES?

    Hey Guys,
    I found this piece of information on Internet somewhere.
    "SAP provides a simple user creation mechanism for IDES system. An enhancement is already active by the name USRADMIN this contains code that executes just after the user logon. If somebody logs on as 'MUSTER' with password 'IDES' it prompts to create a user. and after the creation MUSTER is logged off. If the password of MUSTER is changed the program also reset the password to IDES always. the password is hard coded in the code
    For this to be active an entry has to be maintained in the table zides_user_procc . In this table we maintain the SAP system SID, client where this functionality is to be active and also maintain the reference user which will be copied to the new user ."
    *bol

    It was a while back, but the logic was like this:
    User logs into webpage on intranet.  Lets just say that authentication to that resource is dealt with separately here.
    User is presented with a form and fills in info like
    UserID required
    FirstName
    LastName
    email address
    Password
    This info is used by some backend VB code which initialises an RFC connection with SAP.
    Once RFC is established, a function module to copy an existing template user is executed (template user contains roles to copy etc).  The new user is created as required and you can then log on & use it.
    To be honest, most self service sandbox systems tend to be the log in using existing user & create yourself a user or run a prog which will do it for you.
    Hope that helps,
    Cheers
    Alex

Maybe you are looking for