→ 🚀What's New? Explore Lansweeper's Fall 2024 Updates! Fall Launch Blog !
04-12-2024 03:05 PM
Hello,
i am trying to create a report which lists all users who are in both groups.
Im not an sql expert, maybe someone of you has an idea how i could create the report? 🙂
Here is what i have tried:
Select Top 1000000 tblADusers.Userdomain,
tblADusers.Username,
tblADusers.Name,
tblADusers.OU,
tblADusers.Lastchanged,
tblADusers.whenCreated,
tblADusers.IsEnabled,
tblADusers.LockoutDate,
tblADusers.PasswordLastSet,
tblADusers.PasswordRequired
From tblADusers
Where (tblADusers.IsEnabled = 'True' And tblADusers.ADObjectID In (Select
tblADMembership.ChildAdObjectID
From tblADMembership Inner Join tblADGroups On tblADGroups.ADObjectID =
tblADMembership.ParentAdObjectID
Where tblADGroups.Name = 'G_1')) Or
(tblADusers.ADObjectID In (Select tblADMembership.ChildAdObjectID
From tblADMembership Inner Join tblADGroups On tblADGroups.ADObjectID =
tblADMembership.ParentAdObjectID
Where tblADGroups.Name = 'G_2'))
Solved! Go to Solution.
04-12-2024 04:43 PM
Try replace or to and
04-12-2024 04:43 PM
Try replace or to and
04-15-2024 07:14 AM
Thank you! I guess i didn't pay attention.
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now