Search code examples
c#.netoffice365exchange-server

How to add users in Office 365 and assign license using graph api


We are working on a project where we need to add new users in Exchange online and assign them license programmatically using Microsoft graph api.

Is this possible if yes, then how can we solve this.


Solution

  • You will want to follow the two following documentation pages:

    Add User

    Assign License

    These pages show examples of how to handle this with C#.

    You may do testing in Postman to ensure your authentication is working properly and you are using a correctly formatted body etc.