在Microsoft Graph中获取'logoUrl'和'homePageUrl'null

时间:2019-04-09 06:19:12

标签: azure-active-directory microsoft-graph

在Microsoft Graph Explorer中点击https://graph.microsoft.com/beta/applications API时,我得到 logoUrl homePageUrl 为空。

"info": {
            "termsOfServiceUrl": null,
            "supportUrl": null,
            "privacyStatementUrl": null,
            "marketingUrl": null,
            "logoUrl": null
        },

在某些应用程序中,我得到的homePageUrl为null,在某些应用程序中,我得到了一些URL,当我在浏览器中点击这些URL时,我得到了错误。

"homePageUrl": "https://sso.services.box.net/sp/ACS.saml2?metadata=box|ISV9.1|primary|z",

我的目标-我想在点击https://graph.microsoft.com/beta/applications API时使用homePageUrl和logoUrl,并使用Microsoft应用程序的徽标和URL。

1 个答案:

答案 0 :(得分:0)

如果您为应用设置了两个属性,则api将返回它们。要检查它们,请导航至门户中的Azure Active Directory->应用程序注册->查找您的应用程序-> Properties->检查LogoHome page URL(如果未设置),然后设置主页网址并上传图片作为徽标->保存。

再次调用api,您可以在响应中找到它们。

enter image description here

enter image description here