locked
Creating Active Directory Users from CRM RRS feed

  • Question

  • Hello, I'm new to Dynamics CRM Development, I am trying to create a plugin that will automatically create Active Directory users in my org, however I am getting a permissions error when the plugin tries to create the user, my guess is that crm doesn't have the permissions to create user in my org. Here is the error

    Request for the permission of type 'System.DirectoryServices.DirectoryServicesPermission

    I'm not sure how I can grant the appropriate permissions to CRM, or if I need to do impersonation in the plugin.

    Any ideas.

    Thanks Michael


    Michael Leitao

    Tuesday, December 29, 2015 4:17 PM

Answers

  • Hi Michael

    Make sure your Plugin NOT registered in Sandbox mode.

    reff: https://social.microsoft.com/Forums/en-US/e0280022-15b7-45e2-a64c-b85592abf5a5/error-when-creating-user-in-active-directory-through-dynamics-crm-2011-ui?forum=crmdeployment

    Wednesday, December 30, 2015 8:49 AM

All replies

  • Hi Michael

    Make sure your Plugin NOT registered in Sandbox mode.

    reff: https://social.microsoft.com/Forums/en-US/e0280022-15b7-45e2-a64c-b85592abf5a5/error-when-creating-user-in-active-directory-through-dynamics-crm-2011-ui?forum=crmdeployment

    Wednesday, December 30, 2015 8:49 AM
  • Yeah that was the issue, Thanks

    Michael Leitao

    Wednesday, December 30, 2015 12:40 PM