Edit

Get teamJoinRequest

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 pending join request 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/{teamJoinRequest-id}

The ID of a join request is the Microsoft Entra object ID of the requester.

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 teamJoinRequest object in the response body. If no pending join request exists with the specified ID, this method returns a 404 Not Found response code. 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/3f2a1b0c-9d8e-4f7a-b6c5-d4e3f2a1b0c9

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

{
  "@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": []
}