简体   繁体   English

GraphAPI 为 Teams App Unistall 调用返回 BadGateway

[英]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.

相关问题 在 Microsoft Teams 应用程序中访问通话记录 - Access call history in app for Microsoft Teams 在 GraphAPI 中创建团队总是返回 null - Create team in GraphAPI returns always null Microsoft Teams 订阅电话 - Microsoft Teams subscription call 在 MS Teams 中创建新团队时,我们如何从 MS Teams 触发事件(并调用外部应用程序)? - How can we trigger an event from MS Teams (and call an external app) when a new team is created in MS Teams? GraphAPI 返回“Resource Not Found”试图获取电子邮件列表 - GraphAPI returns “Resource Not Found” trying to get email list 如何使用控制台应用程序通过 Microsoft Graph API 调用 Microsoft Teams OnlineMeeting 端点? - How do I Call Microsoft Teams OnlineMeeting endpoints via Microsoft Graph API using a console app? Microsoft GraphAPI 403 在 SPfx 应用程序中获取用户事件时出错 - Microsoft GraphAPI 403 error getting users' events in SPfx app 尝试以编程方式创建团队呼叫 - Trying to create a Teams Call Programmatically Microsoft Teams 在 Teams 中主动安装应用 - Microsoft Teams proactive app installation in Teams 我想使用代理用户的密码和 email 地址从本地主机为 GraphApi 创建 Microsoft Teams 频道 - I want to create a Microsoft Teams channel for GraphApi from my local host using the password and email address of the surrogate user
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM