Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Is_Rolemember with AD group

$
0
0
We are using a Windows AD group to control access to login and to a certain DBThe login works perfect, anyone in the group can use a trusted connection and login.The problem is we assigned a User Defined Role to the Group. When we check if a user has that role using is_rolemember proving only 1 parameter that specifices the Role, it returns 0If I add the second parameter and use the AD group name as the principle it works and returns 1.However, we dont want to control the name of the AD groupusers of our software can choose the AD group name . I just want to see of the user that logged in has that role, via a AD groupAny help is appreciatedThanksRichard

Viewing all articles
Browse latest Browse all 3145

Trending Articles