Skip to content
List Groups logo

List Groups

Lists all Microsoft 365 groups in the organization. Returns a paginated collection of group resources including unified groups that can be associated with Microsoft Teams.

SKILL.md

Full skill instructions

List Groups

Lists all Microsoft 365 groups in the organization. Returns a paginated collection of group resources including unified groups that can be associated with Microsoft Teams.

API Details

Sandbox

Mock server URL: http://localhost:8080/rest/microsoft-teams-api/1.0.0/groups

Required Headers

  • Authorization: Bearer {access-token}

OAuth Scopes

  • Group.Read.All

Parameters

NameInTypeRequiredDescription
$topqueryintegerNoNumber of groups to return per page
$skipqueryintegerNoNumber of groups to skip
$filterquerystringNoOData filter expression
$selectquerystringNoComma-separated list of properties to include

Example Request

curl -s -X GET \
  "http://localhost:8080/rest/microsoft-teams-api/1.0.0/groups?%24top=10" \
  -H "Authorization: Bearer {access-token}"

Example Response

{
  "value": [
    {
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "displayName": "Project Alpha Group",
      "mailEnabled": true,
      "mailNickname": "projectalpha",
      "securityEnabled": false,
      "groupTypes": [
        "Unified"
      ],
      "visibility": "Private"
    }
  ]
}

Instructions

When the user wants to list, browse, or search for Microsoft 365 groups in their organization, use this operation. Supports pagination with $top and $skip, filtering with $filter, and selecting specific properties with $select.