How to report all security group members of an Active Directory organizational unit

Recently, a customer required a weekly report on security groups within a specific Active Directory organizational unit (OU) and their associated members. Oh, and they did NOT want to use PowerShell!

That got me thinking: How might admins report on an OU using Microsoft’s native tools versus a stress-free tool like sapio365? This article covers hybrid Active Directory + Entra scenarios, nested membership, and export/scheduling needs.

Solution 1: Using Microsoft Office 365 Built-in Tools

Managing security groups in an Active Directory organizational unit is pretty straightforward with built-in tools, but each has its limitations and a learning curve. Whether you use ADUC, the Microsoft 365 admin centers, or PowerShell, each gives you a different mix of control, ease, and complexity.

Active Directory Users and Computers (ADUC)

In Active Directory Users and Computers (ADUC), you can filter groups and export names, but not members, and you must open groups one by one; no nested resolution, and no export schema that auditors want.

Just head to your Active Directory organizational unit and:

  1. Apply a filter to list only groups in that OU.
  2. Look up each group’s properties manually to get its members.

This process can become tedious if your organizational unit includes many groups or nested structures.

Look up members of security groups in an OU in the ADUC interface.

Note that you can only export the list from the left-side panel.

Export the list of security groups in an OU from the ADUC.

Another caveat is that you won’t be able to export the list of members for each group. You’ll need PowerShell for that (see next section).

Microsoft 365 Admin Centers

If you’re just tracking security groups that sync to Entra from your Active Directory organizational unit, the Microsoft 365 admin centers can help.

However, expect a few caveats:

  • Both the general Microsoft 365 admin center (A) and the Entra admin center (B) show a list of security groups, but do not include OU information.
  • Only the Entra admin center lets you filter to show syncing security groups—but these filters skip mail-enabled security groups.
  • In both admin centers, you must open a group to view its members.
Listing security groups in the general Microsoft 365 admin center (A) and in the Entra admin center (B).

PowerShell

Here are simple PowerShell cmdlets for listing security groups in the OU “Accounts” and each group’s members, with results shown in the image that follows:

  1. List all groups in the OU: Get-ADGroup -Filter * -SearchBase “OU=Accounts,DC=company,DC=com”
  2. List a group’s members: Get-ADGroupMember -Identity group.ID

For nested groups, see more parameter examples on Microsoft’s docs page .

Using PowerShell cmdlets to list security groups in an OU (1) and list members of a group (2).

Not everyone is comfortable using PowerShell, or simply doesn’t have the time to script. Lucky for them, sapio365 is an excellent alternative tool, as you’ll see in the next section.

Solution 2: Try sapio365 for Quick Reports

Let’s explore how sapio365 makes reporting on your Active Directory organizational unit completely painless. Gain a comprehensive view of all cloud and on-premises groups within your Active Directory organizational unit, including their associated properties. Filter just what you need and export member information in a snap.

See a global picture of all groups and their properties

sapio365 displays both cloud and on-premises groups in a unique way by reconciling 100 group properties in Entra and ALL group properties in Active Directory for each synced group. This comprehensive view enables you to quickly locate the information you’re looking for, including the sync status of groups, group type, OU, and other relevant details.

See Entra and on-premises Active Directory groups and their properties in one place in sapio365.

Isolate security groups and customize the view

sapio365’s filters make it easy to zoom in on security groups from your chosen OU. Save the perfect view for next time.

Here are 3 easy steps in sapio365 to list all the security groups in the OU ‘Accounts.’

The screenshot illustrates these steps in action:

  1. Filter security groups on the group type.
  2. Filter for the specific OU.
  3. Save this custom view to use for recurrent reporting on that OU.
Customize a view of on-premises security groups using various filters.

List and export security group members

Once you’ve filtered the right OU groups in sapio365, simply:

  1. Select all groups and get the list of each group’s on-prem members.
  2. You can even expand any nested groups there to get the complete picture of all group members.
  3. (optional) Save the view or export it to an Excel file for a ready-to-send report.

I’ll show you shortcuts later to the views you’ve saved and how to use them in automated reports.

Retrieving members of an Organizational Unit’s security groups in one click.

Fix, preview and save membership changes

Finally, if your group memberships need fixing along the way, you can remove or add members across various groups in Active Directory in just one click, and you can preview everything before saving (highlighted in green in the image below).

Preview changes to group membership before saving them.

Set up security group weekly reports in sapio365

If you want regular reports for your Active Directory organizational unit, sapio365 lets you automate emails and scheduled reports based on your saved views.

The following image demonstrates sapio365’s reporting options:

  1. Generate or email real-time group membership data with one click.
  2. Schedule sapio365 to email the report every week.
Schedule your customized security group members report with sapio365.

As you can see, sapio365 makes group reporting (and fixing!) much easier. Here’s a quick comparison table between Microsoft native tools and sapio365.

Feature ADUC Admin Centers PowerShell sapio365
Filter by OU YesLimitedYesYes
Export Group List YesYesYesYes
Export Group Members NoNoYesYes
Handle Nested Groups NoNoYes (recursive) Yes
Bulk Actions (Add/Remove Members) NoNoScriptedYes
Custom Views with User Properties NoNoScriptedYes
Scheduled/Automated Reports NoNoScriptedYes
Ease of Use Moderate EasyAdvancedEasy

In summary, reporting on security groups within an Active Directory organizational unit is challenging with built-in tools, especially for large or complex setups. sapio365 makes life a lot easier. Take a few minutes to set up automated reports, and you’ll always have the info you need when you need it.

Ready to keep your environment secure and up-to-date? Try out sapio365 and see how quickly you can stay on top of your security group memberships.


Sonia Bounardjian

Sonia is a sapio365 product specialist at Ytria. She was part of the initial development team that created sapio365. When she's not busy helping sapio365 users virtually or writing helpful articles in this blog, she's reorganizing her impressive collection of unused high heels.