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
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.
发布评论
评论(2)
导航到租户A(Admin) - &GT中的
Azure Active Directory
;用户设置
- >管理外部协作设置
SET
访客用户权限
nopentant a(admin)中的
Azure Active Directory
>企业应用程序
- >用户设置
SET
用户可以同意代表其数据访问公司数据的应用程序
是是
。请参阅关于会员用户和访客用户和用于类似问题的解决方案有关更多信息
Navigate to the
Azure Active Directory
in tenant A (Admin) ->User settings
->Manage external collaboration settings
set
Guest users permissions are limited
toNo
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
toYes
.Please refer about the member user and guest user and Solution for the similar issue for more information
TL; Dr
Surprion,惊喜的错误实际上是在说出问题是什么。您要么尝试与错误的租户联系,要么未注册您的应用程序。
话虽如此,您在哪里可以找到租户ID ?
打开 Azure Portal ,然后使用搜索功能导航到 Active Directory 。 概述您应该找到租户ID 。
如果您正在使用 github Action 和 Terraform ,例如我自己。
您需要在 .yml 文件中设置以下行。
您的github存储库中还应有一个名为 azure_ad_tenant_id 的秘密。
/I.sstatic.net/jpuuy.png“ alt =”在此处输入图像描述”>
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.
If you are using GitHub Actions and Terraform such as myself.
You would need to set the following line in your .yml file.
There should also be a secret named AZURE_AD_TENANT_ID in your GitHub repository.