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

Microsoft Teams | Development
Microsoft Teams | Development
Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs
Microsoft Security | Microsoft Graph
Microsoft Teams | Microsoft Teams for business | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Sayali-MSFT 4,776 Reputation points Microsoft External Staff Moderator
    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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.