简体   繁体   English

授予Azure AD组访问SQL Server

[英]Grant Azure AD group to access SQL Server

We are trying to grant a Azure AD group to one of our SQL Server Database. 我们正在尝试将Azure AD组授予我们的SQL Server数据库之一。 When try to run the script 尝试运行脚本时

CREATE USER [Group Name] FROM EXTERNAL PROVIDER WITH DEFAULT_SCHEMA = [dbo];

The SSMS is giving an error SSMS出现错误

Principal 'Group Name' could not be found or this principal type is not supported. 找不到主体“组名”或不支持此主体类型。

We tried with a different group name without spaces in the name. 我们尝试使用其他组名,但名称中没有空格。 That worked. 那行得通。

Can somebody let us know what is going wrong? 有人可以让我们知道发生了什么事吗?

Regards, 问候,

John 约翰

Make sure you are using the Security Group Display Name instead of an alias. 确保您使用的是安全组显示名称,而不是别名。 Make sure also to download the latest version of SQL Server Management Studio from here . 确保还从此处下载最新版本的SQL Server Management Studio。

I suggest to enter a support case. 我建议输入支持案例。 In the meantime use your workaround w/o spaces 同时,使用没有空间的解决方法

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM