gpt4 book ai didi

java - Azure REST API,用于从 Azure 门户获取所有用户的联系详细信息

转载 作者:行者123 更新时间:2023-12-02 03:15:37 25 4
gpt4 key购买 nike

我正在开发一个 java 应用程序,需要 azure AD 的联系方式。我没有获得任何 REST API 来获取详细信息。经过大量搜索后,我得到了我正在使用的以下 GET 用户实体请求 url,但它只给了我以下输出。有人可以帮助我如何获取用户的联系方式(目前我在 azure 门户中仅创建了 1 个用户)

获取网址:

https://management.azure.com/subscriptions/{{subscriptionID}}/resourceGroups/{{ResourceGroup}}/providers/Microsoft.ApiManagement/service/{{ServiceName}}/users?api-version=2019-01-01

输出:

"type": "Microsoft.ApiManagement/service/users",
"name": "1",
"properties": {
"firstName": "Administrator",
"lastName": "",
"email": "XXXXX@outlook.com",
"state": "active",
"registrationDate": "2019-07-09T19:02:48.06Z",
"note": null,
"identities": [{
"provider": "Azure",
"id": "XXXXXX@outlook.com"
}

最佳答案

您可以使用图形 API。以下端点将返回组织中的所有用户

https://graph.microsoft.com/v1.0/users

enter image description here

关于java - Azure REST API,用于从 Azure 门户获取所有用户的联系详细信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56963722/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com