→ 🚀Are you a Lansweeper Champion?! Join our Contributor Program Sign up here!

Community FAQ
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
klax
Engaged Sweeper
Hello,

i need a custom report with all active directory groups and users/groups assigned to them.

Thanks you in advance for your help.
1 ACCEPTED SOLUTION
Hemoco
Lansweeper Alumni
Hi,

Can you try to use the following report:
Select Distinct Top 1000000 tblADGroups.Name,
tblADGroups.Description,
tblADusers.Username,
tblADusers.Userdomain,
tblADusers.Displayname
From tblADGroups
Inner Join tblADMembership On tblADMembership.ParentAdObjectID =
tblADGroups.ADObjectID
Inner Join tblADusers
On tblADusers.ADObjectID = tblADMembership.ChildAdObjectID


To use the report above, do the following:
• Open the report builder under Reports/Create New Report.
• Paste the SQL code we provided at the bottom of the page.
• Left-click somewhere in the upper section of the page so the code applies.
• Give the report a Title and hit the Save & Run button to save it. Export options are listed on the left.

View solution in original post

1 REPLY 1
Hemoco
Lansweeper Alumni
Hi,

Can you try to use the following report:
Select Distinct Top 1000000 tblADGroups.Name,
tblADGroups.Description,
tblADusers.Username,
tblADusers.Userdomain,
tblADusers.Displayname
From tblADGroups
Inner Join tblADMembership On tblADMembership.ParentAdObjectID =
tblADGroups.ADObjectID
Inner Join tblADusers
On tblADusers.ADObjectID = tblADMembership.ChildAdObjectID


To use the report above, do the following:
• Open the report builder under Reports/Create New Report.
• Paste the SQL code we provided at the bottom of the page.
• Left-click somewhere in the upper section of the page so the code applies.
• Give the report a Title and hit the Save & Run button to save it. Export options are listed on the left.

Reports & Analytics

Ask about reports you're interested in and share reports you've created. Subscribe to receive daily updates of reports shared in the Community.

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now