Trying to install a custom teams app returns 403 response

dan.schtechel 0 Reputation points
2024-11-20T17:32:57.8166667+00:00

I created a Teams app, uploaded it to the organizations catalog, added it to the org global policy and am now trying to install it for a user using a POST to

https://graph.microsoft.com/v1.0/users/{userId}/teamwork/installedApps/

the response i'm getting is

{
        "code": "Forbidden",
        "message": "App is blocked by app permission policy. TenantId: xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx, UserObjectId: xxxxxxx-xxxx-xxxx-xxxx-xxxxxxx, AppId: xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx, AppType: Private"
}

I tried downloading a different app with the same token and it worked fine.

I can't seem to find any documentation regarding this error and it is not verbose enough to debug as it is, I have tried creating a new setup policy, add the app to the pinned apps on the org-wide policy and add it manually to a user, but nothing work.

I would very much appreciate any insight on this one

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
852 questions
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,388 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,370 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,369 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sayali-MSFT 2,906 Reputation points Microsoft Vendor
    2024-11-21T08:15:00.3833333+00:00

    Hello @dan.schtechel,
    Thank you for your inquiry about your Teams app development issue!
    We are currently unable to reproduce the issue you’re experiencing.

    The Manage apps page is where you allow or block individual apps at the org level. When you block or allow an app on the Manage apps page, that app is blocked or allowed for all users in your organization. When you block or allow an app in a Teams app permission policy, it's blocked or allowed for users who are assigned that policy.

    Document Reference: https://docs.microsoft.com/en-us/microsoftteams/teams-app-permission-policies#user-experience

    Screenshot 2024-11-21 133546

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.