CreateOrganization Error using IDM RRS feed

  • Question

  • I keep getting error messages in CreateOrganization using IDM.

    Microsoft.ConnectedServices.Sdk.Message imessage = Microsoft.ConnectedServices.Sdk.Message.CreateMessage(IdentityManagerActions.CreateOrganizationRequest,
                    new Uri(identityManagerUri));
                    new Microsoft.ConnectedServices.Sdk.Security.Tokens.UsernameToken(
                    "mydomain\\csfservice", "pwd",
                CreateOrganizationRequest idmrequest = new CreateOrganizationRequest();
                idmrequest.Organization.OrganizationId = "TestOU";
                idmrequest.OrganizationName = "TestOu";
                idmrequest.ParentOrganizationId = "TestProviderOU";
                // Must correspond to a valid xml Organization Template.
                idmrequest.OrganizationType = "Partner";
                MessageSender msender = new MessageSender();
                imessage.Header.Addressing.From = new EndpointReference(
                    new Uri("http://localhost/EvsWes/EvsWes.ashx"));
                    CreateOrganizationResponse idmresp = msender.SendSync<CreateOrganizationResponse>(imessage);
                catch (SoapFaultException e11)

    The exception is "ADOrganizationManager.Create: Parent organization's type makes it a non legitimate parent".

    If I leave ParentOrganizationId empty, then IDM complains about parent OU is null or empty.

    The credentials I used in CSF is the common account which is allowed to access all CSF services. Using the same account, I could readOrganization without any problem. I also tried to directly create OU within parent OU from AD admin tool and it worked fine. So there shouldn't be any permission issue.

    Could anyone help me out to solve this problem? Also I want to understand what values can be used for OrganizationType field as my internet search turned out empty on that xml template.


    Friday, August 17, 2007 3:24 PM

All replies

  • Hi Ying,


    The business category of your parent OU must not  be set. Set the value of businesscategory to "Operator". In your case the parent OU is TestProviderOU.


    You can set this value using ADSI edit which comes along with windows support tools.



    Lakshay Gupta

    Thursday, November 15, 2007 1:10 PM