@pnp/cli-microsoft365 5.3.0-beta.d2ec1f4 → 5.3.0-beta.ebb13d0
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/Auth.js +5 -0
- package/dist/m365/aad/commands/app/app-add.js +91 -35
- package/dist/m365/aad/commands/app/app-role-list.js +1 -1
- package/dist/m365/aad/commands/app/app-set.js +91 -0
- package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +55 -22
- package/dist/m365/aad/commands/group/group-list.js +1 -1
- package/dist/m365/aad/commands/groupsetting/groupsetting-list.js +1 -1
- package/dist/m365/aad/commands/groupsettingtemplate/groupsettingtemplate-get.js +1 -1
- package/dist/m365/aad/commands/groupsettingtemplate/groupsettingtemplate-list.js +1 -1
- package/dist/m365/aad/commands/o365group/o365group-conversation-list.js +1 -1
- package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +1 -1
- package/dist/m365/aad/commands/o365group/o365group-list.js +1 -1
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-clear.js +3 -3
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-list.js +1 -1
- package/dist/m365/aad/commands/o365group/o365group-user-list.js +2 -2
- package/dist/m365/aad/commands/o365group/o365group-user-set.js +2 -2
- package/dist/m365/aad/commands/user/user-list.js +1 -1
- package/dist/m365/aad/commands/user/user-signin-list.js +1 -1
- package/dist/m365/aad/commands.js +1 -1
- package/dist/m365/app/commands/app-open.js +64 -0
- package/dist/m365/app/commands.js +1 -0
- package/dist/m365/base/PowerBICommand.js +10 -0
- package/dist/m365/file/commands/file-list.js +1 -1
- package/dist/m365/outlook/commands/message/message-list.js +1 -1
- package/dist/m365/outlook/commands/room/room-list.js +1 -1
- package/dist/m365/outlook/commands/roomlist/roomlist-list.js +1 -1
- package/dist/m365/planner/commands/bucket/bucket-add.js +8 -16
- package/dist/m365/planner/commands/bucket/bucket-get.js +186 -0
- package/dist/m365/planner/commands/bucket/bucket-list.js +10 -19
- package/dist/m365/planner/commands/bucket/bucket-remove.js +8 -20
- package/dist/m365/planner/commands/bucket/bucket-set.js +9 -21
- package/dist/m365/planner/commands/plan/plan-add.js +6 -1
- package/dist/m365/planner/commands/plan/plan-details-get.js +12 -15
- package/dist/m365/planner/commands/plan/plan-get.js +13 -18
- package/dist/m365/planner/commands/plan/plan-list.js +10 -13
- package/dist/m365/planner/commands/task/task-add.js +8 -16
- package/dist/m365/planner/commands/task/task-details-get.js +6 -0
- package/dist/m365/planner/commands/task/task-get.js +138 -7
- package/dist/m365/planner/commands/task/task-list.js +15 -24
- package/dist/m365/planner/commands/task/task-reference-add.js +75 -0
- package/dist/m365/planner/commands/task/task-reference-list.js +45 -0
- package/dist/m365/planner/commands/task/task-set.js +9 -18
- package/dist/m365/planner/commands.js +4 -1
- package/dist/m365/pp/commands/gateway/gateway-list.js +36 -0
- package/dist/m365/pp/commands/managementapp/managementapp-list.js +1 -1
- package/dist/m365/pp/commands.js +1 -0
- package/dist/m365/spo/commands/list/list-roleinheritance-break.js +84 -0
- package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +76 -0
- package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +83 -0
- package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +79 -0
- package/dist/m365/spo/commands/roledefinition/roledefinition-list.js +49 -0
- package/dist/m365/spo/commands.js +5 -0
- package/dist/m365/teams/commands/app/app-list.js +1 -1
- package/dist/m365/teams/commands/channel/channel-list.js +1 -1
- package/dist/m365/teams/commands/channel/channel-member-add.js +4 -1
- package/dist/m365/teams/commands/channel/channel-member-list.js +1 -1
- package/dist/m365/teams/commands/channel/channel-member-remove.js +3 -0
- package/dist/m365/teams/commands/channel/channel-member-set.js +3 -0
- package/dist/m365/teams/commands/chat/chat-get.js +8 -8
- package/dist/m365/teams/commands/chat/chat-list.js +1 -1
- package/dist/m365/teams/commands/chat/chat-member-list.js +1 -1
- package/dist/m365/teams/commands/chat/chat-message-list.js +1 -1
- package/dist/m365/teams/commands/chat/chat-message-send.js +6 -6
- package/dist/m365/teams/commands/chat/chatUtil.js +4 -4
- package/dist/m365/teams/commands/message/message-list.js +1 -1
- package/dist/m365/teams/commands/message/message-reply-list.js +1 -1
- package/dist/m365/teams/commands/tab/tab-list.js +1 -1
- package/dist/m365/teams/commands/team/team-list.js +1 -1
- package/dist/m365/teams/commands/user/user-app-list.js +1 -1
- package/dist/m365/teams/commands/user/user-list.js +2 -2
- package/dist/m365/tenant/commands/security/security-alerts-list.js +71 -0
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-list.js +1 -1
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-list.js +1 -1
- package/dist/m365/tenant/commands.js +1 -0
- package/dist/m365/todo/commands/list/list-list.js +1 -1
- package/dist/m365/todo/commands/task/task-list.js +1 -1
- package/dist/utils/accessToken.js +18 -0
- package/dist/utils/formatting.js +11 -2
- package/dist/utils/odata.js +2 -2
- package/dist/utils/planner.js +65 -0
- package/docs/docs/cmd/aad/app/app-add.md +15 -0
- package/docs/docs/cmd/aad/app/app-set.md +17 -0
- package/docs/docs/cmd/aad/approleassignment/approleassignment-remove.md +1 -1
- package/docs/docs/cmd/app/app-open.md +45 -0
- package/docs/docs/cmd/planner/bucket/bucket-get.md +57 -0
- package/docs/docs/cmd/planner/task/task-get.md +30 -3
- package/docs/docs/cmd/planner/task/task-reference-add.md +45 -0
- package/docs/docs/cmd/planner/task/task-reference-list.md +24 -0
- package/docs/docs/cmd/pp/gateway/gateway-list.md +21 -0
- package/docs/docs/cmd/spo/list/list-roleinheritance-break.md +55 -0
- package/docs/docs/cmd/spo/list/list-roleinheritance-reset.md +36 -0
- package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-break.md +58 -0
- package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-reset.md +39 -0
- package/docs/docs/cmd/spo/roledefinition/roledefinition-list.md +24 -0
- package/docs/docs/cmd/spo/userprofile/userprofile-get.md +1 -1
- package/docs/docs/cmd/teams/channel/channel-member-list.md +4 -4
- package/docs/docs/cmd/teams/channel/channel-member-remove.md +2 -2
- package/docs/docs/cmd/teams/channel/channel-member-set.md +2 -2
- package/docs/docs/cmd/tenant/security/security-alerts-list.md +30 -0
- package/package.json +1 -1
|
@@ -24,7 +24,7 @@ class TeamsUserAppListCommand extends GraphCommand_1.default {
|
|
|
24
24
|
.then((_userId) => {
|
|
25
25
|
userId = _userId.value;
|
|
26
26
|
const endpoint = `${this.resource}/v1.0/users/${encodeURIComponent(userId)}/teamwork/installedApps?$expand=teamsAppDefinition`;
|
|
27
|
-
return utils_1.odata.getAllItems(endpoint
|
|
27
|
+
return utils_1.odata.getAllItems(endpoint);
|
|
28
28
|
})
|
|
29
29
|
.then((items) => {
|
|
30
30
|
items.forEach(i => {
|
|
@@ -42,7 +42,7 @@ class TeamsUserListCommand extends GraphCommand_1.default {
|
|
|
42
42
|
}
|
|
43
43
|
getOwners(logger, groupId) {
|
|
44
44
|
const endpoint = `${this.resource}/v1.0/groups/${groupId}/owners?$select=id,displayName,userPrincipalName,userType`;
|
|
45
|
-
return utils_1.odata.getAllItems(endpoint
|
|
45
|
+
return utils_1.odata.getAllItems(endpoint).then((items) => {
|
|
46
46
|
this.items = this.items.concat(items);
|
|
47
47
|
// Currently there is a bug in the Microsoft Graph that returns Owners as
|
|
48
48
|
// userType 'member'. We therefore update all returned user as owner
|
|
@@ -53,7 +53,7 @@ class TeamsUserListCommand extends GraphCommand_1.default {
|
|
|
53
53
|
}
|
|
54
54
|
getMembersAndGuests(logger, groupId) {
|
|
55
55
|
const endpoint = `${this.resource}/v1.0/groups/${groupId}/members?$select=id,displayName,userPrincipalName,userType`;
|
|
56
|
-
return utils_1.odata.getAllItems(endpoint
|
|
56
|
+
return utils_1.odata.getAllItems(endpoint);
|
|
57
57
|
}
|
|
58
58
|
options() {
|
|
59
59
|
const options = [
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
4
|
+
const request_1 = require("../../../../request");
|
|
5
|
+
const commands_1 = require("../../commands");
|
|
6
|
+
class TenantSecurityAlertsListCommand extends GraphCommand_1.default {
|
|
7
|
+
get name() {
|
|
8
|
+
return commands_1.default.SECURITY_ALERTS_LIST;
|
|
9
|
+
}
|
|
10
|
+
get description() {
|
|
11
|
+
return 'Gets the security alerts for a tenant';
|
|
12
|
+
}
|
|
13
|
+
getTelemetryProperties(args) {
|
|
14
|
+
const telemetryProps = super.getTelemetryProperties(args);
|
|
15
|
+
telemetryProps.vendor = typeof args.options.vendor !== 'undefined';
|
|
16
|
+
return telemetryProps;
|
|
17
|
+
}
|
|
18
|
+
defaultProperties() {
|
|
19
|
+
return ['id', 'title', 'severity'];
|
|
20
|
+
}
|
|
21
|
+
commandAction(logger, args, cb) {
|
|
22
|
+
this
|
|
23
|
+
.listAlert(args.options)
|
|
24
|
+
.then((res) => {
|
|
25
|
+
logger.log(res);
|
|
26
|
+
cb();
|
|
27
|
+
}, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
28
|
+
}
|
|
29
|
+
listAlert(options) {
|
|
30
|
+
let queryFilter = '';
|
|
31
|
+
if (options.vendor) {
|
|
32
|
+
let vendorName = options.vendor;
|
|
33
|
+
switch (options.vendor.toLowerCase()) {
|
|
34
|
+
case 'azure security center':
|
|
35
|
+
vendorName = 'ASC';
|
|
36
|
+
break;
|
|
37
|
+
case 'microsoft cloud app security':
|
|
38
|
+
vendorName = 'MCAS';
|
|
39
|
+
break;
|
|
40
|
+
case 'azure active directory identity protection':
|
|
41
|
+
vendorName = 'IPC';
|
|
42
|
+
}
|
|
43
|
+
queryFilter = `?$filter=vendorInformation/provider eq '${encodeURIComponent(vendorName)}'`;
|
|
44
|
+
}
|
|
45
|
+
const requestOptions = {
|
|
46
|
+
url: `${this.resource}/v1.0/security/alerts${queryFilter}`,
|
|
47
|
+
headers: {
|
|
48
|
+
accept: 'application/json;odata.metadata=none'
|
|
49
|
+
},
|
|
50
|
+
responseType: 'json'
|
|
51
|
+
};
|
|
52
|
+
return request_1.default
|
|
53
|
+
.get(requestOptions)
|
|
54
|
+
.then(response => {
|
|
55
|
+
const alertList = response.value;
|
|
56
|
+
if (!alertList) {
|
|
57
|
+
return Promise.reject(`Error fetching security alerts`);
|
|
58
|
+
}
|
|
59
|
+
return Promise.resolve(alertList);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
options() {
|
|
63
|
+
const options = [
|
|
64
|
+
{ option: '--vendor [vendor]' }
|
|
65
|
+
];
|
|
66
|
+
const parentOptions = super.options();
|
|
67
|
+
return options.concat(parentOptions);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
module.exports = new TenantSecurityAlertsListCommand();
|
|
71
|
+
//# sourceMappingURL=security-alerts-list.js.map
|
package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-list.js
CHANGED
|
@@ -19,7 +19,7 @@ class TenantServiceAnnouncementHealthIssueListCommand extends GraphCommand_1.def
|
|
|
19
19
|
endpoint += `?$filter=service eq '${encodeURIComponent(args.options.service)}'`;
|
|
20
20
|
}
|
|
21
21
|
utils_1.odata
|
|
22
|
-
.getAllItems(endpoint
|
|
22
|
+
.getAllItems(endpoint)
|
|
23
23
|
.then((items) => {
|
|
24
24
|
logger.log(items);
|
|
25
25
|
cb();
|
|
@@ -19,7 +19,7 @@ class TenantServiceAnnouncementMessageListCommand extends GraphCommand_1.default
|
|
|
19
19
|
endpoint += `?$filter=services/any(c:c+eq+'${encodeURIComponent(args.options.service)}')`;
|
|
20
20
|
}
|
|
21
21
|
utils_1.odata
|
|
22
|
-
.getAllItems(endpoint
|
|
22
|
+
.getAllItems(endpoint)
|
|
23
23
|
.then((items) => {
|
|
24
24
|
logger.log(items);
|
|
25
25
|
cb();
|
|
@@ -9,6 +9,7 @@ exports.default = {
|
|
|
9
9
|
REPORT_OFFICE365ACTIVATIONSUSERDETAIL: `${prefix} report office365activationsuserdetail`,
|
|
10
10
|
REPORT_OFFICE365ACTIVATIONSUSERCOUNTS: `${prefix} report office365activationsusercounts`,
|
|
11
11
|
REPORT_SERVICESUSERCOUNTS: `${prefix} report servicesusercounts`,
|
|
12
|
+
SECURITY_ALERTS_LIST: `${prefix} security alerts list`,
|
|
12
13
|
SERVICEANNOUNCEMENT_HEALTHISSUE_GET: `${prefix} serviceannouncement healthissue get`,
|
|
13
14
|
SERVICEANNOUNCEMENT_HEALTH_GET: `${prefix} serviceannouncement health get`,
|
|
14
15
|
SERVICEANNOUNCEMENT_HEALTH_LIST: `${prefix} serviceannouncement health list`,
|
|
@@ -15,7 +15,7 @@ class TodoListListCommand extends GraphCommand_1.default {
|
|
|
15
15
|
}
|
|
16
16
|
commandAction(logger, args, cb) {
|
|
17
17
|
utils_1.odata
|
|
18
|
-
.getAllItems(`${this.resource}/v1.0/me/todo/lists
|
|
18
|
+
.getAllItems(`${this.resource}/v1.0/me/todo/lists`)
|
|
19
19
|
.then((items) => {
|
|
20
20
|
logger.log(items);
|
|
21
21
|
cb();
|
|
@@ -45,7 +45,7 @@ class TodoTaskListCommand extends GraphCommand_1.default {
|
|
|
45
45
|
.getTodoListId(args)
|
|
46
46
|
.then((listId) => {
|
|
47
47
|
const endpoint = `${this.resource}/v1.0/me/todo/lists/${listId}/tasks`;
|
|
48
|
-
return utils_1.odata.getAllItems(endpoint
|
|
48
|
+
return utils_1.odata.getAllItems(endpoint);
|
|
49
49
|
})
|
|
50
50
|
.then((items) => {
|
|
51
51
|
if (args.options.output === 'json') {
|
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.accessToken = void 0;
|
|
4
4
|
exports.accessToken = {
|
|
5
|
+
isAppOnlyAccessToken(accessToken) {
|
|
6
|
+
let isAppOnlyAccessToken = false;
|
|
7
|
+
if (!accessToken || accessToken.length === 0) {
|
|
8
|
+
return isAppOnlyAccessToken;
|
|
9
|
+
}
|
|
10
|
+
const chunks = accessToken.split('.');
|
|
11
|
+
if (chunks.length !== 3) {
|
|
12
|
+
return isAppOnlyAccessToken;
|
|
13
|
+
}
|
|
14
|
+
const tokenString = Buffer.from(chunks[1], 'base64').toString();
|
|
15
|
+
try {
|
|
16
|
+
const token = JSON.parse(tokenString);
|
|
17
|
+
isAppOnlyAccessToken = token.idtyp === 'app';
|
|
18
|
+
}
|
|
19
|
+
catch (_a) {
|
|
20
|
+
}
|
|
21
|
+
return isAppOnlyAccessToken;
|
|
22
|
+
},
|
|
5
23
|
getTenantIdFromAccessToken(accessToken) {
|
|
6
24
|
let tenantId = '';
|
|
7
25
|
if (!accessToken || accessToken.length === 0) {
|
package/dist/utils/formatting.js
CHANGED
|
@@ -30,8 +30,9 @@ exports.formatting = {
|
|
|
30
30
|
return JSON.parse(s.replace(/^\uFEFF/, ''));
|
|
31
31
|
},
|
|
32
32
|
filterObject(obj, propertiesToInclude) {
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
const objKeys = Object.keys(obj);
|
|
34
|
+
return propertiesToInclude
|
|
35
|
+
.filter(prop => objKeys.includes(prop))
|
|
35
36
|
.reduce((filtered, key) => {
|
|
36
37
|
filtered[key] = obj[key];
|
|
37
38
|
return filtered;
|
|
@@ -64,6 +65,14 @@ exports.formatting = {
|
|
|
64
65
|
},
|
|
65
66
|
splitAndTrim(s) {
|
|
66
67
|
return s.split(',').map(c => c.trim());
|
|
68
|
+
},
|
|
69
|
+
openTypesEncoder(value) {
|
|
70
|
+
return value
|
|
71
|
+
.replace(/\%/g, '%25')
|
|
72
|
+
.replace(/\./g, '%2E')
|
|
73
|
+
.replace(/:/g, '%3A')
|
|
74
|
+
.replace(/@/g, '%40')
|
|
75
|
+
.replace(/#/g, '%23');
|
|
67
76
|
}
|
|
68
77
|
};
|
|
69
78
|
//# sourceMappingURL=formatting.js.map
|
package/dist/utils/odata.js
CHANGED
|
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.odata = void 0;
|
|
13
13
|
const request_1 = require("../request");
|
|
14
14
|
exports.odata = {
|
|
15
|
-
getAllItems(url,
|
|
15
|
+
getAllItems(url, metadata) {
|
|
16
16
|
var _a;
|
|
17
17
|
return __awaiter(this, void 0, void 0, function* () {
|
|
18
18
|
let items = [];
|
|
@@ -27,7 +27,7 @@ exports.odata = {
|
|
|
27
27
|
items = res.value;
|
|
28
28
|
const nextLink = (_a = res['@odata.nextLink']) !== null && _a !== void 0 ? _a : res.nextLink;
|
|
29
29
|
if (nextLink) {
|
|
30
|
-
const nextPageItems = yield exports.odata.getAllItems(nextLink,
|
|
30
|
+
const nextPageItems = yield exports.odata.getAllItems(nextLink, metadata);
|
|
31
31
|
items = items.concat(nextPageItems);
|
|
32
32
|
}
|
|
33
33
|
return items;
|
|
@@ -0,0 +1,65 @@
|
|
|
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.planner = void 0;
|
|
13
|
+
const request_1 = require("../request");
|
|
14
|
+
const odata_1 = require("./odata");
|
|
15
|
+
const graphResource = 'https://graph.microsoft.com';
|
|
16
|
+
const getRequestOptions = (url, metadata) => ({
|
|
17
|
+
url: url,
|
|
18
|
+
headers: {
|
|
19
|
+
accept: `application/json;odata.metadata=${metadata}`
|
|
20
|
+
},
|
|
21
|
+
responseType: 'json'
|
|
22
|
+
});
|
|
23
|
+
exports.planner = {
|
|
24
|
+
/**
|
|
25
|
+
* Get Planner plan by ID.
|
|
26
|
+
* @param id Planner ID.
|
|
27
|
+
*/
|
|
28
|
+
getPlanById(id) {
|
|
29
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30
|
+
const requestOptions = getRequestOptions(`${graphResource}/v1.0/planner/plans/${id}`, 'none');
|
|
31
|
+
try {
|
|
32
|
+
return yield request_1.default.get(requestOptions);
|
|
33
|
+
}
|
|
34
|
+
catch (ex) {
|
|
35
|
+
throw Error(`Planner plan with id '${id}' was not found.`);
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
},
|
|
39
|
+
/**
|
|
40
|
+
* Get all Planner plans for a specific group.
|
|
41
|
+
* @param groupId Group ID.
|
|
42
|
+
*/
|
|
43
|
+
getPlansByGroupId(groupId) {
|
|
44
|
+
return odata_1.odata.getAllItems(`${graphResource}/v1.0/groups/${groupId}/planner/plans`, 'none');
|
|
45
|
+
},
|
|
46
|
+
/**
|
|
47
|
+
* Get Planner plan by name in a specific group.
|
|
48
|
+
* @param name Name of the Planner plan. Case insensitive.
|
|
49
|
+
* @param groupId Owner group ID .
|
|
50
|
+
*/
|
|
51
|
+
getPlanByName(name, groupId) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
const plans = yield this.getPlansByGroupId(groupId);
|
|
54
|
+
const filteredPlans = plans.filter(p => p.title && p.title.toLowerCase() === name.toLowerCase());
|
|
55
|
+
if (!filteredPlans.length) {
|
|
56
|
+
throw Error(`The specified plan '${name}' does not exist.`);
|
|
57
|
+
}
|
|
58
|
+
if (filteredPlans.length > 1) {
|
|
59
|
+
throw Error(`Multiple plans with name '${name}' found: ${filteredPlans.map(x => x.id)}.`);
|
|
60
|
+
}
|
|
61
|
+
return filteredPlans[0];
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
//# sourceMappingURL=planner.js.map
|
|
@@ -49,6 +49,15 @@ m365 aad app add [options]
|
|
|
49
49
|
`--scopeAdminConsentDescription [scopeAdminConsentDescription]`
|
|
50
50
|
: Scope admin consent description
|
|
51
51
|
|
|
52
|
+
`--certificateFile [certificateFile]`
|
|
53
|
+
: Path to the file with certificate public key. Specify either `certificateFile` or `certificateBase64Encoded`
|
|
54
|
+
|
|
55
|
+
`--certificateBase64Encoded [certificateBase64Encoded]`
|
|
56
|
+
: Base64-encoded string with certificate public key. Specify either `certificateFile` or `certificateBase64Encoded`
|
|
57
|
+
|
|
58
|
+
`--certificateDisplayName [certificateDisplayName]`
|
|
59
|
+
: Display name for the certificate. If not given, the displayName will be set to the certificate subject. When specified, also specify either `certificateFile` or `certificateBase64Encoded`
|
|
60
|
+
|
|
52
61
|
`--manifest [manifest]`
|
|
53
62
|
: Azure AD app manifest as retrieved from the Azure Portal to create the app registration from
|
|
54
63
|
|
|
@@ -152,3 +161,9 @@ Create new Azure AD app registration with the specified name. Store information
|
|
|
152
161
|
```sh
|
|
153
162
|
m365 aad app add --name 'My AAD app' --save
|
|
154
163
|
```
|
|
164
|
+
|
|
165
|
+
Create new Azure AD app registration with a certificate
|
|
166
|
+
|
|
167
|
+
```sh
|
|
168
|
+
m365 aad app add --name 'My AAD app' --certificateDisplayName "Some certificate name" --certificateFile c:\temp\some-certificate.cer
|
|
169
|
+
```
|
|
@@ -31,6 +31,15 @@ m365 aad app set [options]
|
|
|
31
31
|
`--redirectUrisToRemove [redirectUrisToRemove]`
|
|
32
32
|
: Comma-separated list of existing redirect URIs to remove. Specify, when you want to replace existing redirect URIs with another
|
|
33
33
|
|
|
34
|
+
`--certificateFile [certificateFile]`
|
|
35
|
+
: Path to the file with certificate public key. Specify either `certificateFile` or `certificateBase64Encoded`
|
|
36
|
+
|
|
37
|
+
`--certificateBase64Encoded [certificateBase64Encoded]`
|
|
38
|
+
: Base64-encoded string with certificate public key. Specify either `certificateFile` or `certificateBase64Encoded`
|
|
39
|
+
|
|
40
|
+
`--certificateDisplayName [certificateDisplayName]`
|
|
41
|
+
: Display name for the certificate. If not given, the displayName will be set to the certificate subject. When specified, also specify either `certificateFile` or `certificateBase64Encoded`
|
|
42
|
+
|
|
34
43
|
--8<-- "docs/cmd/_global.md"
|
|
35
44
|
|
|
36
45
|
## Remarks
|
|
@@ -39,6 +48,8 @@ For best performance use the `objectId` option to reference the Azure AD applica
|
|
|
39
48
|
|
|
40
49
|
If the command finds multiple Azure AD application registrations with the specified app name, it will prompt you to disambiguate which app it should use, listing the discovered object IDs.
|
|
41
50
|
|
|
51
|
+
When a certificate is specified it will be added to the list of certificates of the app without changing existing certificates.
|
|
52
|
+
|
|
42
53
|
## Examples
|
|
43
54
|
|
|
44
55
|
Update the app URI of the Azure AD application registration specified by its object ID
|
|
@@ -70,3 +81,9 @@ Replace one redirect URI with another for SPA authentication
|
|
|
70
81
|
```sh
|
|
71
82
|
m365 aad app set --objectId 95cfe30d-ed44-4f9d-b73d-c66560f72e83 --redirectUris https://contoso.com/auth --platform spa --redirectUrisToRemove https://contoso.com/old-auth
|
|
72
83
|
```
|
|
84
|
+
|
|
85
|
+
Add a certificate to the app
|
|
86
|
+
|
|
87
|
+
```sh
|
|
88
|
+
m365 aad app set --certificateDisplayName "Some certificate name" --certificateFile c:\temp\some-certificate.cer
|
|
89
|
+
```
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# aad app open
|
|
2
|
+
|
|
3
|
+
Returns deep link of the current AD app to open the Azure portal on the Azure AD app registration management page.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 app open [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`--appId [appId]`
|
|
14
|
+
: Optional Application (client) ID of the Azure AD application registration to open. Uses the app from the `.m365rc.json` file corresponding to the `appId`. If multiple apps are available, this will evade the prompt to choose an app. If the `appId` is not available in the list of apps, an error is thrown.
|
|
15
|
+
|
|
16
|
+
`--preview`
|
|
17
|
+
: Use to open the url of the Azure AD preview portal.
|
|
18
|
+
|
|
19
|
+
--8<-- "docs/cmd/_global.md"
|
|
20
|
+
|
|
21
|
+
## Remarks
|
|
22
|
+
|
|
23
|
+
If config setting `autoOpenLinksInBrowser` is configured to true, the command will automatically open the link to the Azure Portal in the browser.
|
|
24
|
+
|
|
25
|
+
Gets the app from the `.m365rc.json` file in the current directory. If the `--appId` option is not used and multiple apps are available, it will prompt the user to choose one.
|
|
26
|
+
|
|
27
|
+
## Examples
|
|
28
|
+
|
|
29
|
+
Prints the URL to the Azure AD application registration management page on the Azure Portal.
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
m365 app open
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Prints the url of the Azure AD application registration management page on the preview Azure Portal.
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
m365 app open --preview
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Prints the URL to the Azure AD application registration management page on the Azure Portal, evading a possible choice prompt in the case of multiple saved apps in the `.m365rc.json` file.
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
m365 app open --appId d75be2e1-0204-4f95-857d-51a37cf40be8
|
|
45
|
+
```
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# planner bucket get
|
|
2
|
+
|
|
3
|
+
Gets the Microsoft Planner bucket in a plan
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 planner bucket get [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-i, --id [id]`
|
|
14
|
+
: ID of the bucket to retrieve details. Specify either `id` or `name` but not both.
|
|
15
|
+
|
|
16
|
+
`-name, --name [name]`
|
|
17
|
+
: Name of the bucket to retrieve details. Specify either `id` or `name` but not both.
|
|
18
|
+
|
|
19
|
+
`--planId [planId]`
|
|
20
|
+
: Plan ID to which the bucket belongs. Specify either `planId` or `planName` when using `name`.
|
|
21
|
+
|
|
22
|
+
`--planName [planName]`
|
|
23
|
+
: Plan Name to which the bucket belongs. Specify either `planId` or `planName` when using `name`.
|
|
24
|
+
|
|
25
|
+
`--ownerGroupId [ownerGroupId]`
|
|
26
|
+
: ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planName`.
|
|
27
|
+
|
|
28
|
+
`--ownerGroupName [ownerGroupName]`
|
|
29
|
+
: Name of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planName`.
|
|
30
|
+
|
|
31
|
+
--8<-- "docs/cmd/_global.md"
|
|
32
|
+
|
|
33
|
+
## Examples
|
|
34
|
+
|
|
35
|
+
Gets the specified Microsoft Planner bucket
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
m365 planner bucket get --id "5h1uuYFk4kKQ0hfoTUkRLpgALtYi"
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Gets the Microsoft Planner bucket in the PlanId xqQg5FS2LkCp935s-FIFm2QAFkHM
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
m365 planner bucket get --name "Planner Bucket A" --planId "xqQg5FS2LkCp935s-FIFm2QAFkHM"
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Gets the Microsoft Planner bucket in the Plan _My Plan_ owned by group _My Group_
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
m365 planner bucket get --name "Planner Bucket A" --planName "My Plan" --ownerGroupName "My Group"
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Gets the Microsoft Planner bucket in the Plan _My Plan_ owned by groupId ee0f40fc-b2f7-45c7-b62d-11b90dd2ea8e
|
|
54
|
+
|
|
55
|
+
```sh
|
|
56
|
+
m365 planner bucket get --name "Planner Bucket A" --planName "My Plan" --ownerGroupId "ee0f40fc-b2f7-45c7-b62d-11b90dd2ea8e"
|
|
57
|
+
```
|
|
@@ -10,8 +10,29 @@ m365 planner task get [options]
|
|
|
10
10
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
|
-
`-i, --id
|
|
14
|
-
: ID of the task to
|
|
13
|
+
`-i, --id [id]`
|
|
14
|
+
: ID of the task. Specify either `id` or `title` but not both. When you specify the task ID, you no longer need to provide the information for `bucket`, `plan`, and `ownerGroup`.
|
|
15
|
+
|
|
16
|
+
`-t, --title [title]`
|
|
17
|
+
: Title of the task. Specify either `id` or `title` but not both.
|
|
18
|
+
|
|
19
|
+
`--bucketId [bucketId]`
|
|
20
|
+
: Bucket ID to which the task belongs. Specify `bucketId` or `bucketName` when using `title`.
|
|
21
|
+
|
|
22
|
+
`--bucketName [bucketName]`
|
|
23
|
+
: Bucket Name to which the task belongs. Specify `bucketId` or `bucketName` when using `title`.
|
|
24
|
+
|
|
25
|
+
`--planId [planId]`
|
|
26
|
+
: Plan ID to which the task belongs. Specify `planId` or `planName` when using `bucketName`.
|
|
27
|
+
|
|
28
|
+
`--planName [planName]`
|
|
29
|
+
: Plan Name to which the task belongs. Specify `planId` or `planName` when using `bucketName`.
|
|
30
|
+
|
|
31
|
+
`--ownerGroupId [ownerGroupId]`
|
|
32
|
+
: ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planName`.
|
|
33
|
+
|
|
34
|
+
`--ownerGroupName [ownerGroupName]`
|
|
35
|
+
: Name of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planName`.
|
|
15
36
|
|
|
16
37
|
--8<-- "docs/cmd/_global.md"
|
|
17
38
|
|
|
@@ -22,8 +43,14 @@ m365 planner task get [options]
|
|
|
22
43
|
|
|
23
44
|
## Examples
|
|
24
45
|
|
|
25
|
-
Retrieve the the specified planner task
|
|
46
|
+
Retrieve the the specified planner task by id.
|
|
26
47
|
|
|
27
48
|
```sh
|
|
28
49
|
m365 planner task get --id 'vzCcZoOv-U27PwydxHB8opcADJo-'
|
|
29
50
|
```
|
|
51
|
+
|
|
52
|
+
Retrieve the the specified planner task with the title _My Planner Task_ from the bucket named _My Planner Bucket_. Based on the plan with the name _My Planner Plan_ owned by the group _My Planner Group_.
|
|
53
|
+
|
|
54
|
+
```sh
|
|
55
|
+
m365 planner task get --title "My Planner Task" --bucketName "My Planner Bucket" --planName "My Planner Plan" --ownerGroupName "My Planner Group"
|
|
56
|
+
```
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# planner task reference add
|
|
2
|
+
|
|
3
|
+
Adds a new reference to a Planner task.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 planner task reference add [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-i, --taskId <taskId>`
|
|
14
|
+
: ID of the task.
|
|
15
|
+
|
|
16
|
+
`-u, --url <url>`
|
|
17
|
+
: URL location of the reference.
|
|
18
|
+
|
|
19
|
+
`--alias [alias]`
|
|
20
|
+
: A name alias to describe the reference.
|
|
21
|
+
|
|
22
|
+
`--type [type]`
|
|
23
|
+
: Used to describe the type of the reference. Types include: `PowerPoint`, `Word`, `Excel`, `Other`.
|
|
24
|
+
|
|
25
|
+
--8<-- "docs/cmd/_global.md"
|
|
26
|
+
|
|
27
|
+
## Examples
|
|
28
|
+
|
|
29
|
+
Add a new reference with the url _https://www.microsoft.com_ to a Planner task with the id _2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2_
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
m365 planner task reference add --taskId "2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2" --url "https://www.microsoft.com"
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Add a new reference with the url _https://www.microsoft.com_ and with the alias _Parker_ to a Planner task with the id _2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2_
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
m365 planner task reference add --taskId "2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2" --url "https://www.microsoft.com" --alias "Parker"
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Add a new reference with the url _https://www.microsoft.com_ and with the type Excel to a Planner task with the id _2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2_
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
m365 planner task reference add --taskId "2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2" --url "https://www.microsoft.com" --type "Excel"
|
|
45
|
+
```
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# planner task reference list
|
|
2
|
+
|
|
3
|
+
Retrieve the references associated to a Planner task.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 planner task reference list [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-i, --taskId <taskId>`
|
|
14
|
+
: ID of the task to retrieve references from
|
|
15
|
+
|
|
16
|
+
--8<-- "docs/cmd/_global.md"
|
|
17
|
+
|
|
18
|
+
## Examples
|
|
19
|
+
|
|
20
|
+
Retrieve the references of the specified planner task
|
|
21
|
+
|
|
22
|
+
```sh
|
|
23
|
+
m365 planner task reference list --taskId uBk5fK_MHkeyuPYlCo4OFpcAM
|
|
24
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# pp gateway list
|
|
2
|
+
|
|
3
|
+
Returns a list of gateways for which the user is an admin
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 pp gateway list [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
--8<-- "docs/cmd/_global.md"
|
|
14
|
+
|
|
15
|
+
## Examples
|
|
16
|
+
|
|
17
|
+
List gateways for which the user is an admin
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
m365 pp gateway list
|
|
21
|
+
```
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# spo list roleinheritance break
|
|
2
|
+
|
|
3
|
+
Breaks role inheritance on list or library
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 spo list roleinheritance break [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-u, --webUrl <webUrl>`
|
|
14
|
+
: URL of the site where the list to retrieve is located
|
|
15
|
+
|
|
16
|
+
`-i, --listId [listId]`
|
|
17
|
+
: ID of the list to retrieve information for. Specify either id or title but not both
|
|
18
|
+
|
|
19
|
+
`-t, --listTitle [listTitle]`
|
|
20
|
+
: Title of the list to retrieve information for. Specify either id or title but not both
|
|
21
|
+
|
|
22
|
+
`-c, --clearExistingPermissions`
|
|
23
|
+
: Flag if used clears all roles from the list
|
|
24
|
+
|
|
25
|
+
--8<-- "docs/cmd/_global.md"
|
|
26
|
+
|
|
27
|
+
## Remarks
|
|
28
|
+
|
|
29
|
+
By default, when breaking permissions inheritance, the list will retain existing permissions. To remove existing permissions, use the `--clearExistingPermissions` option.
|
|
30
|
+
|
|
31
|
+
## Examples
|
|
32
|
+
|
|
33
|
+
Break inheritance of list _someList_ located in site _https://contoso.sharepoint.com/sites/project-x_
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
m365 spo list roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "someList"
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Break inheritance of list with ID _202b8199-b9de-43fd-9737-7f213f51c991_ located in site _https://contoso.sharepoint.com/sites/project-x_
|
|
40
|
+
|
|
41
|
+
```sh
|
|
42
|
+
m365 spo list roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --listId "202b8199-b9de-43fd-9737-7f213f51c991"
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Break inheritance of list _someList_ located in site _https://contoso.sharepoint.com/sites/project-x_ with clearing permissions
|
|
46
|
+
|
|
47
|
+
```sh
|
|
48
|
+
m365 spo list roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "someList" --clearExistingPermissions
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Break inheritance of list with ID _202b8199-b9de-43fd-9737-7f213f51c991_ located in site _https://contoso.sharepoint.com/sites/project-x_ with clearing permissions
|
|
52
|
+
|
|
53
|
+
```sh
|
|
54
|
+
m365 spo list roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --listId "202b8199-b9de-43fd-9737-7f213f51c991" --clearExistingPermissions
|
|
55
|
+
```
|