@pnp/cli-microsoft365 5.4.0-beta.3879fc9 → 5.4.0-beta.5d38887
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/.eslintrc.js +1 -0
- package/dist/m365/aad/commands/app/app-set.js +4 -1
- package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +4 -19
- package/dist/m365/aad/commands/o365group/o365group-get.js +3 -9
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-remove.js +129 -0
- package/dist/m365/aad/commands.js +1 -0
- package/dist/m365/base/PlannerCommand.js +10 -0
- package/dist/m365/flow/commands/flow-export.js +3 -3
- package/dist/m365/planner/commands/bucket/bucket-add.js +4 -16
- package/dist/m365/planner/commands/bucket/bucket-get.js +4 -18
- package/dist/m365/planner/commands/bucket/bucket-list.js +4 -17
- package/dist/m365/planner/commands/bucket/bucket-remove.js +4 -18
- package/dist/m365/planner/commands/bucket/bucket-set.js +4 -18
- package/dist/m365/planner/commands/plan/plan-add.js +4 -16
- package/dist/m365/planner/commands/plan/plan-details-get.js +4 -19
- package/dist/m365/planner/commands/plan/plan-get.js +4 -17
- package/dist/m365/planner/commands/plan/plan-list.js +4 -17
- package/dist/m365/planner/commands/task/task-add.js +4 -16
- package/dist/m365/planner/commands/task/task-checklistitem-add.js +89 -0
- package/dist/m365/planner/commands/task/{task-details-get.js → task-checklistitem-list.js} +21 -13
- package/dist/m365/planner/commands/task/task-checklistitem-remove.js +85 -0
- package/dist/m365/planner/commands/task/task-get.js +40 -29
- package/dist/m365/planner/commands/task/task-list.js +4 -16
- package/dist/m365/planner/commands/task/task-reference-remove.js +125 -0
- package/dist/m365/planner/commands/task/task-set.js +4 -16
- package/dist/m365/planner/commands/tenant/tenant-settings-list.js +33 -0
- package/dist/m365/planner/commands.js +6 -1
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-list.js +102 -0
- package/dist/m365/spo/commands/hubsite/hubsite-list.js +1 -1
- package/dist/m365/spo/commands/list/ListPrincipalType.js +13 -0
- package/dist/m365/spo/commands/list/list-get.js +6 -0
- package/dist/m365/spo/commands/list/list-list.js +10 -1
- package/dist/m365/spo/commands/listitem/listitem-list.js +30 -10
- package/dist/m365/spo/commands/roledefinition/roledefinition-remove.js +82 -0
- package/dist/m365/spo/commands/site/site-remove.js +23 -37
- package/dist/m365/spo/commands.js +2 -0
- package/dist/m365/teams/commands/app/app-list.js +6 -20
- package/dist/m365/teams/commands/channel/channel-get.js +6 -19
- package/dist/m365/teams/commands/channel/channel-list.js +6 -18
- package/dist/m365/teams/commands/channel/channel-member-add.js +7 -18
- package/dist/m365/teams/commands/channel/channel-member-list.js +6 -19
- package/dist/m365/teams/commands/channel/channel-member-remove.js +6 -19
- package/dist/m365/teams/commands/channel/channel-member-set.js +6 -19
- package/dist/m365/teams/commands/tab/tab-get.js +6 -19
- package/dist/m365/teams/commands/team/team-add.js +2 -7
- package/dist/m365/teams/commands/team/team-get.js +6 -19
- package/dist/utils/aadGroup.js +57 -0
- package/dist/utils/index.js +2 -0
- package/docs/docs/cmd/aad/app/app-set.md +1 -1
- package/docs/docs/cmd/aad/o365group/o365group-recyclebinitem-remove.md +45 -0
- package/docs/docs/cmd/file/file-list.md +4 -4
- package/docs/docs/cmd/planner/task/task-checklistitem-add.md +36 -0
- package/docs/docs/cmd/planner/task/task-checklistitem-list.md +24 -0
- package/docs/docs/cmd/planner/task/task-checklistitem-remove.md +36 -0
- package/docs/docs/cmd/planner/task/task-get.md +3 -0
- package/docs/docs/cmd/planner/task/task-reference-remove.md +39 -0
- package/docs/docs/cmd/planner/tenant/tenant-settings-list.md +28 -0
- package/docs/docs/cmd/spo/eventreceiver/eventreceiver-list.md +64 -0
- package/docs/docs/cmd/spo/hubsite/hubsite-list.md +1 -4
- package/docs/docs/cmd/spo/list/list-list.md +3 -0
- package/docs/docs/cmd/spo/listitem/listitem-list.md +16 -10
- package/docs/docs/cmd/spo/roledefinition/roledefinition-remove.md +36 -0
- package/package.json +1 -1
- package/docs/docs/cmd/planner/task/task-details-get.md +0 -24
|
@@ -4,6 +4,7 @@ const utils_1 = require("../../../../utils");
|
|
|
4
4
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
5
5
|
const commands_1 = require("../../commands");
|
|
6
6
|
const request_1 = require("../../../../request");
|
|
7
|
+
const aadGroup_1 = require("../../../../utils/aadGroup");
|
|
7
8
|
class TeamsChannelMemberListCommand extends GraphCommand_1.default {
|
|
8
9
|
constructor() {
|
|
9
10
|
super(...arguments);
|
|
@@ -60,27 +61,13 @@ class TeamsChannelMemberListCommand extends GraphCommand_1.default {
|
|
|
60
61
|
if (args.options.teamId) {
|
|
61
62
|
return Promise.resolve(args.options.teamId);
|
|
62
63
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
},
|
|
68
|
-
responseType: 'json'
|
|
69
|
-
};
|
|
70
|
-
return request_1.default
|
|
71
|
-
.get(requestOptions)
|
|
72
|
-
.then(response => {
|
|
73
|
-
const groupItem = response.value[0];
|
|
74
|
-
if (!groupItem) {
|
|
64
|
+
return aadGroup_1.aadGroup
|
|
65
|
+
.getGroupByDisplayName(args.options.teamName)
|
|
66
|
+
.then(group => {
|
|
67
|
+
if (group.resourceProvisioningOptions.indexOf('Team') === -1) {
|
|
75
68
|
return Promise.reject(`The specified team does not exist in the Microsoft Teams`);
|
|
76
69
|
}
|
|
77
|
-
|
|
78
|
-
return Promise.reject(`The specified team does not exist in the Microsoft Teams`);
|
|
79
|
-
}
|
|
80
|
-
if (response.value.length > 1) {
|
|
81
|
-
return Promise.reject(`Multiple Microsoft Teams teams with name ${args.options.teamName} found: ${response.value.map(x => x.id)}`);
|
|
82
|
-
}
|
|
83
|
-
return Promise.resolve(groupItem.id);
|
|
70
|
+
return group.id;
|
|
84
71
|
});
|
|
85
72
|
}
|
|
86
73
|
getChannelId(args) {
|
|
@@ -5,6 +5,7 @@ const request_1 = require("../../../../request");
|
|
|
5
5
|
const utils_1 = require("../../../../utils");
|
|
6
6
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
7
7
|
const commands_1 = require("../../commands");
|
|
8
|
+
const aadGroup_1 = require("../../../../utils/aadGroup");
|
|
8
9
|
class TeamsChannelMemberRemoveCommand extends GraphCommand_1.default {
|
|
9
10
|
constructor() {
|
|
10
11
|
super(...arguments);
|
|
@@ -94,27 +95,13 @@ class TeamsChannelMemberRemoveCommand extends GraphCommand_1.default {
|
|
|
94
95
|
if (args.options.teamId) {
|
|
95
96
|
return Promise.resolve(args.options.teamId);
|
|
96
97
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
},
|
|
102
|
-
responseType: 'json'
|
|
103
|
-
};
|
|
104
|
-
return request_1.default
|
|
105
|
-
.get(requestOptions)
|
|
106
|
-
.then(response => {
|
|
107
|
-
const groupItem = response.value[0];
|
|
108
|
-
if (!groupItem) {
|
|
98
|
+
return aadGroup_1.aadGroup
|
|
99
|
+
.getGroupByDisplayName(args.options.teamName)
|
|
100
|
+
.then(group => {
|
|
101
|
+
if (group.resourceProvisioningOptions.indexOf('Team') === -1) {
|
|
109
102
|
return Promise.reject(`The specified team does not exist in the Microsoft Teams`);
|
|
110
103
|
}
|
|
111
|
-
|
|
112
|
-
return Promise.reject(`The specified team does not exist in the Microsoft Teams`);
|
|
113
|
-
}
|
|
114
|
-
if (response.value.length > 1) {
|
|
115
|
-
return Promise.reject(`Multiple Microsoft Teams teams with name ${args.options.teamName} found: ${response.value.map(x => x.id)}`);
|
|
116
|
-
}
|
|
117
|
-
return Promise.resolve(groupItem.id);
|
|
104
|
+
return group.id;
|
|
118
105
|
});
|
|
119
106
|
}
|
|
120
107
|
getChannelId(args) {
|
|
@@ -4,6 +4,7 @@ const utils_1 = require("../../../../utils");
|
|
|
4
4
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
5
5
|
const commands_1 = require("../../commands");
|
|
6
6
|
const request_1 = require("../../../../request");
|
|
7
|
+
const aadGroup_1 = require("../../../../utils/aadGroup");
|
|
7
8
|
class TeamsChannelMemberSetCommand extends GraphCommand_1.default {
|
|
8
9
|
constructor() {
|
|
9
10
|
super(...arguments);
|
|
@@ -62,27 +63,13 @@ class TeamsChannelMemberSetCommand extends GraphCommand_1.default {
|
|
|
62
63
|
if (args.options.teamId) {
|
|
63
64
|
return Promise.resolve(args.options.teamId);
|
|
64
65
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
},
|
|
70
|
-
responseType: 'json'
|
|
71
|
-
};
|
|
72
|
-
return request_1.default
|
|
73
|
-
.get(requestOptions)
|
|
74
|
-
.then(response => {
|
|
75
|
-
const groupItem = response.value[0];
|
|
76
|
-
if (!groupItem) {
|
|
66
|
+
return aadGroup_1.aadGroup
|
|
67
|
+
.getGroupByDisplayName(args.options.teamName)
|
|
68
|
+
.then(group => {
|
|
69
|
+
if (group.resourceProvisioningOptions.indexOf('Team') === -1) {
|
|
77
70
|
return Promise.reject(`The specified team does not exist in the Microsoft Teams`);
|
|
78
71
|
}
|
|
79
|
-
|
|
80
|
-
return Promise.reject(`The specified team does not exist in the Microsoft Teams`);
|
|
81
|
-
}
|
|
82
|
-
if (response.value.length > 1) {
|
|
83
|
-
return Promise.reject(`Multiple Microsoft Teams teams with name ${args.options.teamName} found: ${response.value.map(x => x.id)}`);
|
|
84
|
-
}
|
|
85
|
-
return Promise.resolve(groupItem.id);
|
|
72
|
+
return group.id;
|
|
86
73
|
});
|
|
87
74
|
}
|
|
88
75
|
getChannelId(args) {
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const request_1 = require("../../../../request");
|
|
4
4
|
const utils_1 = require("../../../../utils");
|
|
5
|
+
const aadGroup_1 = require("../../../../utils/aadGroup");
|
|
5
6
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
6
7
|
const commands_1 = require("../../commands");
|
|
7
8
|
class TeamsTabGetCommand extends GraphCommand_1.default {
|
|
@@ -30,27 +31,13 @@ class TeamsTabGetCommand extends GraphCommand_1.default {
|
|
|
30
31
|
if (args.options.teamId) {
|
|
31
32
|
return Promise.resolve(args.options.teamId);
|
|
32
33
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
},
|
|
38
|
-
responseType: 'json'
|
|
39
|
-
};
|
|
40
|
-
return request_1.default
|
|
41
|
-
.get(requestOptions)
|
|
42
|
-
.then(response => {
|
|
43
|
-
const groupItem = response.value[0];
|
|
44
|
-
if (!groupItem) {
|
|
34
|
+
return aadGroup_1.aadGroup
|
|
35
|
+
.getGroupByDisplayName(args.options.teamName)
|
|
36
|
+
.then(group => {
|
|
37
|
+
if (group.resourceProvisioningOptions.indexOf('Team') === -1) {
|
|
45
38
|
return Promise.reject(`The specified team does not exist in the Microsoft Teams`);
|
|
46
39
|
}
|
|
47
|
-
|
|
48
|
-
return Promise.reject(`The specified team does not exist in the Microsoft Teams`);
|
|
49
|
-
}
|
|
50
|
-
if (response.value.length > 1) {
|
|
51
|
-
return Promise.reject(`Multiple Microsoft Teams teams with name ${args.options.teamName} found: ${response.value.map(x => x.id)}`);
|
|
52
|
-
}
|
|
53
|
-
return Promise.resolve(groupItem.id);
|
|
40
|
+
return group.id;
|
|
54
41
|
});
|
|
55
42
|
}
|
|
56
43
|
getChannelId(args) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const request_1 = require("../../../../request");
|
|
4
|
+
const aadGroup_1 = require("../../../../utils/aadGroup");
|
|
4
5
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
5
6
|
const commands_1 = require("../../commands");
|
|
6
7
|
var TeamsAsyncOperationStatus;
|
|
@@ -94,13 +95,7 @@ class TeamsTeamAddCommand extends GraphCommand_1.default {
|
|
|
94
95
|
if (teamsAsyncOperation.status !== TeamsAsyncOperationStatus.Succeeded) {
|
|
95
96
|
return Promise.resolve(teamsAsyncOperation);
|
|
96
97
|
}
|
|
97
|
-
return
|
|
98
|
-
url: `${this.resource}/v1.0/groups/${teamsAsyncOperation.targetResourceId}`,
|
|
99
|
-
headers: {
|
|
100
|
-
accept: 'application/json;odata.metadata=minimal'
|
|
101
|
-
},
|
|
102
|
-
responseType: 'json'
|
|
103
|
-
});
|
|
98
|
+
return aadGroup_1.aadGroup.getGroupById(teamsAsyncOperation.targetResourceId);
|
|
104
99
|
})
|
|
105
100
|
.then((output) => {
|
|
106
101
|
logger.log(output);
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const request_1 = require("../../../../request");
|
|
4
4
|
const utils_1 = require("../../../../utils");
|
|
5
|
+
const aadGroup_1 = require("../../../../utils/aadGroup");
|
|
5
6
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
6
7
|
const commands_1 = require("../../commands");
|
|
7
8
|
class TeamsTeamGetCommand extends GraphCommand_1.default {
|
|
@@ -21,27 +22,13 @@ class TeamsTeamGetCommand extends GraphCommand_1.default {
|
|
|
21
22
|
if (args.options.id) {
|
|
22
23
|
return Promise.resolve(args.options.id);
|
|
23
24
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
},
|
|
29
|
-
responseType: 'json'
|
|
30
|
-
};
|
|
31
|
-
return request_1.default
|
|
32
|
-
.get(requestOptions)
|
|
33
|
-
.then(response => {
|
|
34
|
-
const groupItem = response.value[0];
|
|
35
|
-
if (!groupItem) {
|
|
36
|
-
return Promise.reject(`The specified team does not exist in the Microsoft Teams`);
|
|
37
|
-
}
|
|
38
|
-
if (groupItem.resourceProvisioningOptions.indexOf('Team') === -1) {
|
|
25
|
+
return aadGroup_1.aadGroup
|
|
26
|
+
.getGroupByDisplayName(args.options.name)
|
|
27
|
+
.then(group => {
|
|
28
|
+
if (group.resourceProvisioningOptions.indexOf('Team') === -1) {
|
|
39
29
|
return Promise.reject(`The specified team does not exist in the Microsoft Teams`);
|
|
40
30
|
}
|
|
41
|
-
|
|
42
|
-
return Promise.reject(`Multiple Microsoft Teams teams with name ${args.options.name} found: ${response.value.map(x => x.id)}`);
|
|
43
|
-
}
|
|
44
|
-
return Promise.resolve(groupItem.id);
|
|
31
|
+
return group.id;
|
|
45
32
|
});
|
|
46
33
|
}
|
|
47
34
|
commandAction(logger, args, cb) {
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.aadGroup = void 0;
|
|
13
|
+
const request_1 = require("../request");
|
|
14
|
+
const odata_1 = require("./odata");
|
|
15
|
+
const graphResource = 'https://graph.microsoft.com';
|
|
16
|
+
exports.aadGroup = {
|
|
17
|
+
/**
|
|
18
|
+
* Retrieve a single group.
|
|
19
|
+
* @param id Group ID.
|
|
20
|
+
*/
|
|
21
|
+
getGroupById(id) {
|
|
22
|
+
const requestOptions = {
|
|
23
|
+
url: `${graphResource}/v1.0/groups/${id}`,
|
|
24
|
+
headers: {
|
|
25
|
+
accept: 'application/json;odata.metadata=none'
|
|
26
|
+
},
|
|
27
|
+
responseType: 'json'
|
|
28
|
+
};
|
|
29
|
+
return request_1.default.get(requestOptions);
|
|
30
|
+
},
|
|
31
|
+
/**
|
|
32
|
+
* Get a list of groups by display name.
|
|
33
|
+
* @param displayName Group display name.
|
|
34
|
+
*/
|
|
35
|
+
getGroupsByDisplayName(displayName) {
|
|
36
|
+
return odata_1.odata.getAllItems(`${graphResource}/v1.0/groups?$filter=displayName eq '${encodeURIComponent(displayName)}'`);
|
|
37
|
+
},
|
|
38
|
+
/**
|
|
39
|
+
* Get a single group by its display name.
|
|
40
|
+
* @param displayName Group display name.
|
|
41
|
+
* @throws Error when group was not found.
|
|
42
|
+
* @throws Error when multiple groups with the same name were found.
|
|
43
|
+
*/
|
|
44
|
+
getGroupByDisplayName(displayName) {
|
|
45
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
46
|
+
const groups = yield this.getGroupsByDisplayName(displayName);
|
|
47
|
+
if (!groups.length) {
|
|
48
|
+
throw Error(`The specified group '${displayName}' does not exist.`);
|
|
49
|
+
}
|
|
50
|
+
if (groups.length > 1) {
|
|
51
|
+
throw Error(`Multiple groups with name '${displayName}' found: ${groups.map(x => x.id).join(',')}.`);
|
|
52
|
+
}
|
|
53
|
+
return groups[0];
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=aadGroup.js.map
|
package/dist/utils/index.js
CHANGED
|
@@ -14,12 +14,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./aadGroup"), exports);
|
|
17
18
|
__exportStar(require("./accessToken"), exports);
|
|
18
19
|
__exportStar(require("./formatting"), exports);
|
|
19
20
|
__exportStar(require("./fsUtil"), exports);
|
|
20
21
|
__exportStar(require("./md"), exports);
|
|
21
22
|
__exportStar(require("./odata"), exports);
|
|
22
23
|
__exportStar(require("./packageManager"), exports);
|
|
24
|
+
__exportStar(require("./planner"), exports);
|
|
23
25
|
__exportStar(require("./sinonUtil"), exports);
|
|
24
26
|
__exportStar(require("./spfx"), exports);
|
|
25
27
|
__exportStar(require("./spo"), exports);
|
|
@@ -20,7 +20,7 @@ m365 aad app set [options]
|
|
|
20
20
|
: Name of the Azure AD application registration to update. Specify either `appId`, `objectId` or `name`
|
|
21
21
|
|
|
22
22
|
`-u, --uri [uri]`
|
|
23
|
-
: Application ID
|
|
23
|
+
: Comma-separated list of Application ID URIs to update
|
|
24
24
|
|
|
25
25
|
`-r, --redirectUris [redirectUris]`
|
|
26
26
|
: Comma-separated list of redirect URIs to add to the app registration. Requires `platform` to be specified
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# aad o365group recyclebinitem remove
|
|
2
|
+
|
|
3
|
+
Permanently deletes a Microsoft 365 Group from the recycle bin in the current tenant
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 aad o365group recyclebinitem remove [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-i, --id [id]`
|
|
14
|
+
: The ID of the Microsoft 365 Group to remove. Specify either `id`, `displayName` or `mailNickname` but not multiple.
|
|
15
|
+
|
|
16
|
+
`-d, --displayName [displayName]`
|
|
17
|
+
: Display name for the Microsoft 365 Group to remove. Specify either `id`, `displayName` or `mailNickname` but not multiple.
|
|
18
|
+
|
|
19
|
+
`-m, --mailNickname [mailNickname]`
|
|
20
|
+
: Name of the group e-mail (part before the @). Specify either `id`, `displayName` or `mailNickname` but not multiple.
|
|
21
|
+
|
|
22
|
+
`--confirm`
|
|
23
|
+
: Don't prompt for confirmation.
|
|
24
|
+
|
|
25
|
+
--8<-- "docs/cmd/_global.md"
|
|
26
|
+
|
|
27
|
+
## Examples
|
|
28
|
+
|
|
29
|
+
Removes the Microsoft 365 Group with specific ID
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
m365 aad o365group recyclebinitem remove --id "00000000-0000-0000-0000-000000000000"
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Removes the Microsoft 365 Group with specific name
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
m365 aad o365group recyclebinitem remove --displayName "My Group"
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Remove the Microsoft 365 Group with specific mail nickname without confirmation
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
m365 aad o365group recyclebinitem remove --mailNickname "Mygroup" --confirm
|
|
45
|
+
```
|
|
@@ -27,20 +27,20 @@ This command is an improved version of the `spo file list` command. The main dif
|
|
|
27
27
|
|
|
28
28
|
## Examples
|
|
29
29
|
|
|
30
|
-
Return all files from folder _Shared Documents_ located in site _https://contoso.sharepoint.com/sites/project-x_
|
|
30
|
+
Return all files from the folder _Shared Documents_ located in site _https://contoso.sharepoint.com/sites/project-x_
|
|
31
31
|
|
|
32
32
|
```sh
|
|
33
|
-
m365 file list --webUrl https://contoso.sharepoint.com/sites/project-x --
|
|
33
|
+
m365 file list --webUrl https://contoso.sharepoint.com/sites/project-x --folderUrl 'Shared Documents'
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
Return all files from the folder _Shared Documents_ and all the sub-folders of _Shared Documents_ located in site _https://contoso.sharepoint.com/sites/project-x_
|
|
37
37
|
|
|
38
38
|
```sh
|
|
39
|
-
m365 file list --webUrl https://contoso.sharepoint.com/sites/project-x --
|
|
39
|
+
m365 file list --webUrl https://contoso.sharepoint.com/sites/project-x --folderUrl 'Shared Documents' --recursive
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
Return all files from the _Important_ folder in the _Shared Documents_ document library located in site _https://contoso.sharepoint.com/sites/project-x_
|
|
43
43
|
|
|
44
44
|
```sh
|
|
45
|
-
m365 file list --webUrl https://contoso.sharepoint.com/sites/project-x --
|
|
45
|
+
m365 file list --webUrl https://contoso.sharepoint.com/sites/project-x --folderUrl 'Shared Documents/Important'
|
|
46
46
|
```
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# planner task checklistitem add
|
|
2
|
+
|
|
3
|
+
Adds a new checklist item to a Planner task
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 planner task checklistitem add [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-i, --taskId <taskId>`
|
|
14
|
+
: ID of the task.
|
|
15
|
+
|
|
16
|
+
`-t, --title <title>`
|
|
17
|
+
: Title of the checklist item.
|
|
18
|
+
|
|
19
|
+
`--isChecked`
|
|
20
|
+
: Mark the checklist item as checked.
|
|
21
|
+
|
|
22
|
+
--8<-- "docs/cmd/_global.md"
|
|
23
|
+
|
|
24
|
+
## Examples
|
|
25
|
+
|
|
26
|
+
Adds an unchecked checklist item with title _My checklist item_ to a Microsoft Planner task with ID _2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2_
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
m365 planner task checklistitem add --taskId 2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2 --title "My checklist item"
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Adds a checked checklist item with title _My checklist item_ to a Microsoft Planner task with ID _2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2_
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
m365 planner task checklistitem add --taskId 2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2 --title "My checklist item" --isChecked
|
|
36
|
+
```
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# planner task checklistitem list
|
|
2
|
+
|
|
3
|
+
Lists the checklist items of a Planner task.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 planner task checklistitem list [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-i, --taskId <taskId>`
|
|
14
|
+
: ID of the task
|
|
15
|
+
|
|
16
|
+
--8<-- "docs/cmd/_global.md"
|
|
17
|
+
|
|
18
|
+
## Examples
|
|
19
|
+
|
|
20
|
+
Lists the checklist items of a Planner task.
|
|
21
|
+
|
|
22
|
+
```sh
|
|
23
|
+
m365 planner task checklistitem list --taskId 'vzCcZoOv-U27PwydxHB8opcADJo-'
|
|
24
|
+
```
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# planner task checklistitem remove
|
|
2
|
+
|
|
3
|
+
Removes the checklist item from the Planner task.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 planner task checklistitem remove [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-i, --id <id>`
|
|
14
|
+
: ID of the checklist item.
|
|
15
|
+
|
|
16
|
+
`--taskId <taskId>`
|
|
17
|
+
: ID of the task.
|
|
18
|
+
|
|
19
|
+
`--confirm`
|
|
20
|
+
: Don't prompt for confirmation
|
|
21
|
+
|
|
22
|
+
--8<-- "docs/cmd/_global.md"
|
|
23
|
+
|
|
24
|
+
## Examples
|
|
25
|
+
|
|
26
|
+
Removes a checklist item with the id _40012_ from the Planner task with the id _2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2_
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
m365 planner task checklistitem remove --id "40012" --taskId "2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2"
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Removes a checklist item with the id _40012_ from the Planner task with the id _2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2_ without prompt
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
m365 planner task checklistitem remove --id "40012" --taskId "2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2" --confirm
|
|
36
|
+
```
|
|
@@ -16,6 +16,9 @@ m365 planner task get [options]
|
|
|
16
16
|
`-t, --title [title]`
|
|
17
17
|
: Title of the task. Specify either `id` or `title` but not both.
|
|
18
18
|
|
|
19
|
+
`--taskId [taskId]`
|
|
20
|
+
: (deprecated. Use `id` instead) ID of the task.
|
|
21
|
+
|
|
19
22
|
`--bucketId [bucketId]`
|
|
20
23
|
: Bucket ID to which the task belongs. Specify `bucketId` or `bucketName` when using `title`.
|
|
21
24
|
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# planner task reference remove
|
|
2
|
+
|
|
3
|
+
Removes the reference from the Planner task.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 planner task reference remove [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-u, --url [url]`
|
|
14
|
+
: URL location of the reference. Specify either `alias` or `url` but not both.
|
|
15
|
+
|
|
16
|
+
`--alias [alias]`
|
|
17
|
+
: The alias of the reference. Specify either `alias` or `url` but not both.
|
|
18
|
+
|
|
19
|
+
`-i, --taskId <taskId>`
|
|
20
|
+
: ID of the task.
|
|
21
|
+
|
|
22
|
+
`--confirm`
|
|
23
|
+
: Don't prompt for confirmation
|
|
24
|
+
|
|
25
|
+
--8<-- "docs/cmd/_global.md"
|
|
26
|
+
|
|
27
|
+
## Examples
|
|
28
|
+
|
|
29
|
+
Removes a reference with the url _https://www.microsoft.com_ from the Planner task with the id _2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2_
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
m365 planner task reference remove --url "https://www.microsoft.com" --taskId "2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2"
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Removes a reference with the alias _Parker_ from the Planner task with the id _2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2_
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
m365 planner task reference remove --alias "Parker" --taskId "2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2"
|
|
39
|
+
```
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# planner tenant settings list
|
|
2
|
+
|
|
3
|
+
Lists the Microsoft Planner configuration of the tenant
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 planner tenant settings list [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
--8<-- "docs/cmd/_global.md"
|
|
14
|
+
|
|
15
|
+
## Remarks
|
|
16
|
+
|
|
17
|
+
!!! important
|
|
18
|
+
To use this command you must be a global administrator.
|
|
19
|
+
|
|
20
|
+
After executing the command `planner tenant settings set`, it can take some time for all changes to propagate across the tenant. Because of this, executing this command right away can return some unexpected results.
|
|
21
|
+
|
|
22
|
+
## Examples
|
|
23
|
+
|
|
24
|
+
Lists the Microsoft Planner settings of the tenant
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
m365 planner tenant settings list
|
|
28
|
+
```
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# spo eventreceiver list
|
|
2
|
+
|
|
3
|
+
Retrieves event receivers for the specified web, site or list.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 spo eventreceiver list [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-u, --webUrl <webUrl>`
|
|
14
|
+
: The URL of the web for which to retrieve the event receivers.
|
|
15
|
+
|
|
16
|
+
`--listTitle [listTitle]`
|
|
17
|
+
: The title of the list for which to retrieve the event receivers, _if the event receivers should be retrieved from a list_.
|
|
18
|
+
Specify either `listTitle`, `listId` or `listUrl`.
|
|
19
|
+
|
|
20
|
+
`--listId [listId]`
|
|
21
|
+
: The id of the list for which to retrieve the event receivers, _if the event receivers should be retrieved from a list_.
|
|
22
|
+
Specify either `listTitle`, `listId` or `listUrl`.
|
|
23
|
+
|
|
24
|
+
`--listUrl [listUrl]`
|
|
25
|
+
: The url of the list for which to retrieve the event receivers, _if the event receivers should be retrieved from a list_.
|
|
26
|
+
Specify either `listTitle`, `listId` or `listUrl`.
|
|
27
|
+
|
|
28
|
+
`-s, --scope [scope]`
|
|
29
|
+
: The scope of which to retrieve the Event Receivers.
|
|
30
|
+
Can be either "site" or "web". Defaults to "web". Only applicable when not specifying any of the list properties.
|
|
31
|
+
|
|
32
|
+
--8<-- "docs/cmd/_global.md"
|
|
33
|
+
|
|
34
|
+
## Examples
|
|
35
|
+
|
|
36
|
+
Retrieves event receivers in web _<https://contoso.sharepoint.com/sites/contoso-sales>_.
|
|
37
|
+
|
|
38
|
+
```sh
|
|
39
|
+
m365 spo eventreceiver list --webUrl https://contoso.sharepoint.com/sites/contoso-sales
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Retrieves event receivers in site _<https://contoso.sharepoint.com/sites/contoso-sales>_.
|
|
43
|
+
|
|
44
|
+
```sh
|
|
45
|
+
m365 spo eventreceiver list --webUrl https://contoso.sharepoint.com/sites/contoso-sales --scope site
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Retrieves event receivers for list with title _Events_ in web _<https://contoso.sharepoint.com/sites/contoso-sales>_.
|
|
49
|
+
|
|
50
|
+
```sh
|
|
51
|
+
m365 spo eventreceiver list --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listTitle Events
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Retrieves event receivers for list with ID _202b8199-b9de-43fd-9737-7f213f51c991_ in web _<https://contoso.sharepoint.com/sites/contoso-sales>_.
|
|
55
|
+
|
|
56
|
+
```sh
|
|
57
|
+
m365 spo eventreceiver list --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listId '202b8199-b9de-43fd-9737-7f213f51c991'
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Retrieves event receivers for list with url _/sites/contoso-sales/lists/Events_ in web _<https://contoso.sharepoint.com/sites/contoso-sales>_.
|
|
61
|
+
|
|
62
|
+
```sh
|
|
63
|
+
m365 spo eventreceiver list --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listUrl '/sites/contoso-sales/lists/Events'
|
|
64
|
+
```
|
|
@@ -17,10 +17,7 @@ m365 spo hubsite list [options]
|
|
|
17
17
|
|
|
18
18
|
## Remarks
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
This command is based on a SharePoint API that is currently in preview and is subject to change once the API reached general availability.
|
|
22
|
-
|
|
23
|
-
When using the text output type (default), the command lists only the values of the `ID`, `SiteUrl` and `Title` properties of the hub site. When setting the output type to JSON, all available properties are included in the command output.
|
|
20
|
+
When using the text or csv output type, the command lists only the values of the `ID`, `SiteUrl` and `Title` properties of the hub site. With the output type as JSON, all available properties are included in the command output.
|
|
24
21
|
|
|
25
22
|
## Examples
|
|
26
23
|
|
|
@@ -13,6 +13,9 @@ m365 spo list list [options]
|
|
|
13
13
|
`-u, --webUrl <webUrl>`
|
|
14
14
|
: URL of the site where the lists to retrieve are located
|
|
15
15
|
|
|
16
|
+
`--executeWithLimitedPermissions`
|
|
17
|
+
: Use this option to execute this command with site member or visitor permissions. Not specifying this option will require site owner (or admin) permissions.
|
|
18
|
+
|
|
16
19
|
--8<-- "docs/cmd/_global.md"
|
|
17
20
|
|
|
18
21
|
## Examples
|