Skip to content

planner plan list

Returns a list of plans associated with a specified group

Usage

m365 planner plan list [options]

Options

--ownerGroupId [ownerGroupId]
ID of the Group that owns the plan. Specify either ownerGroupId or ownerGroupName but not both.
--ownerGroupName [ownerGroupName]
Name of the Group that owns the plan. Specify either ownerGroupId or ownerGroupName but not both.
-h, --help [help]
Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are options, examples, remarks, response, full. Default is full.
--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
Output type. json,text,csv,md. Default json
--verbose
Runs command with verbose logging
--debug
Runs command with debug logging

Examples

Returns a list of Microsoft Planner plans for Group 233e43d0-dc6a-482e-9b4e-0de7a7bce9b4

m365 planner plan list --ownerGroupId "233e43d0-dc6a-482e-9b4e-0de7a7bce9b4"

Returns a list of Microsoft Planner plans for Group My Planner Group

m365 planner plan list --ownerGroupName "My Planner Group"

Response

[
  {
    "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"
    }
  }
]
id                            title            createdDateTime               owner
----------------------------  ---------------  ----------------------------  ------------------------------------
xqQg5FS2LkCp935s-FIFm2QAFkHM  My Planner Plan  2015-03-30T18:36:49.2407981Z  ebf3b108-5234-4e22-b93d-656d7dae5874
id,title,createdDateTime,owner
xqQg5FS2LkCp935s-FIFm2QAFkHM,My Planner Plan,2015-03-30T18:36:49.2407981Z,ebf3b108-5234-4e22-b93d-656d7dae5874
# planner plan list --ownerGroupId "ebf3b108-5234-4e22-b93d-656d7dae5874"

Date: 27/12/2022

## My Planner Plan (xqQg5FS2LkCp935s-FIFm2QAFkHM)

Property | Value
---------|-------
createdDateTime | 2021-12-12T14:00:50.4522129Z
owner | ebf3b108-5234-4e22-b93d-656d7dae5874
title | My Planner Plan
id | xqQg5FS2LkCp935s-FIFm2QAFkHM
createdBy | {"user":{"displayName":null,"id":"dd8b99a7-77c6-4238-a609-396d27844921"},"application":{"displayName":null,"id":"09abbdfd-ed23-44ee-a2d9-a627aa1c90f3"}}
container | {"containerId":"ebf3b108-5234-4e22-b93d-656d7dae5874","type":"group","url":"https://graph.microsoft.com/v1.0/groups/ebf3b108-5234-4e22-b93d-656d7dae5874"}