Forum Discussion

Sathish Perugu's avatar
Sathish Perugu
Copper Contributor
Sep 17, 2018
Solved

Office 365 Users who are not a member of any group

Hi,

 

I want to get (Powershell & GUI) the users who are not included in any one of the my office 365 groups (Ex: ind_sol, indian_all_employees,client_sol, BD-internal groups)

6 Replies

  • Well, define groups? If you only care about Exchange groups, this script will go over the list of users, generate a report of the group membership for each of them, and export to CSV file, where you can easily filter out "empty" values (when a user is not a member of any group).

     

    As the script runs Exchange Remote PowerShell, it will only include groups Exchange "knows" about, such as DGs, mail-enabled SGs and "modern" Office 365 groups. If you want to include "regular" security groups as well, you will need to query Azure AD directly.