This is just a quick post about a simple why to find out what members are in an Active directory group.
EXEC master.dbo.xp_logininfo'MyDomain\MyGroup','members'
This will tell you what groups a user is in:
EXEC master.dbo.xp_logininfo‘MyDomain\MyUser’,‘all’
[…] there are other ways to do this. Andrea Allred(b/t), for example, recently posted about using xp_logininfo to find AD information. This method is great but does require some external (AD) permissions that I don’t actually […]
[…] there are other ways to do this. Andrea Allred(b/t), for example, recently posted about using xp_logininfo to find AD information. This method is great but does require some external (AD) permissions that I don’t actually […]
[…] https://royalsql.com/2013/08/05/the-fairytale-girls-in-deep-distress-and-had-to-query-acitve-director… […]