我能够通过遵循Creating Azure AD application and a service principal using .NET Core (the API and HTTP)中提供的信息来注册应用程序,但是当我使用Postman尝试以下端点时,出现了权限不足错误。
由于我能够使用API创建应用,因此我认为这不是权限问题。
POST https://graph.windows.net/{{tenant_id}}/servicePrincipals?api-version=1.6
这样的人:
{
"appId":"eb167a6d-aaaa-aaaa-aaaa-46e981be37fa"
}
并收到此错误
{
"odata.error": {
"code": "Authorization_RequestDenied",
"message": {
"lang": "en",
"value": "Insufficient privileges to complete the operation."
}
}
}