How to Add/Delete users to azure active directory from C# code

New Contributor

Hello Team,

Need to  add/delete  users to azure active directory using C# code. can you please help me on same.

i am having the owner role on active directory and want to add users to AAD through C# code.

do we have any reference documents /code snippet please share it so that it would be really helpful to me.

 

Thanks in advance 

 

Raveendra,

 

 

 

1 Reply

You know there's a very well documented API for that, have you tried doing a search online? https://docs.microsoft.com/en-us/graph/api/user-post-users?view=graph-rest-1.0&tabs=cs