→ The Lansweeper Customer Excellence Awards 2024 - Submit Your Project Now! Learn More & Enter Here

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