azure - 从 postman 获取 Azure AD 实例内的用户的用户列表

标签 azure azure-active-directory

我想使用 postman 获取 Azure AD 实例内的用户列表。如果有人这样做了,请告诉我该 URL 和凭据详细信息。

最佳答案

请求网址:

https://graph.windows.net/YourTenant.onmicrosoft.com/users?api-version=1.6

您还可以尝试使用租户 ID:

https://graph.windows.net/3deed68b_Tenant_ID_ef7cfbe/users?api-version=1.6

您还可以应用自定义查询SELECT

https://graph.windows.net/YourTenant.onmicrosoft.com/users?api-version=1.6&$select=id,mail,userType,userPrincipalName

您还可以应用自定义查询SELECT$filter

https://graph.windows.net/YourTenant.onmicrosoft.com/users?api-version=1.6&$select=id,mail,userType,userPrincipalName&$filter=userPrincipalName eq '<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b2d3d6dfdbdcf2d7c0dbd1dfded3d09cdddcdfdbd1c0ddc1ddd4c69cd1dddf" rel="noreferrer noopener nofollow">[email protected]</a>'

凭据详细信息:

您需要设置以下请求权限凭据:

设置步骤:

步骤:1

enter image description here

步骤:2

enter image description here

步骤:3

添加权限后,您必须授予同意,如下所示:

enter image description here

现在您可以从 postman 处调用它了。

postman 示例:

1。仅用户示例

enter image description here

2。具有自定义查询的用户

enter image description here

注意:

enter image description here

有关更多详细信息,您可以引用以下资源

  1. Azure Ad graph API

  2. Microsoft Graph API

关于azure - 从 postman 获取 Azure AD 实例内的用户的用户列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57110163/

相关文章:

google-app-engine - 如何使用 REST API 从 Java/GAE 向 Azure 通知中心发送消息

具有 Azure AD 访问 token 的 Azure Function

c# - Azure AD 401 错误 - 从 Angular 客户端进行身份验证

python - 使用 python 使用 Active Directory 密码连接 Azure SQL Server 数据库(出现错误)

azure - 创建 Azure Key Vault C# 错误远程服务器返回错误 : (403) Forbidden

python - 执行 Python Azure Functions 时不显示记录 DEBUG 日志

azure - 在 Cosmos Db 中按类型过滤文档

python - 如何在Python Azure IoT Hub客户端SDK中为mqtt发布消息设置QoS级别0?

azure - 使用 Azure AD 身份验证对 Azure SQL DB 进行基于 token 的身份验证支持

azure - .Net core应用程序无法从Microsoft Graph API获取用户详细信息?