Skip to content

Commit

Permalink
Merge pull request #26142 from microsoftgraph/main
Browse files Browse the repository at this point in the history
Merge to publish.
  • Loading branch information
Danielabom authored Jan 23, 2025
2 parents 4212fff + 7b1faaf commit ca2bac8
Show file tree
Hide file tree
Showing 14 changed files with 322 additions and 47 deletions.
8 changes: 2 additions & 6 deletions api-reference/beta/api/site-archive.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,8 @@ Choose the permission or permissions marked as least privileged for this API. Us
|Delegated (personal Microsoft account)|Not supported.|Not supported.|
|Application|Sites.FullControl.All|Not available.|

In delegated scenarios, the signed-in user must also be assigned one of the following supported [Microsoft Entra roles](/entra/identity/role-based-access-control/permissions-reference) for this operation:

* SharePoint Administrator
* Global Administrator

*SharePoint Administrator* is the least privileged role for this operation.
> [!IMPORTANT]
> In delegated scenarios with work or school accounts, the signed-in user must be assigned a supported [Microsoft Entra role](/entra/identity/role-based-access-control/permissions-reference?toc=%2Fgraph%2Ftoc.json) or a custom role with a supported role permission. *SharePoint Administrator* is the least privileged role for this operation.
## HTTP request

Expand Down
8 changes: 2 additions & 6 deletions api-reference/beta/api/site-unarchive.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,8 @@ Choose the permission or permissions marked as least privileged for this API. Us
|Delegated (personal Microsoft account)|Not supported.|Not supported.|
|Application|Sites.FullControl.All|Not available.|

In delegated scenarios, the signed-in user must also be assigned one of the following supported [Microsoft Entra roles](/entra/identity/role-based-access-control/permissions-reference) for this operation:

* SharePoint Administrator
* Global Administrator

*SharePoint Administrator* is the least privileged role for this operation.
> [!IMPORTANT]
> In delegated scenarios with work or school accounts, the signed-in user must be assigned a supported [Microsoft Entra role](/entra/identity/role-based-access-control/permissions-reference?toc=%2Fgraph%2Ftoc.json) or a custom role with a supported role permission. *SharePoint Administrator* is the least privileged role for this operation.
## HTTP request

Expand Down
116 changes: 116 additions & 0 deletions api-reference/beta/api/teamschannelplanner-list-plans.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
---
title: "List plans"
description: "Get a list of plannerPlan objects owned by a shared channel in Teams."
ms.localizationpriority: medium
author: "DanluCui"
ms.subservice: "planner"
doc_type: apiPageType
ms.date: 01/15/2025
---

# List plans

Namespace: microsoft.graph

[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)]

Get a list of [plannerPlan](../resources/plannerplan.md) objects owned by a shared [channel](../resources/channel.md) in Teams.

[!INCLUDE [national-cloud-support](../../includes/global-us.md)]

## 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](/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).

<!-- { "blockType": "permissions", "name": "teamschannelplanner_list_plans" } -->
[!INCLUDE [permissions-table](../includes/permissions/teamschannelplanner-list-plans-permissions.md)]

## HTTP request
<!-- { "blockType": "ignored" } -->
```http
GET /teams/{team-id}/channels/{channel-id}/planner/plans
```

## Request headers
| Name |Description|
|:----------|:----------|
|Authorization|Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts).|

## 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 [plannerPlan](../resources/plannerplan.md) objects in the response body.

This method can return any of the [HTTP status codes](/graph/errors). The most common errors that apps should handle for this method are the `403` and `404` responses. For more information about these errors, see [Common Planner error conditions](../resources/planner-overview.md#common-planner-error-conditions).

## Examples

### Request

The following example shows a request.

<!-- {
"blockType": "request",
"name": "list_plans_owned_by_channel",
"sampleKeys" : ["a738af50-90f1-472c-b3c3-a468f88ceaba", "19:[email protected]"]
}-->
```http
GET https://graph.microsoft.com/beta/teams/a738af50-90f1-472c-b3c3-a468f88ceaba/channels/19:[email protected]/planner/plans
```

### Response

The following example shows the response.

>**Note:** The response object shown here might be shortened for readability.
<!-- {
"blockType": "response",
"truncated": true,
"@odata.type": "Collection(microsoft.graph.plannerPlan)"
} -->
```http
HTTP/1.1 200 OK
Content-type: application/json
{
"value": [
{
"@odata.etag": "W/\"JzEtUGxhbiAgQEBAQEBAQEBAQEBAQEBARCc=\"",
"createdDateTime": "2025-01-14T18:03:25.8457422Z",
"isArchived": false,
"owner": "ba2b2488-cb8c-4dbc-882e-a9a8311bfee9",
"title": "travel plan",
"id": "TQZYwVBC4E6BUIg4nfSnfJUADdBY",
"createdBy": {
"application": {
"id": "de8bc8b5-d9f9-48b1-a8ad-b748da725064"
},
"user": {
"id": "ba2b2488-cb8c-4dbc-882e-a9a8311bfee9"
}
},
"container": {
"containerId": "a738af50-90f1-472c-b3c3-a468f88ceaba/channels/19:[email protected]",
"type": "teamsChannel",
"url": "https://graph.microsoft.com/beta/teams/a738af50-90f1-472c-b3c3-a468f88ceaba/channels/19:[email protected]"
}
}
]
}
```

<!-- uuid: 3da1192e-9af9-47d4-b32c-1ba82ddabcd1
2025-01-15 22:58:43 UTC -->
<!--
{
"type": "#page.annotation",
"description": "List plans",
"keywords": "",
"section": "documentation",
"tocPath": "",
"suppressions": [
]
}
-->

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
description: "Automatically generated file. DO NOT MODIFY"
ms.topic: include
ms.localizationpriority: medium
---

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

9 changes: 6 additions & 3 deletions api-reference/beta/resources/channel.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ where files are shared, and where tabs are added.
|[Unshare channel with team](../api/sharedwithchannelteaminfo-delete.md)|None|Unshare a channel with a team.|
|[List allowed members](../api/sharedwithchannelteaminfo-list-allowedmembers.md)|[conversationMember](../resources/conversationmember.md) collection|Get the list of team members who have access to the shared channel.|
|[Check user access](../api/channel-doesuserhaveaccess.md)|Boolean|Check whether a user has access to a shared channel or not.|
| **Planner** | | |
|[List plans](../api/teamschannelplanner-list-plans.md) |[plannerPlan](plannerplan.md) collection| Get a list of [plannerPlan](../resources/plannerplan.md) objects owned by a shared [channel](../resources/channel.md) in Teams.|

## Properties

Expand Down Expand Up @@ -101,13 +103,14 @@ For a POST request example, see [Request (create channel in migration state)](/m

| Relationship | Type |Description|
|:---------------|:--------|:----------|
|messages|[chatMessage](chatmessage.md) collection|A collection of all the messages in the channel. A navigation property. Nullable.|
|tabs|[teamsTab](../resources/teamstab.md) collection|A collection of all the tabs in the channel. A navigation property.|
|members|[conversationMember](conversationmember.md) collection|A collection of membership records associated with the channel.|
|allMembers|[conversationMember](conversationmember.md) collection |A collection of membership records associated with the channel. It includes both direct and indirect members of shared channels.|
|[filesFolder](../api/channel-get-filesfolder.md)|[driveItem](driveitem.md)|Metadata for the location where the channel's files are stored.|
|members|[conversationMember](conversationmember.md) collection|A collection of membership records associated with the channel.|
|messages|[chatMessage](chatmessage.md) collection|A collection of all the messages in the channel. Nullable.|
|operations|[teamsAsyncOperation](teamsasyncoperation.md) collection| The async operations that ran or are running on this team. |
|planner|[teamsChannelPlanner](teamschannelplanner.md) | Selective Planner services available to this channel. Currently, only shared channels are supported. Read-only. Nullable. |
|sharedWithTeams|[sharedWithChannelTeamInfo](../resources/sharedwithchannelteaminfo.md) collection|A collection of teams with which a channel is shared.|
|tabs|[teamsTab](../resources/teamstab.md) collection| A collection of all the tabs in the channel.|

## JSON representation

Expand Down
20 changes: 16 additions & 4 deletions api-reference/beta/resources/cloudpcforensicstorageaccount.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "cloudPcForensicStorageAccount resource type"
description: "Represents a Cloud PC storage account for forensic analysis."
description: "Represents information about a Cloud PC storage account for forensic analysis."
author: "xhan2077"
ms.localizationpriority: medium
ms.subservice: "cloud-pc"
Expand All @@ -19,9 +19,20 @@ Represents the storage account information that can be used to store a snapshot
## Properties
|Property|Type|Description|
|:---|:---|:---|
|storageAccountId|String|The ID of the storage account.|
|storageAccountName|String|The name of the storage account.|
|accessTier|[cloudPcStorageAccountAccessTier](#cloudpcstorageaccountaccesstier-values)| The access tier of the storage account. Possible values are `hot`, `cool`, `premium`, `cold`, and `unknownFutureValue`. Default value is `hot`. Read-only.|
|immutableStorage|Boolean|Indicates whether immutability policies are configured for the storage account. When `true`, the storage account only accepts `hot` as the snapshot access tier. When `false`, the storage account accepts all valid access tiers. Read-Only.|
|storageAccountId|String|The ID of the storage account. Read-only.|
|storageAccountName|String|The name of the storage account. Read-only.|

### cloudPcStorageAccountAccessTier values

|Member|Description|
|:---|:---|
|hot|The storage account access tier is "hot." This tier is optimized for storing data that is accessed or modified frequently.|
|cool|The storage account access tier is "cool." This tier is optimized for storing data that is infrequently accessed or modified.|
|premium|The storage account access tier is "premium." This tier is optimized with low and consistent latency.|
|cold|The storage account access tier is "cold." This tier is optimized for storing data that is rarely accessed or modified, but still requires fast retrieval.|
|unknownFutureValue|Evolvable enumeration sentinel value. Don't use.|

## Relationships
None.
Expand All @@ -41,6 +52,7 @@ The following JSON representation shows the resource type.
"@odata.type": "#microsoft.graph.cloudPcForensicStorageAccount",
"storageAccountId": "String",
"storageAccountName": "String",
"immutableStorage": "Boolean"
"immutableStorage": "Boolean",
"accessTier": "String"
}
```
68 changes: 68 additions & 0 deletions api-reference/beta/resources/teamschannelplanner.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
---
title: "teamsChannelPlanner resource type"
description: "Provides access to Planner resources for a Teams shared channel."
ms.localizationpriority: medium
author: "DanluCui"
ms.subservice: "planner"
doc_type: resourcePageType
ms.date: 01/15/2025
---

# teamsChannelPlanner resource type

Namespace: microsoft.graph

[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)]

Provides access to Planner resources for a Teams shared [channel](channel.md). This resource doesn't contain any usable properties.

Inherits from [entity](entity.md).

## Methods
| Method | Return Type |Description|
|:---------------|:--------|:----------|
|[List plans](../api/teamschannelplanner-list-plans.md) |[plannerPlan](plannerplan.md) collection| Get a list of [plannerPlan](../resources/plannerplan.md) objects owned by a shared [channel](../resources/channel.md) in Teams.|

## Properties
| Property | Type |Description|
|:---------------|:--------|:----------|
|id|String| The unique identifier for the **teamsChannelPlanner** object. Read-only. Inherited from [entity](entity.md).|

## Relationships
| Relationship | Type |Description|
|:---------------|:--------|:----------|
|plans|[plannerPlan](plannerplan.md) collection| A collection of [plannerPlan](plannerplan.md) objects owned by the Teams channel. Currently, only shared channels are supported. Read-only. Nullable.|

## JSON representation

The following JSON representation shows the resource type.

<!-- {
"blockType": "resource",
"optionalProperties": [
],
"keyProperty": "id",
"baseType":"microsoft.graph.entity",
"@odata.type": "microsoft.graph.teamsChannelPlanner"
}-->

```json
{
"id": "String (identifier)"
}
```

<!-- uuid: 3da1192e-9af9-47d4-b32c-1ba82ddabcd1
2025-01-15 22:58:43 UTC -->
<!--
{
"type": "#page.annotation",
"description": "teamsChannelPlanner resource",
"keywords": "",
"section": "documentation",
"tocPath": "",
"suppressions": []
}
-->

6 changes: 6 additions & 0 deletions api-reference/beta/toc/tasks-and-plans/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ items:
href: ../../api/plannertaskdetails-get.md
- name: Update task details
href: ../../api/plannertaskdetails-update.md
- name: Teams channel planner
items:
- name: Teams channel planner
href: ../../resources/teamschannelplanner.md
- name: List plans
href: ../../api/teamschannelplanner-list-plans.md
- name: Business scenarios (preview)
items:
- name: Overview
Expand Down
4 changes: 4 additions & 0 deletions api-reference/beta/toc/teamwork-and-communications/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,10 @@ items:
href: ../../api/sharedwithchannelteaminfo-list-allowedmembers.md
- name: Check user access
href: ../../api/channel-doesuserhaveaccess.md
- name: Planner
items:
- name: List plans
href: ../../api/teamschannelplanner-list-plans.md
- name: Chat
items:
- name: Chat
Expand Down
3 changes: 2 additions & 1 deletion api-reference/beta/toc/toc.mapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -2772,7 +2772,8 @@
"plannerPlanDetails",
"plannerRoster",
"plannerUser",
"plannerTaskDetails"
"plannerTaskDetails",
"teamsChannelPlanner"
],
"complexTypes": [
"businessScenarioGroupTarget",
Expand Down
Loading

0 comments on commit ca2bac8

Please sign in to comment.