How to programatically delete Azure Active Directory user? RRS feed

  • Question

  • I am using the following code. The code executes fine but does not delete the user.

    IUser deleteuser = new User();
    deleteuser = users.Where(myuser => myuser.MailNickname.Equals("IshanArora")).FirstOrDefault();

    Tuesday, March 17, 2015 1:28 PM


  • The Microsoft.Azure.Batch.IUser and Microsoft.Azure.Batch.User objects are unrelated to Azure Active Directory entities.

    Use these (Batch Service) objects to manipulate user accounts in the VMs of a pool.   Specifically, they map to local user accounts in the windows operating system running as the guest OS in the VM.

    These objects cannot be used to manipulate Azure Active Directory.   Perhaps your question is meant for the AAD forum?

    Please let us know if you need assistance with Azure Batch Service users (and/or rdp access).



    Thursday, March 19, 2015 12:54 AM