[英]GraphAPI returns BadGateway for Teams App Unistall call
We use the GraphAPI to unistall the Teams app for a user.我们使用 GraphAPI 为用户卸载 Teams 应用程序。 It works for some tenant, for other - it doesn't.它适用于某些租户,也适用于其他租户 - 它没有。
DELETE https://graph.microsoft.com/v1.0/users/820b339e-5fbd-404e-a37f-fc0813689c83/teamwork/installedApps/ODIwYjMzOWUtNWZiZC00MDRlLWEzN2YtZmMwODEzNjg5YzgzIyMzMmQ1ODYxZi0xYmQxLTRjZDEtOTE5Yi1iZDdjNTA4MWIzNjY= DELETE https://graph.microsoft.com/v1.0/users/820b339e-5fbd-404e-a37f-fc0813689c83/teamwork/installedApps/ODIwYjMzOWUtNWZiZC00MDRlLWEzN2YtZmMwODEzNjg5YzgzIyMzMmQ1ODYxZi0xYmQxLTRjZDEtOTE5Yi1iZDdjNTA4MWIzNjY=
It returns the following error without any additionall details: Code: BadGateway它返回以下错误,没有任何其他详细信息:代码:BadGateway
Message: Failed to execute backend request.消息:无法执行后端请求。
Inner error:内部错误:
AdditionalData:附加数据:
date: 2022-01-12T10:04:08日期:2022-01-12T10:04:08
request-id: ffa520f4-b6ef-485d-811f-cc92e2e490a9请求 ID:ffa520f4-b6ef-485d-811f-cc92e2e490a9
client-request-id: ffa520f4-b6ef-485d-811f-cc92e2e490a9客户端请求 ID:ffa520f4-b6ef-485d-811f-cc92e2e490a9
ClientRequestId: ffa520f4-b6ef-485d-811f-cc92e2e490a9 ClientRequestId:ffa520f4-b6ef-485d-811f-cc92e2e490a9
We use the Net SDK to GraphAPI to send the request.我们使用 Net SDK 到 GraphAPI 来发送请求。 Looks everything is OK with request as it is successfully executed for some tenant, for other - it doesn't.请求看起来一切正常,因为它已为某些租户成功执行,对于其他租户 - 它没有。 All required permissions are granted in Azure AD app.在 Azure AD 应用程序中授予所有必需的权限。
Is it possible to check more error details for request-id: ffa520f4-b6ef-485d-811f-cc92e2e490a9 on Microsoft side?是否可以在 Microsoft 方面检查 request-id: ffa520f4-b6ef-485d-811f-cc92e2e490a9 的更多错误详细信息?
It seems you are trying to remove preInstalled app which is preInstalled by Admin.您似乎正在尝试删除由管理员预安装的预安装应用程序。 Below is the internal error:以下是内部错误:
ODataExceptionFilter is handling an exception. ODataExceptionFilter 正在处理异常。 Exception type: AppIsTenantAdminPreinstalled.异常类型:AppIsTenantAdminPreinstalled。 Exception details: Microsoft.SkypeSpaces.MiddleTier.Common.Exceptions.ProviderException: Trying to RemoveUserAppEntitlement for an App that is explicitly preinstalled by the tenant admin.异常详细信息:Microsoft.SkypeSpaces.MiddleTier.Common.Exceptions.ProviderException:尝试删除租户管理员明确预安装的应用程序的用户应用权限。 at Microsoft.SkypeSpaces.MiddleTier.Provider.Apps.AppDefinitionItemExtensions.d__48.MoveNext() in D:\a_work\1\s\Source\Provider\Provider\Apps\ObjectExtensions\AppDefinitionItemExtensions.cs:line 1638在 Microsoft.SkypeSpaces.MiddleTier.Provider.Apps.AppDefinitionItemExtensions.d__48.MoveNext() 在 D:\a_work\1\s\Source\Provider\Provider\Apps\ObjectExtensions\AppDefinitionItemExtensions.cs:line 1638
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.