![](/img/trans.png)
[英]How to get azure ad user properties using microsoft graph api
[英]Is it possible to get all the user informations in a tenant by Azure AD Graph API or Microsoft Graph API?
从Azure Active Directory v2.0身份验证库中,我们可以看到许多有关如何使用库连接Active Directory的示例。 似乎所有人都应该首先在apps.dev.microsoft.com上创建一个应用程序。 然后,使用Application ID
和新密码在客户端或服务器中间件应用程序中充当clientID
和clientSecret
。
这样,一个用户可以使用该应用程序通过oauth 2或通过Azure Active Directory API
openid登录。 也可以正确获取个人信息,例如用户个人资料。
但是,如果我想一次在租户中获取所有用户信息,是否可以使用API?
但是,如果我想一次在租户中获取所有用户信息,是否可以使用API?
您可以使用Microsoft Graph API(特别是列表用户API) 。
https://graph.microsoft.com/v1.0/users
为了进行快速测试,请尝试使用Microsoft Graph Explorer
同样,您也可以使用Azure AD Graph API列出用户,但是建议使用Microsoft Graph API 。
阅读Microsoft Graph或Azure AD Graph以及本SO帖子 (仅当需要使用Azure Graph API的稳定版本无法实现的非常特定的功能时,才使用Azure AD Graph API。)
Azure AD Graph API列出用户(不推荐)
https://graph.windows.net/myorganization/users
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.