Active directory synchronization RRS feed

  • Question


    Is there anyways I can synchronize CRM access thru active directory so that anytime a user has to be added is added to the ad group and it automatically synchronizes with CRM?


    Some 200 people in my organization will be asking for access on different occasions. I really don't want to login to CRM everytime, search for users (even if multiple at a time) and add them. Please help me with some tips.


    I also have an access management system in my organization which is integrated with active directory. People go to this central place to request their access to a particular system and once approved, the user automatically gets added to the active directory group the system/role is associated to. I want to utilize this tool to avoid manual work.

    Monday, September 29, 2008 9:17 PM

All replies

  • You can do it using the sdk, just implement this with your system.


    below is the console application code that can be used:


    Code Snippet

    crm.CrmService service = new ConsoleApplication1.crm.CrmService();
    service.Credentials = System.Net.CredentialCache.DefaultCredentials;

    systemuser newuser = new systemuser();
    Lookup bu = new Lookup();
    bu.Value = new Guid("9153b3ae-8ed9-db11-93be-0003ffe1e891"); // PARENT Businessunit
    bu.dsc = 0;
    bu.dscSpecified = true;
    bu.name = "Contoso";

    bu.type = EntityName.businessunit.ToString();
    newuser.businessunitid = bu;
    newuser.domainname = "CONTOSO\test1";
    newuser.firstname = "test";
    newuser.lastname = "test";
    Key id = new Key();
    id.Value = Guid.NewGuid();
    newuser.systemuserid = id;

                    Guid newuserid = service.Create(newuser);

                catch (Exception ex)
                    Console.WriteLine(ex.Message + ex.StackTrace);




    Monday, September 29, 2008 9:57 PM