Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
mchohan
Starting Member
39 Posts |
Posted - 2010-06-10 : 05:28:40
|
| Hi,How can I get the Groups all users belong to in AD? I've got this far which works, but need to get group information.Any ideas welcome :)Thanks.SELECT *FROM OPENQUERY(ADSI,'SELECT dc,member, objectGUID,samAccountName, givenName, sn, legacyExchangeDN FROM ''LDAP://xxx.local'' WHERE objectClass=''Person'' AND objectClass = ''User''') WHERE givenName IS NOT NULL |
|
|
|
|
|