Microsoft Graph上的AAD应用程序注册 [英] AAD App Registrations on Microsoft Graph

查看:140
本文介绍了Microsoft Graph上的AAD应用程序注册的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用我的管理员帐户为Azure AD创建应用程序注册.我打算创建一个组织应用程序注册(不是多租户).

I'm creating an app registration for Azure AD using my admin account. I intend to create an organization app registration (not multitenant).

当我通过Azure门户手动创建此应用程序时,该应用程序将显示为应有的状态. 但是,当我通过Microsoft Graph(POST/beta/applications)创建它时,它不会显示在门户中.但是在列出应用程序(GET/beta/applications)时显示.因此,它已明确注册,但未显示在门户中.

When I create this manually via the Azure Portal, the app shows as it should. But when I create it through the Microsoft Graph (POST /beta/applications), it does not show up in the portal. BUT it shows up when listing applications (GET /beta/applications). So it is clearly registered, but not showing in the portal.

我想念什么?

我使用的密码与登录门户网站时使用的用户相同.当我查看GET应用程序列表中的JSON结果时,唯一的区别是手动创建的应用程序具有以下属性:

I am using the same user in code that I'm using logged in to the portal. When I look at the JSON result in te GET app list, the only differences is that the app created manually has the following properties:

"orgRestrictions": ["my-tenant-id-guid"],
"publisherDomain": null,
"api": {
    "acceptedAccessTokenVersion": null,
    ...
}

...并且我通过代码创建的应用具有以下属性:

...and the app I created from code has these properties instead:

"orgRestrictions": [],
"publisherDomain": "mydomain.com",
"api": {
    "acceptedAccessTokenVersion": 2,
    ...
}

有什么想法吗?

推荐答案

该API当前为Azure AD"v2"终结点创建应用.如果您登录 https://apps.dev.microsoft.com (当然,使用用于通过API注册应用程序的帐户).

This API currently creates apps for the Azure AD "v2" endpoint. You should be able to see it if you sign in to https://apps.dev.microsoft.com (with the same account used to register the app via the API, of course).

这篇关于Microsoft Graph上的AAD应用程序注册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆