> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List All Teams

List all the groups available in an organization, excluding dynamic distribution groups.

* **Least Privileged** Microsoft Graph permission to access the action via **App Registration**: `GroupMember.Read.All`.
* **Higher privileged** Microsoft Graph permission to access the action via **App Registration**: `User.ReadWrite.All`, `Directory.Read.All`, `Group.ReadWrite.All`.

<Note>
  External Documentation

  To learn more, visit the [Microsoft Teams documentation](https://learn.microsoft.com/en-us/graph/api/group-list?view=graph-rest-1.0).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter        | Description                                                                          |
  | ---------------- | ------------------------------------------------------------------------------------ |
  | Filter           | Filters results (rows). For example: resourceProvisioningOptions/Any(x:x eq 'Team'). |
  | Limit            | Specify the number of teams returned per page in the response. Valid range is 1-999. |
  | Return All Pages | Automatically fetch all resources, page by page.                                     |
</div>

## Example Output

```json theme={"dark"}
{
	"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#groups",
	"value": [
		{
			"id": "02bd9fd6-8f93-4758-87c3-1fb73740a315",
			"deletedDateTime": null,
			"classification": null,
			"createdDateTime": "2020-02-04T09:44:33",
			"creationOptions": [
				"<string>"
			],
			"description": "Welcome to the HR Taskforce team.",
			"displayName": "HR Taskforce",
			"expirationDateTime": null,
			"groupTypes": [
				"Unified"
			],
			"isAssignableToRole": null,
			"mail": "<string>",
			"mailEnabled": true,
			"mailNickname": "HRTaskforce",
			"membershipRule": null,
			"membershipRuleProcessingState": null,
			"onPremisesDomainName": null,
			"onPremisesLastSyncDateTime": null,
			"onPremisesNetBiosName": null,
			"onPremisesSamAccountName": null,
			"onPremisesSecurityIdentifier": null,
			"onPremisesSyncEnabled": null,
			"preferredDataLocation": null,
			"preferredLanguage": null,
			"proxyAddresses": [
				"<string>"
			],
			"renewedDateTime": "2023-12-05T12:36:05",
			"resourceBehaviorOptions": [],
			"resourceProvisioningOptions": [
				"Team"
			],
			"securityEnabled": false,
			"securityIdentifier": "<string>",
			"theme": null,
			"uniqueName": null,
			"visibility": "Private",
			"onPremisesProvisioningErrors": [],
			"serviceProvisioningErrors": []
		},
		{
			"id": "8090c93e-ba7c-433e-9f39-08c7ba07c0b3",
			"deletedDateTime": null,
			"classification": null,
			"createdDateTime": "2020-02-04T09:44:33",
			"creationOptions": [
				"<string>"
			],
			"description": "Welcome to the team that we've assembled to launch our product.",
			"displayName": "X1050 Launch Team",
			"expirationDateTime": null,
			"groupTypes": [
				"Unified"
			],
			"isAssignableToRole": null,
			"mail": "<string>",
			"mailEnabled": true,
			"mailNickname": "X1050LaunchTeam",
			"membershipRule": null,
			"membershipRuleProcessingState": null,
			"onPremisesDomainName": null,
			"onPremisesLastSyncDateTime": null,
			"onPremisesNetBiosName": null,
			"onPremisesSamAccountName": null,
			"onPremisesSecurityIdentifier": null,
			"onPremisesSyncEnabled": null,
			"preferredDataLocation": null,
			"preferredLanguage": null,
			"proxyAddresses": [
				"<string>"
			],
			"renewedDateTime": "2023-12-05T12:36:05",
			"resourceBehaviorOptions": [],
			"resourceProvisioningOptions": [
				"Team"
			],
			"securityEnabled": false,
			"securityIdentifier": "<string>",
			"theme": null,
			"uniqueName": null,
			"visibility": "Private",
			"onPremisesProvisioningErrors": [],
			"serviceProvisioningErrors": []
		}
	]
}
```

## Workflow Library Example

[List All Teams with Microsoft Teams and Send Results Via Email](https://library.blinkops.com/workflows/list-all-teams-with-microsoft-teams-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/list-all-teams-with-microsoft-teams-and-send-results-via-email/canvas" />
</div>
