This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

C# equivalent of Deprovision-QADUser

is there an equivalent Deprovision-QADUser in C#.?

 

Parents
  • Hello, Paul.

    You may initiate deprovisioning by setting the edsvaDeprovisionType attribute to the value "1" (listed in the SDK documentation under the topics "user Class" and "Deprovisioning user accounts"). So, the C# version would be something like this:

    using System.DirectoryServices;
    
    DirectoryEntry user = new DirectoryEntry("EDMS://CN=UserToDeprovision,OU=MyOU,DC=demo,DC=com");
    user.Properties["edsvaDeprovisionType"].Value = "1";
    user.CommitChanges();
    

Reply
  • Hello, Paul.

    You may initiate deprovisioning by setting the edsvaDeprovisionType attribute to the value "1" (listed in the SDK documentation under the topics "user Class" and "Deprovisioning user accounts"). So, the C# version would be something like this:

    using System.DirectoryServices;
    
    DirectoryEntry user = new DirectoryEntry("EDMS://CN=UserToDeprovision,OU=MyOU,DC=demo,DC=com");
    user.Properties["edsvaDeprovisionType"].Value = "1";
    user.CommitChanges();
    

Children
No Data