
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-11-2015 03:13 PM
Hello,
I would like to find users that are not part of some Active Directory group and exclude some users from report.
exemple: users that are not in AD "group1" and exclude administrators.
Thank you.
I would like to find users that are not part of some Active Directory group and exclude some users from report.
exemple: users that are not in AD "group1" and exclude administrators.
Thank you.
Solved! Go to Solution.
Labels:
- Labels:
-
Report Center
1 ACCEPTED SOLUTION

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2015 02:19 PM
You might use a report like the following example:
Select Top 1000000 tblADusers.Username,
tblADusers.Firstname,
tblADusers.Lastname,
tblADusers.Displayname
From tblADusers
Where tblADusers.Username Not Like 'admin %' And tblADusers.ADObjectID Not In
(Select tblADMembership.ChildAdObjectID
From tblADMembership Inner Join tblADGroups On tblADGroups.ADObjectID =
tblADMembership.ParentAdObjectID
Where tblADGroups.Name Like 'group1 %')
Order By tblADusers.Username
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2015 02:19 PM
You might use a report like the following example:
Select Top 1000000 tblADusers.Username,
tblADusers.Firstname,
tblADusers.Lastname,
tblADusers.Displayname
From tblADusers
Where tblADusers.Username Not Like 'admin %' And tblADusers.ADObjectID Not In
(Select tblADMembership.ChildAdObjectID
From tblADMembership Inner Join tblADGroups On tblADGroups.ADObjectID =
tblADMembership.ParentAdObjectID
Where tblADGroups.Name Like 'group1 %')
Order By tblADusers.Username
