简体   繁体   English

如何在 Office 365 中添加用户并使用图 api 分配许可证

[英]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.我们正在开展一个项目,我们需要在 Exchange 在线添加新用户并使用 Microsoft graph api 以编程方式为他们分配许可证。

Is this possible if yes, then how can we solve this.这是否可能,如果是,那么我们如何解决这个问题。

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#.这些页面显示了如何使用 C# 处理此问题的示例。

You may do testing in Postman to ensure your authentication is working properly and you are using a correctly formatted body etc.您可以在 Postman 中进行测试,以确保您的身份验证工作正常并且您使用的正文格式正确等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM