@pnp/cli-microsoft365 5.5.0-beta.4e973d9 → 5.5.0-beta.8bd301f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Auth.js +3 -3
- package/dist/Command.js +22 -0
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-restore.js +60 -9
- package/dist/m365/base/PowerAppsCommand.js +10 -0
- package/dist/m365/flow/commands/flow-export.js +3 -0
- package/dist/m365/pa/commands/app/app-get.js +3 -5
- package/dist/m365/pa/commands/app/app-list.js +10 -9
- package/dist/m365/pa/commands/app/app-remove.js +3 -3
- package/dist/m365/pa/commands/connector/connector-export.js +3 -3
- package/dist/m365/pa/commands/connector/connector-list.js +10 -9
- package/dist/m365/pa/commands/environment/environment-get.js +3 -3
- package/dist/m365/pa/commands/environment/environment-list.js +4 -4
- package/dist/m365/planner/commands/bucket/bucket-add.js +17 -9
- package/dist/m365/planner/commands/bucket/bucket-get.js +19 -11
- package/dist/m365/planner/commands/bucket/bucket-list.js +17 -9
- package/dist/m365/planner/commands/bucket/bucket-remove.js +19 -11
- package/dist/m365/planner/commands/bucket/bucket-set.js +19 -11
- package/dist/m365/planner/commands/plan/plan-add.js +98 -5
- package/dist/m365/planner/commands/plan/plan-get.js +58 -17
- package/dist/m365/planner/commands/plan/plan-remove.js +141 -0
- package/dist/m365/planner/commands/task/task-add.js +16 -16
- package/dist/m365/planner/commands/task/task-get.js +14 -9
- package/dist/m365/planner/commands/task/task-list.js +19 -11
- package/dist/m365/planner/commands/task/task-reference-add.js +1 -7
- package/dist/m365/planner/commands/task/task-reference-remove.js +11 -14
- package/dist/m365/planner/commands/task/task-remove.js +4 -19
- package/dist/m365/planner/commands/task/task-set.js +17 -23
- package/dist/m365/planner/commands/tenant/tenant-settings-set.js +95 -0
- package/dist/m365/planner/commands.js +3 -1
- package/dist/m365/search/commands/externalconnection/externalconnection-get.js +69 -0
- package/dist/m365/search/commands.js +1 -0
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.15.0.js +23 -0
- package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015008_FILE_eslintrc_js.js +7 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.15.0.js +6 -4
- package/dist/m365/spfx/commands/spfx-doctor.js +15 -0
- package/dist/m365/spo/base-permissions.js +9 -0
- package/dist/m365/spo/commands/customaction/customaction-get.js +32 -4
- package/dist/m365/spo/commands/customaction/customaction-remove.js +43 -8
- package/dist/m365/spo/commands/field/field-get.js +14 -5
- package/dist/m365/spo/commands/field/field-remove.js +19 -10
- package/dist/m365/spo/commands/field/field-set.js +16 -9
- package/dist/m365/spo/commands/group/group-add.js +96 -0
- package/dist/m365/spo/commands/group/group-set.js +167 -0
- package/dist/m365/spo/commands/hubsite/hubsite-get.js +99 -13
- package/dist/m365/spo/commands/listitem/listitem-get.js +9 -9
- package/dist/m365/spo/commands/listitem/listitem-list.js +5 -1
- package/dist/m365/spo/commands/listitem/listitem-set.js +2 -2
- package/dist/m365/spo/commands/roledefinition/RoleDefinition.js +3 -0
- package/dist/m365/spo/commands/roledefinition/RoleType.js +16 -0
- package/dist/m365/spo/commands/roledefinition/roledefinition-get.js +59 -0
- package/dist/m365/spo/commands/site/site-classic-list.js +1 -0
- package/dist/m365/spo/commands/site/site-classic-set.js +1 -0
- package/dist/m365/spo/commands/site/site-list.js +59 -17
- package/dist/m365/spo/commands/site/site-set.js +322 -162
- package/dist/m365/spo/commands/tenant/tenant-appcatalog-add.js +9 -6
- package/dist/m365/spo/commands.js +3 -0
- package/dist/m365/teams/commands/cache/cache-remove.js +155 -0
- package/dist/m365/teams/commands/tab/tab-get.js +2 -2
- package/dist/m365/teams/commands/team/team-archive.js +51 -15
- package/dist/m365/teams/commands/team/team-clone.js +33 -7
- package/dist/m365/teams/commands/team/team-remove.js +47 -11
- package/dist/m365/teams/commands/team/team-set.js +25 -5
- package/dist/m365/teams/commands/team/team-unarchive.js +48 -12
- package/dist/m365/teams/commands.js +1 -0
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-get.js +1 -9
- package/dist/utils/accessToken.js +18 -0
- package/dist/utils/planner.js +9 -8
- package/dist/utils/validation.js +5 -1
- package/docs/docs/cmd/aad/o365group/o365group-recyclebinitem-restore.md +21 -3
- package/docs/docs/cmd/aad/user/user-get.md +12 -0
- package/docs/docs/cmd/planner/bucket/bucket-add.md +9 -6
- package/docs/docs/cmd/planner/bucket/bucket-get.md +10 -7
- package/docs/docs/cmd/planner/bucket/bucket-list.md +8 -5
- package/docs/docs/cmd/planner/bucket/bucket-remove.md +8 -5
- package/docs/docs/cmd/planner/bucket/bucket-set.md +9 -6
- package/docs/docs/cmd/planner/plan/plan-add.md +18 -2
- package/docs/docs/cmd/planner/plan/plan-get.md +14 -2
- package/docs/docs/cmd/planner/plan/plan-remove.md +48 -0
- package/docs/docs/cmd/planner/task/task-add.md +11 -8
- package/docs/docs/cmd/planner/task/task-get.md +17 -8
- package/docs/docs/cmd/planner/task/task-list.md +9 -6
- package/docs/docs/cmd/planner/task/task-set.md +9 -6
- package/docs/docs/cmd/planner/tenant/tenant-settings-set.md +56 -0
- package/docs/docs/cmd/search/externalconnection/externalconnection-get.md +33 -0
- package/docs/docs/cmd/spo/customaction/customaction-get.md +15 -2
- package/docs/docs/cmd/spo/customaction/customaction-remove.md +33 -2
- package/docs/docs/cmd/spo/field/field-get.md +6 -3
- package/docs/docs/cmd/spo/field/field-remove.md +9 -6
- package/docs/docs/cmd/spo/field/field-set.md +7 -4
- package/docs/docs/cmd/spo/group/group-add.md +51 -0
- package/docs/docs/cmd/spo/group/group-set.md +69 -0
- package/docs/docs/cmd/spo/hubsite/hubsite-get.md +39 -7
- package/docs/docs/cmd/spo/listitem/listitem-get.md +11 -2
- package/docs/docs/cmd/spo/listitem/listitem-list.md +8 -0
- package/docs/docs/cmd/spo/roledefinition/roledefinition-get.md +27 -0
- package/docs/docs/cmd/spo/site/site-classic-list.md +3 -0
- package/docs/docs/cmd/spo/site/site-classic-set.md +3 -0
- package/docs/docs/cmd/spo/site/site-list.md +19 -7
- package/docs/docs/cmd/spo/site/site-set.md +50 -6
- package/docs/docs/cmd/teams/cache/cache-remove.md +46 -0
- package/docs/docs/cmd/teams/tab/tab-get.md +2 -2
- package/docs/docs/cmd/teams/team/team-archive.md +20 -5
- package/docs/docs/cmd/teams/team/team-clone.md +11 -5
- package/docs/docs/cmd/teams/team/team-remove.md +19 -5
- package/docs/docs/cmd/teams/team/team-set.md +10 -4
- package/docs/docs/cmd/teams/team/team-unarchive.md +18 -4
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-get.md +1 -1
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-list.md +1 -1
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-list.md +1 -1
- package/npm-shrinkwrap.json +173 -158
- package/package.json +13 -13
- package/dist/m365/planner/commands/plan/plan-details-get.js +0 -116
- package/docs/docs/cmd/planner/plan/plan-details-get.md +0 -45
|
@@ -34,15 +34,7 @@ class TenantServiceAnnouncementHealthGetCommand extends GraphCommand_1.default {
|
|
|
34
34
|
},
|
|
35
35
|
responseType: 'json'
|
|
36
36
|
};
|
|
37
|
-
return request_1.default
|
|
38
|
-
.get(requestOptions)
|
|
39
|
-
.then(response => {
|
|
40
|
-
const serviceHealth = response;
|
|
41
|
-
if (!serviceHealth) {
|
|
42
|
-
return Promise.reject(`Error fetching service health`);
|
|
43
|
-
}
|
|
44
|
-
return Promise.resolve(serviceHealth);
|
|
45
|
-
});
|
|
37
|
+
return request_1.default.get(requestOptions);
|
|
46
38
|
}
|
|
47
39
|
options() {
|
|
48
40
|
const options = [
|
|
@@ -57,6 +57,24 @@ exports.accessToken = {
|
|
|
57
57
|
catch (_a) {
|
|
58
58
|
}
|
|
59
59
|
return userName;
|
|
60
|
+
},
|
|
61
|
+
getUserIdFromAccessToken(accessToken) {
|
|
62
|
+
let userId = '';
|
|
63
|
+
if (!accessToken || accessToken.length === 0) {
|
|
64
|
+
return userId;
|
|
65
|
+
}
|
|
66
|
+
const chunks = accessToken.split('.');
|
|
67
|
+
if (chunks.length !== 3) {
|
|
68
|
+
return userId;
|
|
69
|
+
}
|
|
70
|
+
const tokenString = Buffer.from(chunks[1], 'base64').toString();
|
|
71
|
+
try {
|
|
72
|
+
const token = JSON.parse(tokenString);
|
|
73
|
+
userId = token.oid;
|
|
74
|
+
}
|
|
75
|
+
catch (_a) {
|
|
76
|
+
}
|
|
77
|
+
return userId;
|
|
60
78
|
}
|
|
61
79
|
};
|
|
62
80
|
//# sourceMappingURL=accessToken.js.map
|
package/dist/utils/planner.js
CHANGED
|
@@ -24,10 +24,11 @@ exports.planner = {
|
|
|
24
24
|
/**
|
|
25
25
|
* Get Planner plan by ID.
|
|
26
26
|
* @param id Planner ID.
|
|
27
|
+
* @param metadata OData metadata level. Default is none
|
|
27
28
|
*/
|
|
28
|
-
getPlanById(id) {
|
|
29
|
+
getPlanById(id, metadata = 'none') {
|
|
29
30
|
return __awaiter(this, void 0, void 0, function* () {
|
|
30
|
-
const requestOptions = getRequestOptions(`${graphResource}/v1.0/planner/plans/${id}`,
|
|
31
|
+
const requestOptions = getRequestOptions(`${graphResource}/v1.0/planner/plans/${id}`, metadata);
|
|
31
32
|
try {
|
|
32
33
|
return yield request_1.default.get(requestOptions);
|
|
33
34
|
}
|
|
@@ -44,19 +45,19 @@ exports.planner = {
|
|
|
44
45
|
return odata_1.odata.getAllItems(`${graphResource}/v1.0/groups/${groupId}/planner/plans`, 'none');
|
|
45
46
|
},
|
|
46
47
|
/**
|
|
47
|
-
* Get Planner plan by
|
|
48
|
-
* @param
|
|
48
|
+
* Get Planner plan by title in a specific group.
|
|
49
|
+
* @param title Title of the Planner plan. Case insensitive.
|
|
49
50
|
* @param groupId Owner group ID .
|
|
50
51
|
*/
|
|
51
|
-
|
|
52
|
+
getPlanByTitle(title, groupId) {
|
|
52
53
|
return __awaiter(this, void 0, void 0, function* () {
|
|
53
54
|
const plans = yield this.getPlansByGroupId(groupId);
|
|
54
|
-
const filteredPlans = plans.filter(p => p.title && p.title.toLowerCase() ===
|
|
55
|
+
const filteredPlans = plans.filter(p => p.title && p.title.toLowerCase() === title.toLowerCase());
|
|
55
56
|
if (!filteredPlans.length) {
|
|
56
|
-
throw Error(`The specified plan '${
|
|
57
|
+
throw Error(`The specified plan '${title}' does not exist.`);
|
|
57
58
|
}
|
|
58
59
|
if (filteredPlans.length > 1) {
|
|
59
|
-
throw Error(`Multiple plans with
|
|
60
|
+
throw Error(`Multiple plans with title '${title}' found: ${filteredPlans.map(x => x.id)}.`);
|
|
60
61
|
}
|
|
61
62
|
return filteredPlans[0];
|
|
62
63
|
});
|
package/dist/utils/validation.js
CHANGED
|
@@ -6,8 +6,12 @@ exports.validation = {
|
|
|
6
6
|
return guids.every(guid => this.isValidGuid(guid));
|
|
7
7
|
},
|
|
8
8
|
isValidGuid(guid) {
|
|
9
|
+
if (!guid) {
|
|
10
|
+
return false;
|
|
11
|
+
}
|
|
9
12
|
const guidRegEx = new RegExp(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i);
|
|
10
|
-
|
|
13
|
+
// verify if the guid is a valid guid. @meid will be replaced in a later stage with the actual user id of the logged in user
|
|
14
|
+
return guidRegEx.test(guid) || guid.toLocaleLowerCase().trim() === "@meid";
|
|
11
15
|
},
|
|
12
16
|
isValidTeamsChannelId(guid) {
|
|
13
17
|
const guidRegEx = new RegExp(/^19:[0-9a-zA-Z-_]+@thread\.(skype|tacv2)$/i);
|
|
@@ -16,15 +16,33 @@ m365 aad o365group restore [options]
|
|
|
16
16
|
|
|
17
17
|
## Options
|
|
18
18
|
|
|
19
|
-
`-i, --id
|
|
20
|
-
: The ID of the Microsoft 365 Group to restore
|
|
19
|
+
`-i, --id [id]`
|
|
20
|
+
: The ID of the Microsoft 365 Group to restore. Specify either `id`, `displayName` or `mailNickname` but not multiple.
|
|
21
|
+
|
|
22
|
+
`-d, --displayName [displayName]`
|
|
23
|
+
: Display name for the Microsoft 365 Group to restore. Specify either `id`, `displayName` or `mailNickname` but not multiple.
|
|
24
|
+
|
|
25
|
+
`-m, --mailNickname [mailNickname]`
|
|
26
|
+
: Name of the group e-mail (part before the @). Specify either `id`, `displayName` or `mailNickname` but not multiple.
|
|
21
27
|
|
|
22
28
|
--8<-- "docs/cmd/_global.md"
|
|
23
29
|
|
|
24
30
|
## Examples
|
|
25
31
|
|
|
26
|
-
Restores the Microsoft 365 Group with
|
|
32
|
+
Restores the Microsoft 365 Group with specific ID
|
|
27
33
|
|
|
28
34
|
```sh
|
|
29
35
|
m365 aad o365group recyclebinitem restore --id 28beab62-7540-4db1-a23f-29a6018a3848
|
|
30
36
|
```
|
|
37
|
+
|
|
38
|
+
Restores the Microsoft 365 Group with specific name
|
|
39
|
+
|
|
40
|
+
```sh
|
|
41
|
+
m365 aad o365group recyclebinitem restore --displayName "My Group"
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Restores the Microsoft 365 Group with specific mail nickname
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
m365 aad o365group recyclebinitem restore --mailNickname "Mygroup"
|
|
48
|
+
```
|
|
@@ -56,6 +56,18 @@ For the user with id _1caf7dcd-7e83-4c3a-94f7-932a1299c844_ retrieve the user na
|
|
|
56
56
|
m365 aad user get --id 1caf7dcd-7e83-4c3a-94f7-932a1299c844 --properties "userPrincipalName,mail,displayName"
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
+
Get information about the currently logged user using the Id token
|
|
60
|
+
|
|
61
|
+
```sh
|
|
62
|
+
m365 aad user get --id "@meId"
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Get information about the currently logged in user using the UserName token
|
|
66
|
+
|
|
67
|
+
```sh
|
|
68
|
+
m365 aad user get --userName "@meUserName"
|
|
69
|
+
```
|
|
70
|
+
|
|
59
71
|
## More information
|
|
60
72
|
|
|
61
73
|
- Microsoft Graph User properties: [https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/user#properties](https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/user#properties)
|
|
@@ -14,16 +14,19 @@ m365 planner bucket add [options]
|
|
|
14
14
|
: Name of the bucket to add.
|
|
15
15
|
|
|
16
16
|
`--planId [planId]`
|
|
17
|
-
:
|
|
17
|
+
: ID of the plan to which the bucket belongs. Specify either `planId` or `planTitle` but not both.
|
|
18
|
+
|
|
19
|
+
`--planTitle [planTitle]`
|
|
20
|
+
: Title of the plan to which the bucket belongs. Specify either `planId` or `planTitle` but not both.
|
|
18
21
|
|
|
19
22
|
`--planName [planName]`
|
|
20
|
-
:
|
|
23
|
+
: (deprecated. Use `planTitle` instead) Title of the plan to which the bucket belongs.
|
|
21
24
|
|
|
22
25
|
`--ownerGroupId [ownerGroupId]`
|
|
23
|
-
: ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `
|
|
26
|
+
: ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
|
|
24
27
|
|
|
25
28
|
`--ownerGroupName [ownerGroupName]`
|
|
26
|
-
: Name of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `
|
|
29
|
+
: Name of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
|
|
27
30
|
|
|
28
31
|
`--orderHint [orderHint]`
|
|
29
32
|
: Hint used to order items of this type in a list view. The format is defined as outlined [here](https://docs.microsoft.com/en-us/graph/api/resources/planner-order-hint-format?view=graph-rest-1.0).
|
|
@@ -38,8 +41,8 @@ Adds a Microsoft Planner bucket with the name _My Planner Bucket_ for plan with
|
|
|
38
41
|
m365 planner bucket add --name "My Planner Bucket" --planId "xqQg5FS2LkCp935s-FIFm2QAFkHM" --orderHint " !"
|
|
39
42
|
```
|
|
40
43
|
|
|
41
|
-
Adds a Microsoft Planner bucket with the name _My Planner Bucket_ for plan with the
|
|
44
|
+
Adds a Microsoft Planner bucket with the name _My Planner Bucket_ for plan with the title _My Planner Plan_ owned by group _My Planner Group_
|
|
42
45
|
|
|
43
46
|
```sh
|
|
44
|
-
m365 planner bucket add --name "My Planner Bucket" --
|
|
47
|
+
m365 planner bucket add --name "My Planner Bucket" --planTitle "My Planner Plan" --ownerGroupName "My Planner Group"
|
|
45
48
|
```
|
|
@@ -17,16 +17,19 @@ m365 planner bucket get [options]
|
|
|
17
17
|
: Name of the bucket to retrieve details. Specify either `id` or `name` but not both.
|
|
18
18
|
|
|
19
19
|
`--planId [planId]`
|
|
20
|
-
:
|
|
20
|
+
: ID of the plan to which the bucket belongs. Specify either `planId` or `planTitle` when using `name`.
|
|
21
|
+
|
|
22
|
+
`--planTitle [planTitle]`
|
|
23
|
+
: Title of the plan to which the bucket belongs. Specify either `planId` or `planTitle` when using `name`.
|
|
21
24
|
|
|
22
25
|
`--planName [planName]`
|
|
23
|
-
:
|
|
26
|
+
: (deprecated. Use `planTitle` instead) Title of the plan to which the bucket belongs.
|
|
24
27
|
|
|
25
28
|
`--ownerGroupId [ownerGroupId]`
|
|
26
|
-
: ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `
|
|
29
|
+
: ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
|
|
27
30
|
|
|
28
31
|
`--ownerGroupName [ownerGroupName]`
|
|
29
|
-
: Name of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `
|
|
32
|
+
: Name of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
|
|
30
33
|
|
|
31
34
|
--8<-- "docs/cmd/_global.md"
|
|
32
35
|
|
|
@@ -47,11 +50,11 @@ m365 planner bucket get --name "Planner Bucket A" --planId "xqQg5FS2LkCp935s-FIF
|
|
|
47
50
|
Gets the Microsoft Planner bucket in the Plan _My Plan_ owned by group _My Group_
|
|
48
51
|
|
|
49
52
|
```sh
|
|
50
|
-
m365 planner bucket get --name "Planner Bucket A" --
|
|
53
|
+
m365 planner bucket get --name "Planner Bucket A" --planTitle "My Plan" --ownerGroupName "My Group"
|
|
51
54
|
```
|
|
52
55
|
|
|
53
56
|
Gets the Microsoft Planner bucket in the Plan _My Plan_ owned by groupId ee0f40fc-b2f7-45c7-b62d-11b90dd2ea8e
|
|
54
57
|
|
|
55
58
|
```sh
|
|
56
|
-
m365 planner bucket get --name "Planner Bucket A" --
|
|
57
|
-
```
|
|
59
|
+
m365 planner bucket get --name "Planner Bucket A" --planTitle "My Plan" --ownerGroupId "ee0f40fc-b2f7-45c7-b62d-11b90dd2ea8e"
|
|
60
|
+
```
|
|
@@ -11,16 +11,19 @@ m365 planner bucket list [options]
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
13
|
`--planId [planId]`
|
|
14
|
-
: ID of the plan to list the buckets of. Specify either `planId` or `
|
|
14
|
+
: ID of the plan to list the buckets of. Specify either `planId` or `planTitle` but not both.
|
|
15
|
+
|
|
16
|
+
`--planTitle [planTitle]`
|
|
17
|
+
: Title of the plan to list the buckets of. Specify either `planId` or `planTitle` but not both.
|
|
15
18
|
|
|
16
19
|
`--planName [planName]`
|
|
17
|
-
:
|
|
20
|
+
: (deprecated. Use `planTitle` instead) Title of the plan to which the bucket belongs.
|
|
18
21
|
|
|
19
22
|
`--ownerGroupId [ownerGroupId]`
|
|
20
|
-
: ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `
|
|
23
|
+
: ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
|
|
21
24
|
|
|
22
25
|
`--ownerGroupName [ownerGroupName]`
|
|
23
|
-
: Name of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `
|
|
26
|
+
: Name of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
|
|
24
27
|
|
|
25
28
|
--8<-- "docs/cmd/_global.md"
|
|
26
29
|
|
|
@@ -35,5 +38,5 @@ m365 planner bucket list --planId "xqQg5FS2LkCp935s-FIFm2QAFkHM"
|
|
|
35
38
|
Lists the Microsoft Planner buckets in the Plan _My Plan_ owned by group _My Group_
|
|
36
39
|
|
|
37
40
|
```sh
|
|
38
|
-
m365 planner bucket list --
|
|
41
|
+
m365 planner bucket list --planTitle "My Plan" --ownerGroupName "My Group"
|
|
39
42
|
```
|
|
@@ -17,16 +17,19 @@ m365 planner bucket remove [options]
|
|
|
17
17
|
: Name of the bucket to remove. Specify either `id` or `name` but not both.
|
|
18
18
|
|
|
19
19
|
`--planId [planId]`
|
|
20
|
-
: ID of the plan to which the bucket to remove belongs. Specify either `planId` or `
|
|
20
|
+
: ID of the plan to which the bucket to remove belongs. Specify either `planId` or `planTitle` when using `name`.
|
|
21
|
+
|
|
22
|
+
`--planTitle [planTitle]`
|
|
23
|
+
: Title of the plan to which the bucket to remove belongs. Specify either `planId` or `planTitle` when using `name`.
|
|
21
24
|
|
|
22
25
|
`--planName [planName]`
|
|
23
|
-
:
|
|
26
|
+
: (deprecated. Use `planTitle` instead) Title of the plan to which the bucket belongs.
|
|
24
27
|
|
|
25
28
|
`--ownerGroupId [ownerGroupId]`
|
|
26
|
-
: ID of the group to which the plan belongs. Specify either `ownerGroupId` or `ownerGroupName` when using `
|
|
29
|
+
: ID of the group to which the plan belongs. Specify either `ownerGroupId` or `ownerGroupName` when using `planTitle`.
|
|
27
30
|
|
|
28
31
|
`--ownerGroupName [ownerGroupName]`
|
|
29
|
-
: Name of the group to which the plan belongs. Specify either `ownerGroupId` or `ownerGroupName` when using `
|
|
32
|
+
: Name of the group to which the plan belongs. Specify either `ownerGroupId` or `ownerGroupName` when using `planTitle`.
|
|
30
33
|
|
|
31
34
|
`--confirm`
|
|
32
35
|
: Don't prompt for confirmation
|
|
@@ -56,5 +59,5 @@ m365 planner bucket remove --name "My Bucket" --planId "oUHpnKBFekqfGE_PS6GGUZcA
|
|
|
56
59
|
Removes the Microsoft Planner bucket with name _My Bucket_ in the Plan _My Plan_ owned by group _My Group_
|
|
57
60
|
|
|
58
61
|
```sh
|
|
59
|
-
m365 planner bucket remove --name "My Bucket" --
|
|
62
|
+
m365 planner bucket remove --name "My Bucket" --planTitle "My Plan" --ownerGroupName "My Group"
|
|
60
63
|
```
|
|
@@ -17,16 +17,19 @@ m365 planner bucket set [options]
|
|
|
17
17
|
: Name of the bucket. Specify either `id` or `name` but not both.
|
|
18
18
|
|
|
19
19
|
`--planId [planId]`
|
|
20
|
-
: ID of the plan to update the bucket of. Specify either `planId` or `
|
|
20
|
+
: ID of the plan to update the bucket of. Specify either `planId` or `planTitle` when using `name`.
|
|
21
|
+
|
|
22
|
+
`--planTitle [planTitle]`
|
|
23
|
+
: Title of the plan to update the bucket of. Specify either `planId` or `planTitle` when using `name`. Always use in combination with either `ownerGroupId` or `ownerGroupName`.
|
|
21
24
|
|
|
22
25
|
`--planName [planName]`
|
|
23
|
-
:
|
|
26
|
+
: (deprecated. Use `planTitle` instead) Title of the plan to which the bucket belongs.
|
|
24
27
|
|
|
25
28
|
`--ownerGroupId [ownerGroupId]`
|
|
26
|
-
: ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `
|
|
29
|
+
: ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
|
|
27
30
|
|
|
28
31
|
`--ownerGroupName [ownerGroupName]`
|
|
29
|
-
: Name of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `
|
|
32
|
+
: Name of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
|
|
30
33
|
|
|
31
34
|
`--newName [newName]`
|
|
32
35
|
: New name of the bucket.
|
|
@@ -47,11 +50,11 @@ m365 planner bucket set --id "vncYUXCRBke28qMLB-d4xJcACtNz" --newName "New bucke
|
|
|
47
50
|
Updates the Microsoft Planner bucket named _My Bucket_ in the Plan _My Plan_ owned by group _My Group_
|
|
48
51
|
|
|
49
52
|
```sh
|
|
50
|
-
m365 planner bucket set --name "My Bucket" --
|
|
53
|
+
m365 planner bucket set --name "My Bucket" --planTitle "My Plan" --ownerGroupName "My Group" --newName "New bucket name"
|
|
51
54
|
```
|
|
52
55
|
|
|
53
56
|
Updates the Microsoft Planner bucket named _My Bucket_ in the Plan _My Plan_ owned by group with ID _00000000-0000-0000-0000-000000000000_
|
|
54
57
|
|
|
55
58
|
```sh
|
|
56
|
-
m365 planner bucket set --name "My Bucket" --
|
|
59
|
+
m365 planner bucket set --name "My Bucket" --planTitle "My Plan" --ownerGroupId 00000000-0000-0000-0000-000000000000 --newName "New bucket name"
|
|
57
60
|
```
|
|
@@ -19,18 +19,34 @@ m365 planner plan add [options]
|
|
|
19
19
|
`--ownerGroupName [ownerGroupName]`
|
|
20
20
|
: Name of the Group that owns the plan. A valid group must exist before this option can be set. Specify either `ownerGroupId` or `ownerGroupName` but not both.
|
|
21
21
|
|
|
22
|
+
`--shareWithUserIds [shareWithUserIds]`
|
|
23
|
+
: The comma-separated IDs of the users with whom you want to share the plan. Specify either `shareWithUserIds` or `shareWithUserNames` but not both.
|
|
24
|
+
|
|
25
|
+
`--shareWithUserNames [shareWithUserNames]`
|
|
26
|
+
: The comma-separated UPNs of the users with whom you want to share the plan. Specify either `shareWithUserIds` or `shareWithUserNames` but not both.
|
|
27
|
+
|
|
22
28
|
--8<-- "docs/cmd/_global.md"
|
|
23
29
|
|
|
30
|
+
## Remarks
|
|
31
|
+
|
|
32
|
+
Related to the options `--shareWithUserIds` and `--shareWithUserNames`. If you are leveraging Microsoft 365 groups, use the `aad o365group user` commands to manage group membership to share the [group's](https://pnp.github.io/cli-microsoft365/cmd/aad/o365group/o365group-user-add/) plan. You can also add existing members of the group to this collection though it is not required for them to access the plan owned by the group.
|
|
33
|
+
|
|
24
34
|
## Examples
|
|
25
35
|
|
|
26
36
|
Adds a Microsoft Planner plan with the name _My Planner Plan_ for Group _233e43d0-dc6a-482e-9b4e-0de7a7bce9b4_
|
|
27
37
|
|
|
28
38
|
```sh
|
|
29
|
-
m365 planner plan add --title
|
|
39
|
+
m365 planner plan add --title 'My Planner Plan' --ownerGroupId '233e43d0-dc6a-482e-9b4e-0de7a7bce9b4'
|
|
30
40
|
```
|
|
31
41
|
|
|
32
42
|
Adds a Microsoft Planner plan with the name _My Planner Plan_ for Group _My Planner Group_
|
|
33
43
|
|
|
34
44
|
```sh
|
|
35
|
-
m365 planner plan add --title
|
|
45
|
+
m365 planner plan add --title 'My Planner Plan' --ownerGroupName 'My Planner Group'
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Adds a Microsoft Planner plan with the name _My Planner Plan_ for Group _My Planner Group_ and share it with the users _Allan.Carroll@contoso.com_ and _Ida.Stevens@contoso.com_
|
|
49
|
+
|
|
50
|
+
```sh
|
|
51
|
+
m365 planner plan add --title 'My Planner Plan' --ownerGroupName 'My Planner Group' --shareWithUserNames 'Allan.Carroll@contoso.com,Ida.Stevens@contoso.com'
|
|
36
52
|
```
|
|
@@ -8,6 +8,12 @@ Retrieve information about the specified plan
|
|
|
8
8
|
m365 planner plan get [options]
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
+
## Alias
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
m365 planner plan details get [options]
|
|
15
|
+
```
|
|
16
|
+
|
|
11
17
|
## Options
|
|
12
18
|
|
|
13
19
|
`-i, --id [id]`
|
|
@@ -16,11 +22,17 @@ m365 planner plan get [options]
|
|
|
16
22
|
`-t, --title [title]`
|
|
17
23
|
: Title of the plan. Specify either `id` or `title` but not both.
|
|
18
24
|
|
|
25
|
+
`--planId [planId]`
|
|
26
|
+
: (deprecated. Use `id` instead) ID of the plan. Specify either `planId` or `planTitle` but not both.
|
|
27
|
+
|
|
28
|
+
`---planTitle [planTitle]`
|
|
29
|
+
: (deprecated. Use `title` instead) Title of the plan. Specify either `planId` or `planTitle` but not both.
|
|
30
|
+
|
|
19
31
|
`--ownerGroupId [ownerGroupId]`
|
|
20
|
-
: ID of the Group that owns the plan. Specify either `ownerGroupId` or `ownerGroupName` when using `title`.
|
|
32
|
+
: ID of the Group that owns the plan. Specify either `ownerGroupId` or `ownerGroupName` when using `title` or the deprecated `planTitle`.
|
|
21
33
|
|
|
22
34
|
`--ownerGroupName [ownerGroupName]`
|
|
23
|
-
: Name of the Group that owns the plan. Specify either `ownerGroupId` or `ownerGroupName` when using `title`.
|
|
35
|
+
: Name of the Group that owns the plan. Specify either `ownerGroupId` or `ownerGroupName` when using `title` or the deprecated `planTitle`.
|
|
24
36
|
|
|
25
37
|
--8<-- "docs/cmd/_global.md"
|
|
26
38
|
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# planner plan remove
|
|
2
|
+
|
|
3
|
+
Removes the Microsoft Planner plan
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 planner plan remove [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`i, --id [id]`
|
|
14
|
+
: ID of the plan to remove. Specify either `id` or `title` but not both.
|
|
15
|
+
|
|
16
|
+
`-t, --title [title]`
|
|
17
|
+
: Title of the plan to remove. Specify either `id` or `title` but not both.
|
|
18
|
+
|
|
19
|
+
`--ownerGroupId [ownerGroupId]`
|
|
20
|
+
: ID of the Group that owns the plan. Specify either `ownerGroupId` or `ownerGroupName` when using `title`.
|
|
21
|
+
|
|
22
|
+
`--ownerGroupName [ownerGroupName]`
|
|
23
|
+
: Name of the Group that owns the plan. Specify either `ownerGroupId` or `ownerGroupName` when using `title`.
|
|
24
|
+
|
|
25
|
+
`--confirm`
|
|
26
|
+
: Don't prompt for confirmation.
|
|
27
|
+
|
|
28
|
+
--8<-- "docs/cmd/_global.md"
|
|
29
|
+
|
|
30
|
+
## Examples
|
|
31
|
+
|
|
32
|
+
Removes the Microsoft Planner plan by ID
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
m365 planner plan remove --id gndWOTSK60GfPQfiDDj43JgACDCb
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Removes the Microsoft Planner plan with title _My Plan_ in group with specific ID
|
|
39
|
+
|
|
40
|
+
```sh
|
|
41
|
+
m365 planner plan remove --title "My Plan" --ownerGroupId 00000000-0000-0000-0000-000000000000
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Removes the Microsoft Planner plan with title _My Plan_ in group with name _My Planner Group_ without confirmation prompt
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
m365 planner plan remove --title "My Plan" --ownerGroupName "My Planner Group" --confirm
|
|
48
|
+
```
|
|
@@ -14,22 +14,25 @@ m365 planner task add [options]
|
|
|
14
14
|
: Title of the task to add.
|
|
15
15
|
|
|
16
16
|
`--planId [planId]`
|
|
17
|
-
:
|
|
17
|
+
: ID of the plan to which the task belongs. Specify either `planId` or `planTitle` but not both.
|
|
18
|
+
|
|
19
|
+
`--planTitle [planTitle]`
|
|
20
|
+
: Title of the plan to which the task belongs. Specify either `planId` or `planTitle` but not both.
|
|
18
21
|
|
|
19
22
|
`--planName [planName]`
|
|
20
|
-
:
|
|
23
|
+
: (deprecated. Use `planTitle` instead) Title of the plan to which the bucket belongs.
|
|
21
24
|
|
|
22
25
|
`--ownerGroupId [ownerGroupId]`
|
|
23
|
-
: ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `
|
|
26
|
+
: ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
|
|
24
27
|
|
|
25
28
|
`--ownerGroupName [ownerGroupName]`
|
|
26
|
-
: Name of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `
|
|
29
|
+
: Name of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
|
|
27
30
|
|
|
28
31
|
`--bucketId [bucketId]`
|
|
29
|
-
:
|
|
32
|
+
: ID of the bucket to which the task belongs. The bucket needs to exist in the selected plan. Specify either `bucketId` or `bucketName` but not both.
|
|
30
33
|
|
|
31
34
|
`--bucketName [bucketName]`
|
|
32
|
-
:
|
|
35
|
+
: Name of the bucket to which the task belongs. The bucket needs to exist in the selected plan. Specify either `bucketId` or `bucketName` but not both.
|
|
33
36
|
|
|
34
37
|
`--startDateTime [startDateTime]`
|
|
35
38
|
: The date and time when the task started. This should be defined as a valid ISO 8601 string. `2021-12-16T18:28:48.6964197Z`
|
|
@@ -89,10 +92,10 @@ Adds a Microsoft Planner task with the name _My Planner Task_ for plan with the
|
|
|
89
92
|
m365 planner task add --title "My Planner Task" --planId "8QZEH7b3wkSbGQobscsM5gADCBa" --bucketId "IK8tuFTwQEa5vTonM7ZMRZgAKdna"
|
|
90
93
|
```
|
|
91
94
|
|
|
92
|
-
Adds a Completed Microsoft Planner task with the name _My Planner Task_ for plan with the
|
|
95
|
+
Adds a Completed Microsoft Planner task with the name _My Planner Task_ for plan with the title _My Planner Plan_ owned by group _My Planner Group_ and for the bucket with the ID _IK8tuFTwQEa5vTonM7ZMRZgAKdna_
|
|
93
96
|
|
|
94
97
|
```sh
|
|
95
|
-
m365 planner task add --title "My Planner task" --
|
|
98
|
+
m365 planner task add --title "My Planner task" --planTitle "My Planner Plan" --ownerGroupName "My Planner Group" --bucketId "IK8tuFTwQEa5vTonM7ZMRZgAKdna" --percentComplete 100
|
|
96
99
|
```
|
|
97
100
|
|
|
98
101
|
Adds a Microsoft Planner task with the name _My Planner Task_ for plan with the ID _8QZEH7b3wkbGQobscsM5gADCBa_ and for the bucket with the ID _IK8tuFTwQEa5vTonM7ZMRZgAKdna_. The new task will be assigned to the users _Allan.Carroll@contoso.com_ and _Ida.Stevens@contoso.com_ and receive a due date for _2021-12-16_
|
|
@@ -8,6 +8,12 @@ Retrieve the specified planner task
|
|
|
8
8
|
m365 planner task get [options]
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
+
## Alias
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
m365 planner task details get [options]
|
|
15
|
+
```
|
|
16
|
+
|
|
11
17
|
## Options
|
|
12
18
|
|
|
13
19
|
`-i, --id [id]`
|
|
@@ -20,22 +26,25 @@ m365 planner task get [options]
|
|
|
20
26
|
: (deprecated. Use `id` instead) ID of the task.
|
|
21
27
|
|
|
22
28
|
`--bucketId [bucketId]`
|
|
23
|
-
:
|
|
29
|
+
: ID of the bucket to which the task belongs. Specify `bucketId` or `bucketName` when using `title`.
|
|
24
30
|
|
|
25
31
|
`--bucketName [bucketName]`
|
|
26
|
-
:
|
|
32
|
+
: Name of the bucket to which the task belongs. Specify `bucketId` or `bucketName` when using `title`.
|
|
27
33
|
|
|
28
34
|
`--planId [planId]`
|
|
29
|
-
:
|
|
35
|
+
: ID of the plan to which the task belongs. Specify `planId` or `planTitle` when using `bucketName`.
|
|
36
|
+
|
|
37
|
+
`--planTitle [planTitle]`
|
|
38
|
+
: Title of the plan to which the task belongs. Specify `planId` or `planTitle` when using `bucketName`.
|
|
30
39
|
|
|
31
40
|
`--planName [planName]`
|
|
32
|
-
:
|
|
41
|
+
: (deprecated. Use `planTitle` instead) Title of the plan to which the bucket belongs.
|
|
33
42
|
|
|
34
43
|
`--ownerGroupId [ownerGroupId]`
|
|
35
|
-
: ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `
|
|
44
|
+
: ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
|
|
36
45
|
|
|
37
46
|
`--ownerGroupName [ownerGroupName]`
|
|
38
|
-
: Name of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `
|
|
47
|
+
: Name of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
|
|
39
48
|
|
|
40
49
|
--8<-- "docs/cmd/_global.md"
|
|
41
50
|
|
|
@@ -47,8 +56,8 @@ Retrieve the specified planner task by id
|
|
|
47
56
|
m365 planner task get --id "vzCcZoOv-U27PwydxHB8opcADJo-"
|
|
48
57
|
```
|
|
49
58
|
|
|
50
|
-
Retrieve the specified planner task with the title _My Planner Task_ from the bucket named _My Planner Bucket_
|
|
59
|
+
Retrieve the specified planner task with the title _My Planner Task_ from the bucket named _My Planner Bucket_. Based on the plan with the title _My Planner Plan_ owned by the group _My Planner Group_.
|
|
51
60
|
|
|
52
61
|
```sh
|
|
53
|
-
m365 planner task get --title "My Planner Task" --bucketName "My Planner Bucket" --
|
|
62
|
+
m365 planner task get --title "My Planner Task" --bucketName "My Planner Bucket" --planTitle "My Planner Plan" --ownerGroupName "My Planner Group"
|
|
54
63
|
```
|
|
@@ -17,16 +17,19 @@ m365 planner task list [options]
|
|
|
17
17
|
: Name of the bucket to list the tasks of. To retrieve tasks from a bucket, specify `bucketId` or `bucketName`, but not both.
|
|
18
18
|
|
|
19
19
|
`--planId [planId]`
|
|
20
|
-
: ID of a plan to list the tasks of. To retrieve all tasks from a plan, specify either `planId` or `
|
|
20
|
+
: ID of a plan to list the tasks of. To retrieve all tasks from a plan, specify either `planId` or `planTitle` but not both. Use in combination with `bucketName` to retrieve tasks from a specific bucket.
|
|
21
|
+
|
|
22
|
+
`--planTitle [planTitle]`
|
|
23
|
+
: Title of a plan to list the tasks of. To retrieve all tasks from a plan, specify either `planId` or `planTitle` but not both. Always use in combination with either `ownerGroupId` or `ownerGroupName`. Use in combination with `bucketName` to retrieve tasks from a specific bucket.
|
|
21
24
|
|
|
22
25
|
`--planName [planName]`
|
|
23
|
-
:
|
|
26
|
+
: (deprecated. Use `planTitle` instead) Title of the plan to which the bucket belongs.
|
|
24
27
|
|
|
25
28
|
`--ownerGroupId [ownerGroupId]`
|
|
26
|
-
: ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `
|
|
29
|
+
: ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
|
|
27
30
|
|
|
28
31
|
`--ownerGroupName [ownerGroupName]`
|
|
29
|
-
: Name of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `
|
|
32
|
+
: Name of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
|
|
30
33
|
|
|
31
34
|
--8<-- "docs/cmd/_global.md"
|
|
32
35
|
|
|
@@ -52,7 +55,7 @@ m365 planner task list --planId "iVPMIgdku0uFlou-KLNg6MkAE1O2"`
|
|
|
52
55
|
List the Microsoft Planner tasks in the plan _My Plan_ in group _My Group_
|
|
53
56
|
|
|
54
57
|
```sh
|
|
55
|
-
m365 planner task list --
|
|
58
|
+
m365 planner task list --planTitle "My Plan" --ownerGroupName "My Group"
|
|
56
59
|
```
|
|
57
60
|
|
|
58
61
|
List the Microsoft Planner tasks in the bucket _FtzysDykv0-9s9toWiZhdskAD67z_
|
|
@@ -70,5 +73,5 @@ m365 planner task list --bucketName "My Bucket" --planId "iVPMIgdku0uFlou-KLNg6M
|
|
|
70
73
|
List the Microsoft Planner tasks in the bucket _My Bucket_ belonging to plan _My Plan_ in group _My Group_
|
|
71
74
|
|
|
72
75
|
```sh
|
|
73
|
-
m365 planner task list --bucketName "My Bucket" --
|
|
76
|
+
m365 planner task list --bucketName "My Bucket" --planTitle "My Plan" --ownerGroupName "My Group"
|
|
74
77
|
```
|
|
@@ -23,16 +23,19 @@ m365 planner task set [options]
|
|
|
23
23
|
: Name of the bucket to move the task to. The bucket needs to exist in the selected plan. Specify either `bucketId` or `bucketName` when using `title`.
|
|
24
24
|
|
|
25
25
|
`--planId [planId]`
|
|
26
|
-
: ID of the plan to which the bucket belongs to. Specify either `planId` or `
|
|
26
|
+
: ID of the plan to which the bucket belongs to. Specify either `planId` or `planTitle` when using `bucketName`.
|
|
27
|
+
|
|
28
|
+
`--planTitle [planTitle]`
|
|
29
|
+
: Title of the plan to which the bucket belongs to. Specify either `planId` or `planTitle` when using `bucketName`.
|
|
27
30
|
|
|
28
31
|
`--planName [planName]`
|
|
29
|
-
:
|
|
32
|
+
: (deprecated. Use `planTitle` instead) Title of the plan to which the bucket belongs.
|
|
30
33
|
|
|
31
34
|
`--ownerGroupId [ownerGroupId]`
|
|
32
|
-
: ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `
|
|
35
|
+
: ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
|
|
33
36
|
|
|
34
37
|
`--ownerGroupName [ownerGroupName]`
|
|
35
|
-
: Name of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `
|
|
38
|
+
: Name of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
|
|
36
39
|
|
|
37
40
|
`--startDateTime [startDateTime]`
|
|
38
41
|
: The date and time when the task started. This should be defined as a valid ISO 8601 string. `2021-12-16T18:28:48.6964197Z`
|
|
@@ -91,10 +94,10 @@ Updates a Microsoft Planner task name to _My Planner Task_ for the task with the
|
|
|
91
94
|
m365 planner task set --id "Z-RLQGfppU6H3663DBzfs5gAMD3o" --title "My Planner Task"
|
|
92
95
|
```
|
|
93
96
|
|
|
94
|
-
Moves a Microsoft Planner task with the ID _Z-RLQGfppU6H3663DBzfs5gAMD3o_ to the bucket named _My Planner Bucket_. Based on the plan with the
|
|
97
|
+
Moves a Microsoft Planner task with the ID _Z-RLQGfppU6H3663DBzfs5gAMD3o_ to the bucket named _My Planner Bucket_. Based on the plan with the title _My Planner Plan_ owned by the group _My Planner Group_
|
|
95
98
|
|
|
96
99
|
```sh
|
|
97
|
-
m365 planner task set --id "2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2" --bucketName "My Planner Bucket" --
|
|
100
|
+
m365 planner task set --id "2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2" --bucketName "My Planner Bucket" --planTitle "My Planner Plan" --ownerGroupName "My Planner Group"
|
|
98
101
|
```
|
|
99
102
|
|
|
100
103
|
Marks a Microsoft Planner task with the ID _Z-RLQGfppU6H3663DBzfs5gAMD3o_ as 50% complete and assigned to categories 1 and 3.
|