{"id":17348029,"url":"https://github.com/cnotin/m365_groups_enum","last_synced_at":"2025-04-14T20:31:29.752Z","repository":{"id":149792155,"uuid":"343170932","full_name":"cnotin/m365_groups_enum","owner":"cnotin","description":"Enumerate Microsoft 365 Groups in a tenant with their metadata","archived":false,"fork":false,"pushed_at":"2021-03-02T12:46:30.000Z","size":101,"stargazers_count":52,"open_issues_count":0,"forks_count":16,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T09:03:16.698Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cnotin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-02-28T17:42:31.000Z","updated_at":"2024-08-12T20:10:46.000Z","dependencies_parsed_at":"2023-06-02T16:00:23.255Z","dependency_job_id":null,"html_url":"https://github.com/cnotin/m365_groups_enum","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnotin%2Fm365_groups_enum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnotin%2Fm365_groups_enum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnotin%2Fm365_groups_enum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnotin%2Fm365_groups_enum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cnotin","download_url":"https://codeload.github.com/cnotin/m365_groups_enum/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248955560,"owners_count":21189164,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T16:50:52.452Z","updated_at":"2025-04-14T20:31:28.827Z","avatar_url":"https://github.com/cnotin.png","language":"Python","readme":"# Enumerate Microsoft 365 Groups in a tenant with their metadata\n\n\u003cimg src=\"m365-groups-logo.png\" width=\"200px\" height=\"200px\" alt=\"\" /\u003e\n\n## Description\nThe `all_groups.py` script allows to enumerate all Microsoft 365 Groups in a Azure AD tenant with their metadata:\n* name\n* visibility: public or private\n* description\n* email address\n* owners\n* members\n* Teams enabled?\n* SharePoint URL (e.g. for Teams shared files)\n\nAll of this, even for private Groups!\nRead more about this on my blog article [\"Risks of Microsoft Teams and Microsoft 365 Groups\"](https://clement.notin.org/blog/2021/03/01/risks-of-microsoft-teams-and-microsoft-365-groups/)\n\nThe `reporting.py` script will take the JSON output from `all_groups.py` and generates a CSV files allowing to quickly identify sensitive private or public groups.\n\n## Installation\nRequirement: ![Python 3 only](https://img.shields.io/badge/python-3.6+-blue.svg)\n\n1. Download the repository\n2. Install requirements with\n```console\npip install -r requirements.txt\n```\n\n## Usage\nYou will need a valid account on the tenant. Different authentication methods are supported:\n* via login + password (MFA not supported)\n```console\npython all_groups.py -u myuser@example.onmicrosoft.com -p MyPassw0rd\n```\n\n* via device authentication, which supports MFA via the browser. Launch then follow instructions\n```console\npython all_groups.py --device-code\n```\n\nOther methods are also offered. You can read the [ROADTools documentation](https://github.com/dirkjanm/ROADtools/wiki/Getting-started-with-ROADrecon#authentication) or run the script without any argument to get help.\n```console\npython all_groups.py\n```\n\nThat's all, you don't need more options! The script output will be in `all_groups.json` in the current directory.\n\nThen, if you want a nicer and more concise output from this JSON, use `reporting.py` to transform it:\n```console\npython reporting.py\n```\nIt automatically takes `all_groups.json` in the current directory, and outputs to `all_groups.csv` in the same directory. \n\n## Acknowledgements\nThis project uses for authentication the very helpful [roadlib](https://pypi.org/project/roadlib/) from [ROADTools](https://github.com/dirkjanm/ROADtools) by @dirkjanm\n","funding_links":[],"categories":["Operating Systems"],"sub_categories":["Windows"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcnotin%2Fm365_groups_enum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcnotin%2Fm365_groups_enum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcnotin%2Fm365_groups_enum/lists"}