Unable to remove apps installed by admin via setup policies globally using Microsoft Graph API

Neelu George 0 Reputation points
2024-10-21T14:55:17.55+00:00

Getting this error while trying to uninstall a teams bot using Graph API.
https://graph.microsoft.com/v1.0/users/{{user-id}}/teamwork/installedApps/{{app_installation_id}}

"Trying to RemoveUserAppEntitlement for an App that is explicitly preinstalled by the tenant admin."

This API was working till I added my app to Installed Apps in Setup Policies.

Is there a way to delete such admin installed apps via Graph API

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,190 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vasil Michev 106.7K Reputation points MVP
    2024-10-21T16:04:02.15+00:00

    As the error message suggests, you will have to remove the app from the setup policy first, which unfortunately is not currently doable via the Graph API.

    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.