Multi-Tenant Teams App requires admin approval in tenant 2 but not tenant 1.

Daniel O'Sullivan 40 Reputation points
2023-08-08T12:02:39.6133333+00:00

I have developed a multi-tenant Microsoft Teams tab app that is registered in Tenant 1 (where it was initially created). Interestingly, the app doesn't require admin approval in Tenant 1, but it does require admin approval when deployed to Tenant 2. I'm trying to figure out why this is happening, as I need to distribute this app across multiple tenants without requiring admin approval each time.

The app was registered using a multi-tenant Azure AD app registration. I have registered a verified domain and updated all references in my code from '/(my domain ID)' to '/common'.

The permission scopes I'm using are:

"User.Read",

"AppCatalog.Read.All",

"User.ReadBasic.All",

"Calendars.ReadWrite",

"OnlineMeetings.ReadWrite",

"People.Read".

In Tenant 2, I have ensured that the setting 'All users can consent for any app to access the organisation's data' is enabled.

Despite these settings, the app still requires admin approval when deployed to Tenant 2. Am I missing something in my configuration? Are there other factors that could cause the app to require admin approval in Tenant 2 but not in Tenant 1? Any suggestions to resolve this issue would be greatly appreciated.

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,894 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,057 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,812 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
24,194 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Daniel O'Sullivan 40 Reputation points
    2023-08-17T08:05:15.4933333+00:00

    The issue was that I needed to add a verified publisher MPN id to the Azure AD multi-tenant app registration. I still haven't done this yet as I'm having some issued with separate domain tenants but I have been informed this is what was causing the admin consent issue.

    1 person found this answer helpful.

  2. Nivedipa-MSFT 3,536 Reputation points Microsoft External Staff
    2023-08-09T06:26:17.2833333+00:00

    @Daniel O'Sullivan - Could you please verify the following scenarios:

    1. Check if your app requires any custom permissions that might not be covered by the 'All users can consent' setting. Some permissions might still require admin approval, even with this setting enabled."
    2. "Even with the 'All users can consent' setting enabled, specific organization policies might still prevent certain permissions from being granted without admin approval. Please verify if Tenant 2 has any additional policies in place."
    3. "Could you please test the app's behavior using different user accounts in both Tenant 1 and Tenant 2? Sometimes, differences in user roles can affect how permissions and consent are requested."

    Thanks,
    Nivedipa


    If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.

    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.