Edit

List joinRequests

Namespace: microsoft.graph

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

Get a list of the pending join requests for a team. Only team owners can call this API.

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

Permission type Least privileged permissions Higher privileged permissions
Delegated (work or school account) TeamMember.Read.All TeamMember.ReadWrite.All
Delegated (personal Microsoft account) Not supported. Not supported.
Application Not supported. Not supported.

HTTP request

GET /teams/{team-id}/joinRequests

Optional query parameters

This method supports the $select OData query parameter to help customize the response.

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.

Request body

Don't supply a request body for this method.

Response

If successful, this method returns a 200 OK response code and a collection of teamJoinRequest objects in the response body. If the caller isn't a team owner, this method returns a 403 Forbidden response code.

Examples

Request

The following example shows a request.

GET https://graph.microsoft.com/beta/teams/7e5c4b9a-1a2b-4c3d-9e8f-0a1b2c3d4e5f/joinRequests

Response

The following example shows the response.

Note: The response object shown here might be shortened for readability.

HTTP/1.1 200 OK
Content-Type: application/json

{
  "value": [
    {
      "@odata.type": "#microsoft.graph.teamJoinRequest",
      "id": "3f2a1b0c-9d8e-4f7a-b6c5-d4e3f2a1b0c9",
      "requester": {
        "user": {
          "@odata.type": "#microsoft.graph.teamworkUserIdentity",
          "id": "3f2a1b0c-9d8e-4f7a-b6c5-d4e3f2a1b0c9",
          "displayName": "Adele Vance",
          "userIdentityType": "aadUser",
          "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47"
        }
      },
      "sponsors": []
    },
    {
      "@odata.type": "#microsoft.graph.teamJoinRequest",
      "id": "8a7b6c5d-4e3f-4a1b-9c0d-1e2f3a4b5c6d",
      "requester": {
        "user": {
          "@odata.type": "#microsoft.graph.teamworkUserIdentity",
          "id": "8a7b6c5d-4e3f-4a1b-9c0d-1e2f3a4b5c6d",
          "displayName": "Alex Wilber",
          "userIdentityType": "aadUser",
          "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47"
        }
      },
      "sponsors": [
        {
          "user": {
            "@odata.type": "#microsoft.graph.teamworkUserIdentity",
            "id": "5c4d3e2f-1a0b-4c9d-8e7f-6a5b4c3d2e1f",
            "displayName": "Megan Bowen",
            "userIdentityType": "aadUser",
            "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47"
          }
        }
      ]
    }
  ]
}