Azure active directory 无法使用beta Graph API创建密码AAD应用程序

Azure active directory 无法使用beta Graph API创建密码AAD应用程序,azure-active-directory,microsoft-graph-api,Azure Active Directory,Microsoft Graph Api,几天前,我无法使用Graph REST API创建带有密码的应用程序。端点返回400错误:必须使用服务操作生成新密码凭据。剩下的电话是 POST https://graph.microsoft.com/beta/applications { "displayName": "appname", "passwordCredentials": [ { "customKeyIdentifier": "base64/UTF16-encoded-name", "en

几天前,我无法使用Graph REST API创建带有密码的应用程序。端点返回400错误:
必须使用服务操作生成新密码凭据。剩下的电话是

POST https://graph.microsoft.com/beta/applications

{
  "displayName": "appname",
  "passwordCredentials": [
    {
      "customKeyIdentifier": "base64/UTF16-encoded-name",
      "endDateTime": "2020-12-31T12:00:00Z",
      "secretText": "some-secret-text"
    }
  ]
}
这是使用具有委派目录.AccessAsUser.All、用户.Read和openid权限的应用程序。我是这个房客的管理员


这是有意的吗?如何使其重新工作?

我可以重现您的问题,看起来API已经更改,有一个新的MS Graph API来创建密码-。注意:Microsoft Graph中
/beta
版本下的API可能会发生更改

POST https://graph.microsoft.com/beta/applications/{object-id}/addPassword

{
  "passwordCredential": {
    "displayName": "Mypassword",
    "endDateTime": "2020-12-31T12:00:00Z"
  }
}