Community FAQ
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jons115
Engaged Sweeper
I am looking to create two reports, one that shows only domain administrators and another showing all domain users, which also shows if the users are disabled.
Thanks for your help regarding this.
1 ACCEPTED SOLUTION
Hemoco
Lansweeper Alumni
jons115 wrote:
which also shows if the users are disabled

Lansweeper does not store this information in the database, so you cannot report on it. For the remaining data, please use the reports below.

All domain users
Select * from tbladusers

Domain administrators
Select Top 1000000 tblADusers.Username,
tblADusers.Userdomain,
tblADusers.Firstname,
tblADusers.Lastname,
tblADusers.Name,
tblADusers.Displayname
From tblADusers
Inner Join tblUsersInGroup On tblUsersInGroup.Username = tblADusers.Username
And tblUsersInGroup.Domainname = tblADusers.Userdomain
Where tblUsersInGroup.Admingroup = 1

View solution in original post

1 REPLY 1
Hemoco
Lansweeper Alumni
jons115 wrote:
which also shows if the users are disabled

Lansweeper does not store this information in the database, so you cannot report on it. For the remaining data, please use the reports below.

All domain users
Select * from tbladusers

Domain administrators
Select Top 1000000 tblADusers.Username,
tblADusers.Userdomain,
tblADusers.Firstname,
tblADusers.Lastname,
tblADusers.Name,
tblADusers.Displayname
From tblADusers
Inner Join tblUsersInGroup On tblUsersInGroup.Username = tblADusers.Username
And tblUsersInGroup.Domainname = tblADusers.Userdomain
Where tblUsersInGroup.Admingroup = 1

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