import Global from '../../_global.mdx'; import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';
Updates a Microsoft Planner plan
m365 planner plan set [options]`-i, --id [id]`
: ID of the plan. Specify either `id`, `title` or `rosterId` but not multiple.
`-t, --title [title]`
: Title of the plan. Specify either `id`, `title` or `rosterId` but not multiple.
`--rosterId [rosterId]`
: ID of the Planner Roster. Specify either `id`, `title` or `rosterId` but not multiple.
`--ownerGroupId [ownerGroupId]`
: ID of the group to which the plan belongs. Specify either `ownerGroupId` or `ownerGroupName` when using `title` but not both.
`--ownerGroupName [ownerGroupName]`
: Name of the Group to which the plan belongs. Specify either `ownerGroupId` or `ownerGroupName` when using `title` but not both.
`--newTitle [newTitle]`
: New title of the plan.
`--shareWithUserIds [shareWithUserIds]`
: The comma-separated IDs of the users with whom you want to share the plan. Specify either `shareWithUserIds` or `shareWithUserNames` but not both.
`--shareWithUserNames [shareWithUserNames]`
: The comma-separated UPNs of the users with whom you want to share the plan. Specify either `shareWithUserIds` or `shareWithUserNames` but not both.This command allows using unknown options.
`--category1 [category1]`
: New label for a category. Define the category key within your option to update the related label. Category 1 to 25 are available. E.g., `--category4`, `--category12`.:::warning
When using rosterId, the command is based on an API that is currently in preview and is subject to change once the API reached general availability.
:::
| Resource | Permissions |
|---|---|
| Microsoft Graph | Tasks.ReadWrite, GroupMember.Read.All |
| Resource | Permissions |
|---|---|
| Microsoft Graph | Tasks.ReadWrite.All, GroupMember.Read.All |
Updates a Microsoft Planner plan title.
m365 planner plan set --id 'gndWOTSK60GfPQfiDDj43JgACDCb' --newTitle 'New Title'Share a Microsoft Planner plan owned by the group, with the users.
m365 planner plan set --title 'Plan Title' --ownerGroupName 'My Group' --shareWithUserNames '[email protected],[email protected]'Updates a Microsoft Planner plan category labels.
m365 planner plan set --id 'gndWOTSK60GfPQfiDDj43JgACDCb' --category21 'ToDo' --category25 'Urgent'{
"createdDateTime": "2015-03-30T18:36:49.2407981Z",
"owner": "ebf3b108-5234-4e22-b93d-656d7dae5874",
"title": "My Planner Plan",
"id": "xqQg5FS2LkCp935s-FIFm2QAFkHM",
"createdBy": {
"user": {
"displayName": null,
"id": "95e27074-6c4a-447a-aa24-9d718a0b86fa"
},
"application": {
"displayName": null,
"id": "ebf3b108-5234-4e22-b93d-656d7dae5874"
}
},
"container": {
"containerId": "ebf3b108-5234-4e22-b93d-656d7dae5874",
"type": "group",
"url": "https://graph.microsoft.com/v1.0/groups/ebf3b108-5234-4e22-b93d-656d7dae5874"
}
}container : {"containerId":"ebf3b108-5234-4e22-b93d-656d7dae5874","type":"group","url":"https://graph.microsoft.com/v1.0/groups/ebf3b108-5234-4e22-b93d-656d7dae5874"}
createdBy : {"application":{"displayName":null,"id":"ebf3b108-5234-4e22-b93d-656d7dae5874"},"user":{"displayName":null,"id":"95e27074-6c4a-447a-aa24-9d718a0b86fa"}}
createdDateTime: 2015-03-30T18:36:49.2407981Z
id : xqQg5FS2LkCp935s-FIFm2QAFkHM
owner : ebf3b108-5234-4e22-b93d-656d7dae5874
title : My Planner Plan
id,title,createdDateTime,owner
xqQg5FS2LkCp935s-FIFm2QAFkHM,My Planner Plan,2015-03-30T18:36:49.2407981Z,ebf3b108-5234-4e22-b93d-656d7dae5874# planner plan add --title "My Planner Plan" --ownerGroupId "ebf3b108-5234-4e22-b93d-656d7dae5874"
Date: 30/03/2015
## My Planner Plan (xqQg5FS2LkCp935s-FIFm2QAFkHM)
Property | Value
---------|-------
createdDateTime | 2015-03-30T18:36:49.2407981Z
owner | ebf3b108-5234-4e22-b93d-656d7dae5874
title | My Planner Plan
id | xqQg5FS2LkCp935s-FIFm2QAFkHMWhen we make use of the option shareWithUserIds or shareWithUserNames the response will differ.
{
"createdDateTime": "2015-03-30T18:36:49.2407981Z",
"owner": "ebf3b108-5234-4e22-b93d-656d7dae5874",
"title": "My Planner Plan",
"id": "xqQg5FS2LkCp935s-FIFm2QAFkHM",
"createdBy": {
"user": {
"displayName": null,
"id": "95e27074-6c4a-447a-aa24-9d718a0b86fa"
},
"application": {
"displayName": null,
"id": "ebf3b108-5234-4e22-b93d-656d7dae5874"
}
},
"container": {
"containerId": "ebf3b108-5234-4e22-b93d-656d7dae5874",
"type": "group",
"url": "https://graph.microsoft.com/v1.0/groups/ebf3b108-5234-4e22-b93d-656d7dae5874"
},
"sharedWith": {
"ebf3b108-5234-4e22-b93d-656d7dae5874": true,
"6463a5ce-2119-4198-9f2a-628761df4a62": true
},
"categoryDescriptions": {
"category1": null,
"category2": null,
"category3": null,
"category4": null,
"category5": null,
"category6": null,
"category7": null,
"category8": null,
"category9": null,
"category10": null,
"category11": null,
"category12": null,
"category13": null,
"category14": null,
"category15": null,
"category16": null,
"category17": null,
"category18": null,
"category19": null,
"category20": null,
"category21": null,
"category22": null,
"category23": null,
"category24": null,
"category25": null
}
}createdDateTime: 2015-03-30T18:36:49.2407981Z
id : xqQg5FS2LkCp935s-FIFm2QAFkHM
owner : ebf3b108-5234-4e22-b93d-656d7dae5874
title : My Planner Plan
id,title,createdDateTime,owner
xqQg5FS2LkCp935s-FIFm2QAFkHM,My Planner Plan,2015-03-30T18:36:49.2407981Z,ebf3b108-5234-4e22-b93d-656d7dae5874# planner plan add --title "My Planner Plan" --ownerGroupId "ebf3b108-5234-4e22-b93d-656d7dae5874" --shareWithUserNames "[email protected],[email protected]"
Date: 30/03/2015
## My Planner Plan (xqQg5FS2LkCp935s-FIFm2QAFkHM)
Property | Value
---------|-------
createdDateTime | 2015-03-30T18:36:49.2407981Z
owner | ebf3b108-5234-4e22-b93d-656d7dae5874
title | My Planner Plan
id | xqQg5FS2LkCp935s-FIFm2QAFkHM- Update plannerPlan: https://learn.microsoft.com/graph/api/plannerplan-update?view=graph-rest-1.0&tabs=http
- plannerPlanDetails resource type: https://learn.microsoft.com/graph/api/resources/plannerplandetails?view=graph-rest-1.0
- plannerCategoryDescriptions resource type: https://learn.microsoft.com/graph/api/resources/plannercategorydescriptions?view=graph-rest-1.0