Surabhi MS
Surabhi MS

Reputation: 31

Application has not been installed by the administrator of the tenant or consented to by any user in the tenant. Authentication error

enter image description here

Error while connecting an azure bot to the server.

Upvotes: 3

Views: 25706

Answers (2)

Konstantin Grigorov
Konstantin Grigorov

Reputation: 1622

TL;DR

Surprise, surprise the error is actually stating what the problem is. You either try to reach the wrong tenant or your app is not registered.

That being said, where can you find the Tenant ID?

Open the Azure Portal, then using the search functionality navigate to Active Directory. There under Overview you should find the Tenant ID.

enter image description here

If you are using GitHub Actions and Terraform such as myself. You would need to set the following line in your .yml file.

env:

  ARM_TENANT_ID: ${{ secrets.AZURE_AD_TENANT_ID }}

There should also be a secret named AZURE_AD_TENANT_ID in your GitHub repository.

enter image description here

enter image description here

enter image description here

Upvotes: 0

Harshitha Veeramalla
Harshitha Veeramalla

Reputation: 1743

  • Check the Guest user settings Navigate to the Azure Active Directory in tenant A (Admin) -> User settings -> Manage external collaboration settings
    set Guest users permissions are limited to No

enter image description here

Navigate to the Azure Active Directory in tenant A (Admin) -> Enterprise applications -> User settings
set Users can consent to apps accessing company data on their behalf to Yes.

enter image description here

Please refer about the member user and guest user and Solution for the similar issue for more information

Upvotes: 3

Related Questions