08-23-2022 08:45 AM - last edited on 08-25-2022 10:00 AM by ErikT
Hi,
Is it possible to make a report, to see new members in a group?
I use this script below to get a report of "Domain admins" members... but I would like to only see new members
Select Top 1000000 tblADusers.Username,
tblADusers.Userdomain,
tblADusers.Firstname,
tblADusers.Lastname,
tblADusers.Name,
tblADusers.Displayname,
tblADGroups.Name As [Group]
From tblADMembership
Inner Join tblADusers On tblADMembership.ChildAdObjectID =
tblADusers.ADObjectID
Inner Join tblADGroups On tblADMembership.ParentAdObjectID =
tblADGroups.ADObjectID
Where tblADGroups.Name = 'Domain Admins'
Order By tblADusers.Userdomain,
tblADusers.Username
09-22-2022 10:20 AM
Now i just need this to work 🙂
08-25-2022 10:01 AM - edited 08-25-2022 10:30 AM
@Ken1 I updated the Label to Report Center as your question will likely get more traction there.
How will you distinguish the new users from existing users?
eg. You check for all users that have been changed in the last 7 days
Select Top 1000000 tblADusers.Username,
tblADusers.Userdomain,
tblADusers.Firstname,
tblADusers.Lastname,
tblADusers.Name,
tblADusers.Displayname,
tblADGroups.Name As [Group],
tblADusers.whenCreated,
tblADusers.whenChanged
From tblADMembership
Inner Join tblADusers On tblADMembership.ChildAdObjectID =
tblADusers.ADObjectID
Inner Join tblADGroups On tblADMembership.ParentAdObjectID =
tblADGroups.ADObjectID
Where tblADGroups.Name = 'Domain Admins' And tblADusers.whenChanged Between
GetDate() - 7 And GetDate()
Order By tblADusers.Userdomain,
tblADusers.Username
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now