Create User And Shared Mailbox operation


The Create User And Shared Mailbox wrapper first creates a user and then creates the shared mailbox for a user not present in the Active Directory.

Note

The AuthorizedUsers element for the shared mailbox should exist in the Active Directory. Only the primary shared mailbox user specified in the request (using UserLogonName, UserFirstName, UserLastName, and UserPassword parameters) is created in the Active Directory.

The following table describes the input parameters for the Create User And Shared Mailbox wrapper.

 Input parameters for the Create User And Shared Mailbox wrapper

The following figure shows a sample of an adapter request for the Create User And Shared Mailbox wrapper.

XML sample of an adapter request for the Create User And Shared Mailbox wrapper

<microsoft-exchange-request>
   <command>
       <command-name>Create-UserAndSharedMailbox</command-name>
       <parameters>
           <parameter>
               <name>UsersContainer</name>
               <value>CN=Users</value>
           </parameter>
           <parameter>
               <name>ExchangeServerName</name>
               <value>S-17125</value>
           </parameter>
           <parameter>
               <name>DomainName</name>
               <value>DC=BMCDEV1,DC=com</value>
           </parameter>
           <parameter>
               <name>StorageGroupName</name>
               <value>TestKamal99</value>
           </parameter>
           <parameter>
               <name>MailboxStoreName</name>
               <value>TestK_MailboxStore</value>
           </parameter>
           <parameter>
               <name>UserLogonName</name>
               <value>cdo</value>
           </parameter>
           <parameter>
               <name>UserFirstName</name>
               <value>cdofirst</value>
           </parameter>
           <parameter>
               <name>UserLastName</name>
               <value>cdolast</value>
           </parameter>
           <parameter>
               <name>UserPassword</name>
               <value>root@123</value>
           </parameter>
           <parameter>
               <name>AuthorizedUsers</name>
               <value>BMCDEV1\Administrator;BMCDEV1\kamal</value>
           </parameter>
       </parameters>
   </command>
</microsoft-exchange-request>


The following figure illustrates the adapter response for Create User And Shared Mailbox wrapper.

XML sample of the adapter response for the Create User And Shared Mailbox wrapper

<microsoft-exchange-response>
   <metadata>
       <status>success</status>
   </metadata>
   <commands-output>
       <command-output>
           <metadata>
             <command>cscript "C:\Program Files\BMC Software\AO\CDP_75FCS\server
   \grids\KGrid\library\adapters\bmc-adapter-microsoft-exchange-v2003-actor
    _7.6.00.2009070913\scripts\createUserAndSharedMailbox.vbs"  
   "CN=Users" "S-17125" "DC=BMCDEV1,DC=com" "TestKamal99" "TestK_MailboxStore"
   "cdo" "cdofirst" "cdolast" "root@123" "BMCDEV1\Administrator;
    BMCDEV1\kamal"</command>
               <line-count>10</line-count>
               <execution-milliseconds>4407</execution-milliseconds>
               <exit-code>0</exit-code>
               <status>success</status>
           </metadata>
           <output>
               <line index = "1">Attempting to connect to remote host...</line>
               <line index = "2">Initialising rctrlx server component...</line>
               <line index = "3">Executing remote application: cmd /c cscript
   "%windir%\createUserAndSharedMailbox.vbs" "CN=Users" "S-17125"
   "DC=BMCDEV1,DC=com" "TestKamal99" "TestK_MailboxStore" "cdo"
   "cdofirst" "cdolast" "root@123" "BMCDEV1\Administrator;BMCDEV1\kamal"</line>
               <line index = "4">Remote application process ID: 9144</line>
               <line index = "5">Microsoft (R) Windows Script Host
    Version 5.6</line>
               <line index = "6">Copyright (C) Microsoft Corporation 1996-2001.
    All rights reserved.</line>
               <line index = "7">Domain Name:DC=BMCDEV1,DC=com</line>
               <line index = "8">Matching storage group found:
   LDAP://CN=TestK_MailboxStore,CN=TestKamal99,CN=InformationStore,
   CN=S-17125,CN=Servers,CN=First Administrative Group,CN=Administrative Groups,
    CN=First Organization,CN=Microsoft Exchange,CN=Services,
    CN=Configuration,DC=BMCDEV1,DC=com</line>
               <line index = "9">Done creating user and shared mailbox.</line>
               <line index = "10">Remote application exited with code: 0</line>
         </output>
       </command-output>
   </commands-output>
</microsoft-exchange-response>

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*