How to create an Active Directory group via Web Services in Identity Manager

Document ID : KB000010708
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

Endpoint groups may be managed via Identity Manager.  The following is a sample SOAP request showing how to create an Active Directory endpoint group via Web Services.

Instructions:

This sample SOAP request will create an Active Directory group.  It should be modified with environment specific details.  It can also be used as a sample to create groups on other endpoint types using the appropriate Create Group task for that endpoint type.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://tews6/wsdl">

   <soapenv:Header/>

   <soapenv:Body>

      <wsdl:TaskContext>

         <wsdl:admin_id>imadmin</wsdl:admin_id>

         <wsdl:admin_password>password</wsdl:admin_password>

      </wsdl:TaskContext>

      <wsdl:CreateActiveDirectoryGroup>

    <wsdl:CreateActiveDirectoryGroupSearch>

            <wsdl:CreateNew>TRUE</wsdl:CreateNew>

            <wsdl:EndpointGroupSearch>

                 <wsdl:ContainerHandle>ADSOrgUnit=Groups,EndPoint=MyADEndpoint,Namespace=ActiveDirectory,Domain=im,Server=Server</wsdl:ContainerHandle>

            </wsdl:EndpointGroupSearch>

         </wsdl:CreateActiveDirectoryGroupSearch>     

         <wsdl:CreateActiveDirectoryGroupActiveDirectoryGroupGroupTab>

            <wsdl:_PCT_ENDPOINT_CAPABILITY_NAME_PCT_>TestGroup</wsdl:_PCT_ENDPOINT_CAPABILITY_NAME_PCT_>

            <wsdl:ntAccountId>TestGroup</wsdl:ntAccountId>

            <wsdl:ADSdescription>Test Group</wsdl:ADSdescription>

            <wsdl:EMail>TestGroup@ca.com</wsdl:EMail>

            <wsdl:groupScopeInternal>Global</wsdl:groupScopeInternal>

            <wsdl:groupTypeInternal>Security</wsdl:groupTypeInternal>

            <wsdl:info>TestGroup</wsdl:info>

         </wsdl:CreateActiveDirectoryGroupActiveDirectoryGroupGroupTab>            

      </wsdl:CreateActiveDirectoryGroup>

   </soapenv:Body>

</soapenv:Envelope>