OfficeDev / microsoft-teams-apps-company-communicator

Company Communicator app template
MIT License
329 stars 403 forks source link

Grant Consent failed #253

Closed alfredolepuf closed 3 years ago

alfredolepuf commented 3 years ago

While granting consent for API permissions with a Global Admin user the system cannot grant access for the application permission.

There is also a warning about verified publishers for multitenant apps that started on November 9th. 2020, which I don't know if have any impact in this app.

Screen Shot 11-25-20 at 09 03 AM 001

juna-gupta commented 3 years ago

@alfredolepuf It looks like the signed-in user is not a Global administrator in the tenant. Did you try sign-in with an admin account?

Alternatively you could prepare a link - https://login.microsoftonline.com/common/adminconsent?client_id=%appId%. Replace the %appId% with the Application (client) ID of Microsoft Teams bot app and share with the global administrator to grant the requested permissions.

Refer to this section for more details.

HunaidHanfee-MSFT commented 3 years ago

Hello @alfredolepuf , You need to be Global administrator to consent these permissions. Please make sure that you are using Global Admin account.

To confirm this please follow these steps-

  1. Navigate to portal.azure.com.
  2. Sign-in with the account
  3. Search or select Users. image
  4. Search Admin by the name or email and open the profile.
  5. Select and check Assigned roles in left menu.
  6. It should be like image below image

Else You can follow the steps mentioned by @juna-gupta. Its in Deployment Guide step 4.4.

Let us know if issue persists. Thanks