TeamworkSection.ReadWrite.All
Allows the app to read and write all users' sections (folders) for organizing chats and channels in Teams, without a signed-in user.
Permission Details
Read and write all users' sections
Allows the app to read and write all users' sections (folders) for organizing chats and channels in Teams, without a signed-in user.
fd99f9da-42d6-4d00-8a41-4161bea42309
Properties
Properties is shown from beta metadata because a stable v1.0 schema is not available for this resource mapping.
| Property | Type | Description |
|---|---|---|
createdDateTime |
DateTimeOffsetNullable |
Date and time when the section was created. Read-only. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2024, is 2024-01-01T00:00:00Z. |
displayIcon |
sectionDisplayIcon |
The icon displayed for the section. |
displayName |
String |
The display name of the section. Required. Maximum length is 50 characters. Display names are case-sensitive and must be unique within a user's sections. The following names are reserved for system-defined sections and can't be used when creating a user-defined section: RecentChats, QuickViews, TeamsAndChannels, MutedChats, MeetingChats, EngageCommunities. |
id |
String |
The unique identifier for the section. Read-only. |
isExpanded |
BooleanNullable |
Indicates whether the section is expanded in the user interface. The default value is true. |
isHierarchicalViewEnabled |
BooleanNullable |
Indicates whether the hierarchical view is enabled for the section. Read-only. |
lastModifiedDateTime |
DateTimeOffsetNullable |
Date and time when the section was last modified. Read-only. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2024, is 2024-01-01T00:00:00Z. |
sectionType |
sectionType |
The type of the section. The possible values are: userDefined, systemDefined, unknownFutureValue. Read-only. |
sortType |
sectionSortType |
The sort order of items in the section. The valid values depend on the sectionType. The possible values are: mostRecent, unreadThenMostRecent, nameAlphabetical, userDefinedCustomOrder, unknownFutureValue. |
@microsoft.graph.sectionsOrder |
String collection |
An ordered array of section IDs that represent the user's preferred section order. |
@microsoft.graph.sectionsVersion |
String |
The current section hierarchy version. Use this value as the If-Match header for optimistic concurrency control on mutation operations (create, update, or delete sections, and add, remove, or move items). |
items |
teamworkSectionItem collection |
The items (chats, channels, meetings, or communities) organized within the section. |
JSON Representation
JSON representation is shown from beta metadata because a stable v1.0 schema is not available for this resource mapping.
{
"@odata.type": "#microsoft.graph.teamworkSection",
"createdDateTime": "String (timestamp)",
"displayIcon": {
"@odata.type": "microsoft.graph.sectionDisplayIcon"
},
"displayName": "String",
"id": "String (identifier)",
"isExpanded": "Boolean",
"isHierarchicalViewEnabled": "Boolean",
"lastModifiedDateTime": "String (timestamp)",
"sectionType": "String",
"sortType": "String"
}
Relationships
Relationships is shown from beta metadata because a stable v1.0 schema is not available for this resource mapping.
| Relationship | Type | Description |
|---|---|---|
items |
teamworkSectionItem collection |
The items (chats, channels, meetings, or communities) organized within the section. |
Graph Methods
Microsoft Graph v1.0 endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
No API methods available for this version.
Microsoft Graph beta endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
Microsoft Graph PowerShell v1.0 commands are not available from refreshed Microsoft Learn PowerShell snippets for this permission.
No deterministic PowerShell command map is available for this permission.
Browse PowerShell docsMicrosoft Graph PowerShell beta commands are not available from refreshed Microsoft Learn PowerShell snippets for this permission.
No deterministic PowerShell command map is available for this permission.
Browse PowerShell docsCode Examples
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Beta.Models;
var requestBody = new TeamworkSectionItem
{
Id = "19:[email protected]",
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Users["{user-id}"].Teamwork.Sections["{teamworkSection-id}"].Items.PostAsync(requestBody, (requestConfiguration) =>
{
requestConfiguration.Headers.Add("If-Match", "\"1742515200\"");
});
const options = {
authProvider,
};
const client = Client.init(options);
const teamworkSectionItem = {
id: '19:[email protected]'
};
await client.api('/users/10f8c3a6-3e2a-4e8b-9c7d-5a4b6c8d9e0f/teamwork/sections/a1b2c3d4-e5f6-7890-abcd-ef1234567890/items')
.version('beta')
.post(teamworkSectionItem);
Connect-MgGraph -Scopes "TeamworkSection.ReadWrite.All"
Invoke-MgGraphRequest -Method GET -Uri "https://graph.microsoft.com/v1.0/users/{id}/teamwork/sections"
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.users.item.teamwork.sections.item.items.items_request_builder import ItemsRequestBuilder
from kiota_abstractions.base_request_configuration import RequestConfiguration
from msgraph_beta.generated.models.teamwork_section_item import TeamworkSectionItem
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = TeamworkSectionItem(
id = "19:[email protected]",
)
request_configuration = RequestConfiguration()
request_configuration.headers.add("If-Match", "\"1742515200\"")
result = await graph_client.users.by_user_id('user-id').teamwork.sections.by_teamwork_section_id('teamworkSection-id').items.post(request_body, request_configuration = request_configuration)
App Registration
Navigate to Azure Portal
Go to App registrations in Microsoft Entra admin center
Add API Permission
Select your app → API permissions → Add a permission → Microsoft Graph
Select Permission Type
Choose Application permissions and search for TeamworkSection.ReadWrite.All
Grant Admin Consent
Application permissions always require admin consent.