title: Export all Azure AD groups and their members (PowerShell)
body: <p>I have seen many threads on exporting groups and getting members, but strangely not both. Basically I need a .csv file or similar with every AD group and its corresponding members.</p>
  <p>I believe it needs to be done from Azure as we have multiple domains and Office 365/incloud groups (Azure AD has all of these listed).</p>
  <p>So I don't think there is another way to export our groups to a single CSV file.</p>