@pnp/cli-microsoft365 5.3.0-beta.d2ec1f4 → 5.3.0-beta.e5dcef6
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-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/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-set.js +9 -18
- package/dist/m365/planner/commands.js +1 -0
- package/dist/m365/pp/commands/managementapp/managementapp-list.js +1 -1
- 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-list.js +1 -1
- 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/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/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/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/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
|
@@ -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,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
|
+
```
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# spo list roleinheritance reset
|
|
2
|
+
|
|
3
|
+
Restores role inheritance on list or library
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 spo list roleinheritance reset [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-u, --webUrl <webUrl>`
|
|
14
|
+
: URL of the site where the list is located
|
|
15
|
+
|
|
16
|
+
`-i, --listId [listId]`
|
|
17
|
+
: ID of the list. Specify either id or title but not both
|
|
18
|
+
|
|
19
|
+
`-t, --listTitle [listTitle]`
|
|
20
|
+
: Title of the list. Specify either id or title but not both
|
|
21
|
+
|
|
22
|
+
--8<-- "docs/cmd/_global.md"
|
|
23
|
+
|
|
24
|
+
## Examples
|
|
25
|
+
|
|
26
|
+
Restore role inheritance of list with ID _0cd891ef-afce-4e55-b836-fce03286cccf_ located in site _https://contoso.sharepoint.com/sites/project-x_
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
m365 spo list roleinheritance reset --webUrl https://contoso.sharepoint.com/sites/project-x --listId 0cd891ef-afce-4e55-b836-fce03286cccf
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Restore role inheritance of list with title _test_ located in site _https://contoso.sharepoint.com/sites/project-x_
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
m365 spo list roleinheritance reset --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle test
|
|
36
|
+
```
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# spo listitem roleinheritance break
|
|
2
|
+
|
|
3
|
+
Break inheritance of list item.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 spo listitem roleinheritance break [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-u, --webUrl <webUrl>`
|
|
14
|
+
: URL of the site where the item for which to break role inheritance is located
|
|
15
|
+
|
|
16
|
+
`--listItemId <listItemId>`
|
|
17
|
+
: ID of the item for which to break role inheritance
|
|
18
|
+
|
|
19
|
+
`-l, --listId [listId]`
|
|
20
|
+
: ID of the list. Specify listId or listTitle but not both
|
|
21
|
+
|
|
22
|
+
`-t, --listTitle [listTitle]`
|
|
23
|
+
Title of the list. Specify listId or listTitle but not both
|
|
24
|
+
|
|
25
|
+
`-c, --clearExistingPermissions`
|
|
26
|
+
: Set to clear existing roles from the list item
|
|
27
|
+
|
|
28
|
+
--8<-- "docs/cmd/_global.md"
|
|
29
|
+
|
|
30
|
+
## Remarks
|
|
31
|
+
|
|
32
|
+
By default, when breaking permissions inheritance, the list item will retain existing permissions. To remove existing permissions, use the `--clearExistingPermissions` option.
|
|
33
|
+
|
|
34
|
+
## Examples
|
|
35
|
+
|
|
36
|
+
Break inheritance of list item _1_ in list _someList_ located in site _https://contoso.sharepoint.com/sites/project-x_
|
|
37
|
+
|
|
38
|
+
```sh
|
|
39
|
+
m365 spo listitem roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "_someList_" --id 1
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Break inheritance of list item _1_ in list with ID _202b8199-b9de-43fd-9737-7f213f51c991_ located in site _https://contoso.sharepoint.com/sites/project-x_
|
|
43
|
+
|
|
44
|
+
```sh
|
|
45
|
+
m365 spo listitem roleinheritance break --webUrl https://contoso.sharepoint.com/sites/project-x --listId 202b8199-b9de-43fd-9737-7f213f51c991 --id 1
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Break inheritance of list item _1_ in list _someList_ located in site _https://contoso.sharepoint.com/sites/project-x_ with clearing permissions
|
|
49
|
+
|
|
50
|
+
```sh
|
|
51
|
+
m365 spo listitem roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "_someList_" --id 1 --clearExistingPermissions
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Break inheritance of list item _1_ in list with ID _202b8199-b9de-43fd-9737-7f213f51c991_ located in site _https://contoso.sharepoint.com/sites/project-x_ with clearing permissions
|
|
55
|
+
|
|
56
|
+
```sh
|
|
57
|
+
m365 spo listitem roleinheritance break --webUrl https://contoso.sharepoint.com/sites/project-x --listId 202b8199-b9de-43fd-9737-7f213f51c991 --id 1 --clearExistingPermissions
|
|
58
|
+
```
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# spo listitem roleinheritance reset
|
|
2
|
+
|
|
3
|
+
Restores the role inheritance of list item, file, or folder
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 spo listitem roleinheritance reset [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-u, --webUrl <webUrl>`
|
|
14
|
+
: URL of the site where the item for which to reset role inheritance is located
|
|
15
|
+
|
|
16
|
+
`--listItemId <listItemId>`
|
|
17
|
+
: ID of the item for which to reset role inheritance
|
|
18
|
+
|
|
19
|
+
`--listId [listId]`
|
|
20
|
+
: ID of the list. Specify listId or listTitle but not both
|
|
21
|
+
|
|
22
|
+
`--listTitle [listTitle]`
|
|
23
|
+
: Title of the list. Specify listId or listTitle but not both
|
|
24
|
+
|
|
25
|
+
--8<-- "docs/cmd/_global.md"
|
|
26
|
+
|
|
27
|
+
## Examples
|
|
28
|
+
|
|
29
|
+
Restore role inheritance of list item with id 8 from list with ID _0cd891ef-afce-4e55-b836-fce03286cccf_ located in site _https://contoso.sharepoint.com/sites/project-x_
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
m365 spo listitem roleinheritance reset --webUrl https://contoso.sharepoint.com/sites/project-x --listItemId 8 --listId 0cd891ef-afce-4e55-b836-fce03286cccf
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Restore role inheritance of list item with id 8 from list with title _test_ located in site _https://contoso.sharepoint.com/sites/project-x_
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
m365 spo listitem roleinheritance reset --webUrl https://contoso.sharepoint.com/sites/project-x --listItemId 8 --listTitle test
|
|
39
|
+
```
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# spo roledefinition list
|
|
2
|
+
|
|
3
|
+
Gets list of role definitions for the specified site
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 spo roledefinition list [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-u, --webUrl <webUrl>`
|
|
14
|
+
: URL of the site for which to retrieve role definitions
|
|
15
|
+
|
|
16
|
+
--8<-- "docs/cmd/_global.md"
|
|
17
|
+
|
|
18
|
+
## Examples
|
|
19
|
+
|
|
20
|
+
Return list of role definitions for site _https://contoso.sharepoint.com/sites/project-x_
|
|
21
|
+
|
|
22
|
+
```sh
|
|
23
|
+
m365 spo roledefinition list --webUrl https://contoso.sharepoint.com/sites/project-x
|
|
24
|
+
```
|
|
@@ -35,10 +35,10 @@ m365 teams conversationmember list [options]
|
|
|
35
35
|
|
|
36
36
|
## Examples
|
|
37
37
|
|
|
38
|
-
List the members of a specified Microsoft Teams team with id 00000000-0000-0000-0000-000000000000 and channel id
|
|
38
|
+
List the members of a specified Microsoft Teams team with id 00000000-0000-0000-0000-000000000000 and channel id 19:00000000000000000000000000000000@thread.skype
|
|
39
39
|
|
|
40
40
|
```sh
|
|
41
|
-
m365 teams channel member list --teamId 00000000-0000-0000-0000-000000000000 --channelId
|
|
41
|
+
m365 teams channel member list --teamId 00000000-0000-0000-0000-000000000000 --channelId 19:00000000000000000000000000000000@thread.skype
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
List the members of a specified Microsoft Teams team with name _Team Name_ and channel with name _Channel Name_
|
|
@@ -47,8 +47,8 @@ List the members of a specified Microsoft Teams team with name _Team Name_ and c
|
|
|
47
47
|
m365 teams channel member list --teamName "Team Name" --channelName "Channel Name"
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
-
List all owners of the specified Microsoft Teams team with id 00000000-0000-0000-0000-000000000000 and channel id
|
|
50
|
+
List all owners of the specified Microsoft Teams team with id 00000000-0000-0000-0000-000000000000 and channel id 19:00000000000000000000000000000000@thread.skype
|
|
51
51
|
|
|
52
52
|
```sh
|
|
53
|
-
m365 teams channel member list --teamId 00000000-0000-0000-0000-000000000000 --channelId
|
|
53
|
+
m365 teams channel member list --teamId 00000000-0000-0000-0000-000000000000 --channelId 19:00000000000000000000000000000000@thread.skype --role owner
|
|
54
54
|
```
|
|
@@ -44,10 +44,10 @@ m365 teams conversationmember remove [options]
|
|
|
44
44
|
|
|
45
45
|
## Examples
|
|
46
46
|
|
|
47
|
-
Remove the user _johndoe@example.com_ from the Microsoft Teams team with id 00000000-0000-0000-0000-000000000000 and channel id
|
|
47
|
+
Remove the user _johndoe@example.com_ from the Microsoft Teams team with id 00000000-0000-0000-0000-000000000000 and channel id 19:00000000000000000000000000000000@thread.skype
|
|
48
48
|
|
|
49
49
|
```sh
|
|
50
|
-
m365 teams channel member remove --teamId 00000000-0000-0000-0000-000000000000 --channelId
|
|
50
|
+
m365 teams channel member remove --teamId 00000000-0000-0000-0000-000000000000 --channelId 19:00000000000000000000000000000000@thread.skype --userName "johndoe@example.com"
|
|
51
51
|
```
|
|
52
52
|
|
|
53
53
|
Remove the user with id 00000000-0000-0000-0000-000000000000 from the Microsoft Teams team with name _Team Name_ and channel with name _Channel Name_
|
|
@@ -38,10 +38,10 @@ m365 teams channel member set [options]
|
|
|
38
38
|
|
|
39
39
|
## Examples
|
|
40
40
|
|
|
41
|
-
Updates the role of the user _johndoe@example.com_ to owner in the Microsoft Teams team with id 00000000-0000-0000-0000-000000000000 and channel id
|
|
41
|
+
Updates the role of the user _johndoe@example.com_ to owner in the Microsoft Teams team with id 00000000-0000-0000-0000-000000000000 and channel id 19:00000000000000000000000000000000@thread.skype
|
|
42
42
|
|
|
43
43
|
```sh
|
|
44
|
-
m365 teams channel member set --teamId 00000000-0000-0000-0000-000000000000 --channelId
|
|
44
|
+
m365 teams channel member set --teamId 00000000-0000-0000-0000-000000000000 --channelId 19:00000000000000000000000000000000@thread.skype --userName "johndoe@example.com" --role owner
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
Updates the role of the user with id 00000000-0000-0000-0000-000000000000 to member in the Microsoft Teams team with name _Team Name_ and channel with name _Channel Name_
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# tenant security alerts list
|
|
2
|
+
|
|
3
|
+
Gets the security alerts for a tenant
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 tenant security alerts list [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`--vendor [vendor]`
|
|
14
|
+
: The vendor to return alerts for. Possible values `Azure Advanced Threat Protection`, `Azure Security Center`, `Microsoft Cloud App Security`, `Azure Active Directory Identity Protection`, `Azure Sentinel`, `Microsoft Defender ATP`. If omitted, all alerts are returned
|
|
15
|
+
|
|
16
|
+
--8<-- "docs/cmd/_global.md"
|
|
17
|
+
|
|
18
|
+
## Examples
|
|
19
|
+
|
|
20
|
+
Get all security alerts for a tenant
|
|
21
|
+
|
|
22
|
+
```sh
|
|
23
|
+
m365 tenant security alerts list
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Get security alerts for a vendor with name _Azure Sentinel_
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
m365 tenant security alerts list --vendor "Azure Sentinel"
|
|
30
|
+
```
|
package/package.json
CHANGED