@pnp/cli-microsoft365 5.9.0-beta.21a8d94 → 5.9.0-beta.3de06bc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/appInsights.js +2 -0
- package/dist/m365/pp/commands/tenant/tenant-settings-list.js +45 -0
- package/dist/m365/pp/commands.js +2 -1
- package/dist/m365/spfx/commands/spfx-doctor.js +15 -0
- package/dist/m365/spo/commands/file/file-roleassignment-remove.js +180 -0
- package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +125 -0
- package/dist/m365/spo/commands/folder/folder-get.js +36 -6
- package/dist/m365/spo/commands/folder/folder-roleinheritance-reset.js +89 -0
- package/dist/m365/spo/commands.js +3 -0
- package/dist/m365/teams/commands/channel/channel-list.js +3 -3
- package/dist/utils/cache.js +81 -0
- package/dist/utils/pid.js +57 -0
- package/docs/docs/cmd/aad/o365group/o365group-recyclebinitem-restore.md +1 -1
- package/docs/docs/cmd/aad/user/user-signin-list.md +1 -1
- package/docs/docs/cmd/onedrive/report/report-activityusercounts.md +1 -1
- package/docs/docs/cmd/planner/task/task-checklistitem-list.md +1 -1
- package/docs/docs/cmd/planner/task/task-reference-add.md +1 -1
- package/docs/docs/cmd/pp/tenant/tenant-settings-list.md +26 -0
- package/docs/docs/cmd/search/externalconnection/externalconnection-remove.md +1 -1
- package/docs/docs/cmd/spo/file/file-roleassignment-remove.md +54 -0
- package/docs/docs/cmd/spo/file/file-roleinheritance-reset.md +39 -0
- package/docs/docs/cmd/spo/folder/folder-get.md +13 -4
- package/docs/docs/cmd/spo/folder/folder-roleinheritance-reset.md +36 -0
- package/docs/docs/cmd/spo/list/list-roleassignment-add.md +1 -1
- package/docs/docs/cmd/spo/list/list-roleassignment-remove.md +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-roleassignment-remove.md +1 -1
- package/docs/docs/cmd/spo/roledefinition/roledefinition-add.md +1 -1
- package/docs/docs/cmd/spo/web/web-roleassignment-add.md +5 -5
- package/docs/docs/cmd/spo/web/web-roleassignment-remove.md +5 -5
- package/docs/docs/cmd/spo/web/web-roleinheritance-reset.md +1 -1
- package/docs/docs/cmd/teams/cache/cache-remove.md +1 -1
- package/docs/docs/cmd/teams/channel/channel-add.md +1 -1
- package/docs/docs/cmd/teams/channel/channel-list.md +1 -1
- package/docs/docs/cmd/teams/channel/channel-member-set.md +1 -1
- package/docs/docs/cmd/teams/funsettings/funsettings-set.md +6 -6
- package/docs/docs/cmd/tenant/security/security-alerts-list.md +1 -1
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-get.md +1 -1
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-list.md +1 -1
- package/npm-shrinkwrap.json +342 -357
- package/package.json +21 -18
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.cache = void 0;
|
|
4
|
+
const fs = require("fs");
|
|
5
|
+
const os = require("os");
|
|
6
|
+
const path = require("path");
|
|
7
|
+
const config_1 = require("../config");
|
|
8
|
+
const cacheFolderPath = path.join(os.tmpdir(), config_1.default.configstoreName.replace('config', 'cache'));
|
|
9
|
+
const mkdirOptions = { mode: 0o0700, recursive: true };
|
|
10
|
+
exports.cache = {
|
|
11
|
+
cacheFolderPath: cacheFolderPath,
|
|
12
|
+
getValue(key) {
|
|
13
|
+
this.clearExpired();
|
|
14
|
+
try {
|
|
15
|
+
const cacheFilePath = path.join(cacheFolderPath, key);
|
|
16
|
+
if (!fs.existsSync(cacheFilePath)) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
return fs.readFileSync(cacheFilePath, 'utf8');
|
|
20
|
+
}
|
|
21
|
+
catch (_a) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
setValue(key, value) {
|
|
26
|
+
this.clearExpired();
|
|
27
|
+
try {
|
|
28
|
+
fs.mkdirSync(cacheFolderPath, mkdirOptions);
|
|
29
|
+
const cacheFilePath = path.join(cacheFolderPath, key);
|
|
30
|
+
// we don't need to wait for the file to be written
|
|
31
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
32
|
+
fs.writeFile(cacheFilePath, value, () => { });
|
|
33
|
+
}
|
|
34
|
+
catch (_a) { }
|
|
35
|
+
},
|
|
36
|
+
clearExpired(cb) {
|
|
37
|
+
// we don't need to wait for this to complete
|
|
38
|
+
// even if it stops meanwhile, it will be picked up next time
|
|
39
|
+
fs.readdir(cacheFolderPath, (err, files) => {
|
|
40
|
+
if (err) {
|
|
41
|
+
if (cb) {
|
|
42
|
+
cb();
|
|
43
|
+
}
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
const numFiles = files.length;
|
|
47
|
+
if (numFiles === 0) {
|
|
48
|
+
if (cb) {
|
|
49
|
+
cb();
|
|
50
|
+
}
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
files.forEach((file, index) => {
|
|
54
|
+
fs.stat(path.join(cacheFolderPath, file), (err, stats) => {
|
|
55
|
+
if (err || stats.isDirectory()) {
|
|
56
|
+
if (cb && index === numFiles - 1) {
|
|
57
|
+
cb();
|
|
58
|
+
}
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
// remove files that haven't been accessed in the last 24 hours
|
|
62
|
+
if (stats.atime.getTime() < Date.now() - 24 * 60 * 60 * 1000) {
|
|
63
|
+
// we don't need to wait for the file to be deleted
|
|
64
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
65
|
+
fs.unlink(path.join(cacheFolderPath, file), () => {
|
|
66
|
+
if (cb && index === numFiles - 1) {
|
|
67
|
+
cb();
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
if (cb && index === numFiles - 1) {
|
|
73
|
+
cb();
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
//# sourceMappingURL=cache.js.map
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.pid = void 0;
|
|
4
|
+
const os = require("os");
|
|
5
|
+
const fs = require("fs");
|
|
6
|
+
const child_process_1 = require("child_process");
|
|
7
|
+
const cache_1 = require("./cache");
|
|
8
|
+
function getProcessNameOnMacOs(pid) {
|
|
9
|
+
const stdout = (0, child_process_1.execSync)(`ps -o comm= ${pid}`, { encoding: 'utf8' });
|
|
10
|
+
return stdout.trim();
|
|
11
|
+
}
|
|
12
|
+
function getProcessNameOnLinux(pid) {
|
|
13
|
+
if (!fs.existsSync(`/proc/${pid}/stat`)) {
|
|
14
|
+
return undefined;
|
|
15
|
+
}
|
|
16
|
+
const stat = fs.readFileSync(`/proc/${pid}/stat`, 'utf8');
|
|
17
|
+
const start = stat.indexOf('(');
|
|
18
|
+
const procName = stat.substring(start + 1, stat.indexOf(')') - start);
|
|
19
|
+
return procName;
|
|
20
|
+
}
|
|
21
|
+
function getProcessNameOnWindows(pid) {
|
|
22
|
+
const stdout = (0, child_process_1.execSync)(`wmic PROCESS where ProcessId=${pid} get Caption | find /V "Caption"`, { encoding: 'utf8' });
|
|
23
|
+
return stdout.trim();
|
|
24
|
+
}
|
|
25
|
+
exports.pid = {
|
|
26
|
+
getProcessName(pid) {
|
|
27
|
+
let processName = cache_1.cache.getValue(pid.toString());
|
|
28
|
+
if (processName) {
|
|
29
|
+
return processName;
|
|
30
|
+
}
|
|
31
|
+
let getPidName = undefined;
|
|
32
|
+
const platform = os.platform();
|
|
33
|
+
if (platform.indexOf('win') === 0) {
|
|
34
|
+
getPidName = getProcessNameOnWindows;
|
|
35
|
+
}
|
|
36
|
+
if (platform === 'darwin') {
|
|
37
|
+
getPidName = getProcessNameOnMacOs;
|
|
38
|
+
}
|
|
39
|
+
if (platform === 'linux') {
|
|
40
|
+
getPidName = getProcessNameOnLinux;
|
|
41
|
+
}
|
|
42
|
+
if (getPidName) {
|
|
43
|
+
try {
|
|
44
|
+
processName = getPidName(pid);
|
|
45
|
+
if (processName) {
|
|
46
|
+
cache_1.cache.setValue(pid.toString(), processName);
|
|
47
|
+
}
|
|
48
|
+
return processName;
|
|
49
|
+
}
|
|
50
|
+
catch (_a) {
|
|
51
|
+
return undefined;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return undefined;
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=pid.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# pp tenant settings list
|
|
2
|
+
|
|
3
|
+
Lists the global Power Platform tenant settings
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 pp tenant settings list [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
--8<-- "docs/cmd/_global.md"
|
|
14
|
+
|
|
15
|
+
## Remarks
|
|
16
|
+
|
|
17
|
+
!!! attention
|
|
18
|
+
This command is based on an API that is currently in preview and is subject to change once the API reached general availability.
|
|
19
|
+
|
|
20
|
+
## Examples
|
|
21
|
+
|
|
22
|
+
Lists the global Power Platform settings of the tenant
|
|
23
|
+
|
|
24
|
+
```sh
|
|
25
|
+
m365 pp tenant settings list
|
|
26
|
+
```
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# spo file roleassignment remove
|
|
2
|
+
|
|
3
|
+
Removes a role assignment from a file.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 spo file roleassignment remove [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-u, --webUrl <webUrl>`
|
|
14
|
+
: URL of the site where the file is located.
|
|
15
|
+
|
|
16
|
+
`--fileUrl [fileUrl]`
|
|
17
|
+
: The server-relative URL of the file. Specify either `fileUrl` or `fileId` but not both.
|
|
18
|
+
|
|
19
|
+
`-i, --fileId [fileId]`
|
|
20
|
+
: The UniqueId (GUID) of the file. Specify either `fileUrl` or `fileId` but not both.
|
|
21
|
+
|
|
22
|
+
`--principalId [principalId]`
|
|
23
|
+
: The SharePoint Id of the principal. It may be either a user id or group id. Specify either `upn`, `groupName`, or `principalId`.
|
|
24
|
+
|
|
25
|
+
`--upn [upn]`
|
|
26
|
+
: Upn/email of the user. Specify either `upn`, `groupName`, or `principalId`.
|
|
27
|
+
|
|
28
|
+
`--groupName [groupName]`
|
|
29
|
+
: The group name of an Azure AD or SharePoint group. Specify either `upn`, `groupName`, or `principalId`.
|
|
30
|
+
|
|
31
|
+
`--confirm [confirm]`
|
|
32
|
+
: Don't prompt for confirmation.
|
|
33
|
+
|
|
34
|
+
--8<-- "docs/cmd/_global.md"
|
|
35
|
+
|
|
36
|
+
## Examples
|
|
37
|
+
|
|
38
|
+
Remove a role assignment by principal id from a file by id
|
|
39
|
+
|
|
40
|
+
```sh
|
|
41
|
+
m365 spo file roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --fileId "b2307a39-e878-458b-bc90-03bc578531d6" --principalId 2
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Remove a role assignment by upn from a file by url
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
m365 spo file roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --fileUrl "/sites/contoso-sales/documents/Test1.docx" --upn "user1@contoso.onmicrosoft.com"
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Remove a role assignment by group name from a file by id
|
|
51
|
+
|
|
52
|
+
```sh
|
|
53
|
+
m365 spo file roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --fileId "b2307a39-e878-458b-bc90-03bc578531d6" --groupName "saleGroup"
|
|
54
|
+
```
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# spo file roleinheritance reset
|
|
2
|
+
|
|
3
|
+
Restores the role inheritance of a file
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 spo file roleinheritance reset [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-u, --webUrl <webUrl>`
|
|
14
|
+
: URL of the site where the file is located
|
|
15
|
+
|
|
16
|
+
`--fileUrl [fileUrl]`
|
|
17
|
+
: The server-relative URL of the file to retrieve. Specify either `fileUrl` or `fileId` but not both
|
|
18
|
+
|
|
19
|
+
`i, --fileId [fileId]`
|
|
20
|
+
: The UniqueId (GUID) of the file to retrieve. Specify either `fileUrl` or `fileId` but not both
|
|
21
|
+
|
|
22
|
+
`--confirm`
|
|
23
|
+
: Don't prompt for confirmation
|
|
24
|
+
|
|
25
|
+
--8<-- "docs/cmd/_global.md"
|
|
26
|
+
|
|
27
|
+
## Examples
|
|
28
|
+
|
|
29
|
+
Reset inheritance of file with id (UniqueId) _b2307a39-e878-458b-bc90-03bc578531d6_ located in site _https://contoso.sharepoint.com/sites/project-x_
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
m365 spo file roleinheritance reset --webUrl "https://contoso.sharepoint.com/sites/project-x" --fileId "b2307a39-e878-458b-bc90-03bc578531d6"
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Reset inheritance of file with server-relative url _/sites/project-x/documents/Test1_.docx located in site _https://contoso.sharepoint.com/sites/project-x_. It will **not** prompt for confirmation before resetting.
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
m365 spo file roleinheritance reset --webUrl "https://contoso.sharepoint.com/sites/project-x" --fileUrl "/sites/project-x/documents/Test1.docx" --confirm
|
|
39
|
+
```
|
|
@@ -13,8 +13,11 @@ m365 spo folder get [options]
|
|
|
13
13
|
`-u, --webUrl <webUrl>`
|
|
14
14
|
: The URL of the site where the folder is located
|
|
15
15
|
|
|
16
|
-
`-f, --folderUrl
|
|
17
|
-
:
|
|
16
|
+
`-f, --folderUrl [folderUrl]`
|
|
17
|
+
: The server-relative URL of the folder to retrieve. Specify either `folderUrl` or `id` but not both
|
|
18
|
+
|
|
19
|
+
`-i, --id [id]`
|
|
20
|
+
: The UniqueId (GUID) of the folder to retrieve. Specify either `folderUrl` or `id` but not both
|
|
18
21
|
|
|
19
22
|
--8<-- "docs/cmd/_global.md"
|
|
20
23
|
|
|
@@ -24,8 +27,14 @@ If no folder exists at the specified URL, you will get a `Please check the folde
|
|
|
24
27
|
|
|
25
28
|
## Examples
|
|
26
29
|
|
|
27
|
-
Get folder properties for folder with
|
|
30
|
+
Get folder properties for folder with server-relative url _'/Shared Documents'_ located in site _https://contoso.sharepoint.com/sites/project-x_
|
|
31
|
+
|
|
32
|
+
```sh
|
|
33
|
+
m365 spo folder get --webUrl https://contoso.sharepoint.com/sites/project-x --folderUrl "/Shared Documents"
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Get folder properties for folder with id (UniqueId) _b2307a39-e878-458b-bc90-03bc578531d6_ located in site _https://contoso.sharepoint.com/sites/project-x_
|
|
28
37
|
|
|
29
38
|
```sh
|
|
30
|
-
m365 spo folder get --webUrl https://contoso.sharepoint.com/sites/project-x --
|
|
39
|
+
m365 spo folder get --webUrl https://contoso.sharepoint.com/sites/project-x --id "b2307a39-e878-458b-bc90-03bc578531d6"
|
|
31
40
|
```
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# spo folder roleinheritance reset
|
|
2
|
+
|
|
3
|
+
Restores the role inheritance of a folder.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 spo folder roleinheritance reset [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-u, --webUrl <webUrl>`
|
|
14
|
+
: URL of the site where the folder is located.
|
|
15
|
+
|
|
16
|
+
`-f, --folderUrl <folderUrl>`
|
|
17
|
+
: The site-relative URL of the folder.
|
|
18
|
+
|
|
19
|
+
`--confirm`
|
|
20
|
+
: Don't prompt for confirmation to reset role inheritance of the folder.
|
|
21
|
+
|
|
22
|
+
--8<-- "docs/cmd/_global.md"
|
|
23
|
+
|
|
24
|
+
## Examples
|
|
25
|
+
|
|
26
|
+
Reset inheritance of folder with site-relative url _Shared Documents/TestFolder_ located in site _https://contoso.sharepoint.com/sites/project-x_.
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
m365 spo folder roleinheritance reset --webUrl "https://contoso.sharepoint.com/sites/project-x" --folderUrl "Shared Documents/TestFolder"
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Reset inheritance of folder with site-relative url _Shared Documents/TestFolder_ located in site _https://contoso.sharepoint.com/sites/project-x_. It will **not** prompt for confirmation before resetting.
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
m365 spo folder roleinheritance reset --webUrl "https://contoso.sharepoint.com/sites/project-x" --folderUrl "Shared Documents/TestFolder" --confirm
|
|
36
|
+
```
|
|
@@ -75,4 +75,4 @@ add role assignment to list _someList_ located in site _https://contoso.sharepoi
|
|
|
75
75
|
|
|
76
76
|
```sh
|
|
77
77
|
m365 spo list roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "someList" --principalId 11 --roleDefinitionName "Full Control"
|
|
78
|
-
```
|
|
78
|
+
```
|
|
@@ -64,4 +64,4 @@ Remove roleassignment from listitem getting list by url based on principal Id wi
|
|
|
64
64
|
|
|
65
65
|
```sh
|
|
66
66
|
m365 spo listitem roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --listUrl '/sites/contoso-sales/lists/Events' --listItemId 1 --principalId 2 --confirm
|
|
67
|
-
```
|
|
67
|
+
```
|
|
@@ -40,4 +40,4 @@ Adds the role definition for site _https://contoso.sharepoint.com/sites/project-
|
|
|
40
40
|
|
|
41
41
|
```sh
|
|
42
42
|
m365 spo roledefinition add --webUrl https://contoso.sharepoint.com/sites/project-x --name test --description "test description" --rights "ViewListItems,AddListItems,EditListItems,DeleteListItems"
|
|
43
|
-
```
|
|
43
|
+
```
|
|
@@ -35,23 +35,23 @@ m365 spo web roleassignment add [options]
|
|
|
35
35
|
add role assignment to site _https://contoso.sharepoint.com/sites/project-x_for principal id _11_ and role definition id _1073741829_
|
|
36
36
|
|
|
37
37
|
```sh
|
|
38
|
-
m365 spo
|
|
38
|
+
m365 spo web roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --principalId 11 --roleDefinitionId 1073741829
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
add role assignment to site _https://contoso.sharepoint.com/sites/project-x_for upn _someaccount@tenant.onmicrosoft.com_ and role definition id _1073741829_
|
|
42
42
|
|
|
43
43
|
```sh
|
|
44
|
-
m365 spo
|
|
44
|
+
m365 spo web roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --upn "someaccount@tenant.onmicrosoft.com" --roleDefinitionId 1073741829
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
add role assignment to site _https://contoso.sharepoint.com/sites/project-x_for group _someGroup_ and role definition id _1073741829_
|
|
48
48
|
|
|
49
49
|
```sh
|
|
50
|
-
m365 spo
|
|
50
|
+
m365 spo web roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --groupName "someGroup" --roleDefinitionId 1073741829
|
|
51
51
|
```
|
|
52
52
|
|
|
53
53
|
add role assignment to site _https://contoso.sharepoint.com/sites/project-x_for principal id _11_ and role definition name _Full Control_
|
|
54
54
|
|
|
55
55
|
```sh
|
|
56
|
-
m365 spo
|
|
57
|
-
```
|
|
56
|
+
m365 spo web roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --principalId 11 --roleDefinitionName "Full Control"
|
|
57
|
+
```
|
|
@@ -32,23 +32,23 @@ m365 spo web roleassignment remove [options]
|
|
|
32
32
|
Remove roleassignment from web based on group name
|
|
33
33
|
|
|
34
34
|
```sh
|
|
35
|
-
m365 spo
|
|
35
|
+
m365 spo web roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --groupName "saleGroup"
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
Remove roleassignment from web based on principal Id
|
|
39
39
|
|
|
40
40
|
```sh
|
|
41
|
-
m365 spo
|
|
41
|
+
m365 spo web roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --principalId 2
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
Remove roleassignment from web based on upn
|
|
45
45
|
|
|
46
46
|
```sh
|
|
47
|
-
m365 spo
|
|
47
|
+
m365 spo web roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --upn "someaccount@tenant.onmicrosoft.com"
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
Remove roleassignment from web based on principal Id without prompting for confirmation
|
|
51
51
|
|
|
52
52
|
```sh
|
|
53
|
-
m365 spo
|
|
54
|
-
```
|
|
53
|
+
m365 spo web roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --principalId 2 --confirm
|
|
54
|
+
```
|
|
@@ -43,4 +43,4 @@ m365 teams cache remove
|
|
|
43
43
|
|
|
44
44
|
## More information
|
|
45
45
|
|
|
46
|
-
- [Clear the Teams client cache guidance](https://docs.microsoft.com/microsoftteams/troubleshoot/teams-administration/clear-teams-cache)
|
|
46
|
+
- [Clear the Teams client cache guidance](https://docs.microsoft.com/microsoftteams/troubleshoot/teams-administration/clear-teams-cache)
|
|
@@ -17,7 +17,7 @@ m365 teams channel list [options]
|
|
|
17
17
|
: The display name of the team to list the channels of. Specify either `teamId` or `teamName` but not both
|
|
18
18
|
|
|
19
19
|
`--type [type]`
|
|
20
|
-
: Filter the results to only channels of a given type: `standard
|
|
20
|
+
: Filter the results to only channels of a given type: `standard`, `private`, `shared`. By default all channels are listed.
|
|
21
21
|
|
|
22
22
|
--8<-- "docs/cmd/_global.md"
|
|
23
23
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
#
|
|
1
|
+
# teams funsettings set
|
|
2
2
|
|
|
3
3
|
Updates fun settings of a Microsoft Teams team
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
|
-
m365
|
|
8
|
+
m365 teams funsettings set [options]
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Options
|
|
@@ -32,23 +32,23 @@ m365 graph teams funsettings set [options]
|
|
|
32
32
|
Allow giphy usage within a given Microsoft Teams team, setting the content rating for giphy to Moderate
|
|
33
33
|
|
|
34
34
|
```sh
|
|
35
|
-
m365
|
|
35
|
+
m365 teams funsettings set --teamId 83cece1e-938d-44a1-8b86-918cf6151957 --allowGiphy true --giphyContentRating Moderate
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
Disable usage of giphy within a given Microsoft Teams team
|
|
39
39
|
|
|
40
40
|
```sh
|
|
41
|
-
m365
|
|
41
|
+
m365 teams funsettings set --teamId 83cece1e-938d-44a1-8b86-918cf6151957 --allowGiphy false
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
Allow usage of stickers and memes within a given Microsoft Teams team
|
|
45
45
|
|
|
46
46
|
```sh
|
|
47
|
-
m365
|
|
47
|
+
m365 teams funsettings set --teamId 83cece1e-938d-44a1-8b86-918cf6151957 --allowStickersAndMemes true
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
Disable usage custom memes within a given Microsoft Teams team
|
|
51
51
|
|
|
52
52
|
```sh
|
|
53
|
-
m365
|
|
53
|
+
m365 teams funsettings set --teamId 83cece1e-938d-44a1-8b86-918cf6151957 --allowCustomMemes false
|
|
54
54
|
```
|