|
| 1 | +--- |
| 2 | +title: "Get teamworkSection" |
| 3 | +description: "Read the properties of a section in a user's teamwork." |
| 4 | +author: "jsinghmokha" |
| 5 | +ms.localizationpriority: medium |
| 6 | +ms.subservice: "teams" |
| 7 | +doc_type: apiPageType |
| 8 | +ms.date: 03/08/2026 |
| 9 | +--- |
| 10 | + |
| 11 | +# Get teamworkSection |
| 12 | + |
| 13 | +Namespace: microsoft.graph |
| 14 | + |
| 15 | +[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)] |
| 16 | + |
| 17 | +Read the properties of a [section](../resources/teamworksection.md) in a user's [teamwork](../resources/userteamwork.md). |
| 18 | + |
| 19 | +[!INCLUDE [national-cloud-support](../../includes/all-clouds.md)] |
| 20 | + |
| 21 | +## Permissions |
| 22 | + |
| 23 | +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](/graph/permissions-overview#best-practices-for-using-microsoft-graph-permissions). For details about delegated and application permissions, see [Permission types](/graph/permissions-overview#permission-types). To learn more about these permissions, see the [permissions reference](/graph/permissions-reference). |
| 24 | + |
| 25 | +<!-- { "blockType": "permissions", "name": "teamworksection_get" } --> |
| 26 | +[!INCLUDE [permissions-table](../includes/permissions/teamworksection-get-permissions.md)] |
| 27 | + |
| 28 | +## HTTP request |
| 29 | + |
| 30 | +<!-- { "blockType": "ignored" } --> |
| 31 | +```http |
| 32 | +GET /users/{user-id}/teamwork/sections/{teamworkSection-id} |
| 33 | +``` |
| 34 | + |
| 35 | +## Optional query parameters |
| 36 | + |
| 37 | +This method doesn't support [OData query parameters](/graph/query-parameters) to customize the response. |
| 38 | + |
| 39 | +## Request headers |
| 40 | + |
| 41 | +| Header | Value | |
| 42 | +|:-------|:------| |
| 43 | +| Authorization | Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts). | |
| 44 | +| If-None-Match | The value of the **@microsoft.graph.sectionsVersion** annotation returned when you [list sections](userteamwork-list-sections.md), or the **@odata.etag** value from any previously retrieved [section](../resources/teamworksection.md). If the section hierarchy didn't change, this header returns a `304 Not Modified` response code. Optional. | |
| 45 | + |
| 46 | +## Request body |
| 47 | + |
| 48 | +Don't supply a request body for this method. |
| 49 | + |
| 50 | +## Response |
| 51 | + |
| 52 | +If successful, this method returns a `200 OK` response code and a [teamworkSection](../resources/teamworksection.md) object in the response body. If the `If-None-Match` header is provided and the resource didn't change, this method returns a `304 Not Modified` response. |
| 53 | + |
| 54 | +## Examples |
| 55 | + |
| 56 | +### Request |
| 57 | + |
| 58 | +The following example shows a request. |
| 59 | + |
| 60 | +<!-- { |
| 61 | + "blockType": "request", |
| 62 | + "name": "get_teamworksection", |
| 63 | + "sampleKeys": ["10f8c3a6-3e2a-4e8b-9c7d-5a4b6c8d9e0f", "a1b2c3d4-e5f6-7890-abcd-ef1234567890"] |
| 64 | +}--> |
| 65 | +```msgraph-interactive |
| 66 | +GET https://graph.microsoft.com/beta/users/10f8c3a6-3e2a-4e8b-9c7d-5a4b6c8d9e0f/teamwork/sections/a1b2c3d4-e5f6-7890-abcd-ef1234567890 |
| 67 | +``` |
| 68 | + |
| 69 | +### Response |
| 70 | + |
| 71 | +The following example shows the response. |
| 72 | + |
| 73 | +>**Note:** The response object shown here might be shortened for readability. |
| 74 | +
|
| 75 | +<!-- { |
| 76 | + "blockType": "response", |
| 77 | + "truncated": true, |
| 78 | + "@odata.type": "microsoft.graph.teamworkSection" |
| 79 | +}--> |
| 80 | +```http |
| 81 | +HTTP/1.1 200 OK |
| 82 | +Content-type: application/json |
| 83 | +ETag: "1742515200" |
| 84 | +
|
| 85 | +{ |
| 86 | + "@odata.type": "#microsoft.graph.teamworkSection", |
| 87 | + "@odata.etag": "\"1742515200\"", |
| 88 | + "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", |
| 89 | + "displayName": "Favorites", |
| 90 | + "displayIcon": { |
| 91 | + "iconType": "⭐", |
| 92 | + "displayName": "Star", |
| 93 | + "contentUrl": null, |
| 94 | + "skinTone": null |
| 95 | + }, |
| 96 | + "sectionType": "userDefined", |
| 97 | + "sortType": "mostRecent", |
| 98 | + "isExpanded": true, |
| 99 | + "isHierarchicalViewEnabled": false, |
| 100 | + "createdDateTime": "2025-01-15T10:30:00Z", |
| 101 | + "lastModifiedDateTime": "2025-03-01T14:22:00Z" |
| 102 | +} |
| 103 | +``` |
| 104 | + |
| 105 | +<!-- uuid: d4e5f6a7-b890-1234-5678-9abcdef01234 |
| 106 | +2026-03-08 00:00:00 UTC --> |
| 107 | +<!-- |
| 108 | +{ |
| 109 | + "type": "#page.annotation", |
| 110 | + "description": "Get teamworkSection", |
| 111 | + "keywords": "", |
| 112 | + "section": "documentation", |
| 113 | + "tocPath": "" |
| 114 | +} |
| 115 | +--> |
0 commit comments