Check users in a security group in SQL Server

前端 未结 6 2076
情歌与酒
情歌与酒 2020-12-30 04:42

In the Security/Users folder in my database, I have a bunch of security groups, include \"MyApplication Users\". I need to check if I am (or another user is) in this group,

6条回答
  •  南笙
    南笙 (楼主)
    2020-12-30 05:21

    To find the AD Group members in the Instance, we can use below query:

    xp_logininfo 'DomainName\AD_GroupName', 'members'
    

    By using this query, we can find the below states.

    account name, type, privilege, mapped login name, permission path
    

提交回复
热议问题