@pnp/cli-microsoft365 7.5.0 → 7.6.0-beta.480812d
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.cjs +3 -0
- package/README.md +1 -1
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/Auth.js +12 -10
- package/dist/AuthServer.js +1 -1
- package/dist/cli/cli.js +1 -1
- package/dist/config.js +2 -2
- package/dist/m365/app/commands/app-get.js +1 -1
- package/dist/m365/app/commands/app-open.js +1 -1
- package/dist/m365/app/commands/permission/permission-add.js +2 -2
- package/dist/m365/app/commands/permission/permission-list.js +2 -2
- package/dist/m365/cli/commands/cli-consent.js +2 -2
- package/dist/m365/cli/commands/cli-reconsent.js +3 -3
- package/dist/m365/commands/login.js +1 -1
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-add.js +1 -0
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-get.js +1 -0
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-list.js +1 -0
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-add.js +1 -0
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-get.js +1 -0
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-list.js +1 -0
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-remove.js +1 -0
- package/dist/m365/entra/commands/app/app-add.js +7 -6
- package/dist/m365/entra/commands/app/app-get.js +4 -3
- package/dist/m365/entra/commands/app/app-list.js +1 -0
- package/dist/m365/entra/commands/app/app-permission-add.js +3 -2
- package/dist/m365/entra/commands/app/app-permission-list.js +1 -1
- package/dist/m365/entra/commands/app/app-remove.js +5 -4
- package/dist/m365/entra/commands/app/app-role-add.js +6 -5
- package/dist/m365/entra/commands/app/app-role-list.js +4 -3
- package/dist/m365/entra/commands/app/app-role-remove.js +6 -5
- package/dist/m365/entra/commands/app/app-set.js +8 -7
- package/dist/m365/entra/commands/approleassignment/approleassignment-add.js +2 -1
- package/dist/m365/entra/commands/approleassignment/approleassignment-list.js +1 -0
- package/dist/m365/entra/commands/approleassignment/approleassignment-remove.js +1 -0
- package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-add.js +1 -0
- package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-get.js +1 -0
- package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-list.js +1 -0
- package/dist/m365/entra/commands/group/group-get.js +1 -0
- package/dist/m365/entra/commands/group/group-list.js +1 -0
- package/dist/m365/entra/commands/group/group-remove.js +1 -0
- package/dist/m365/entra/commands/group/group-user-list.js +1 -0
- package/dist/m365/entra/commands/groupsetting/groupsetting-add.js +1 -0
- package/dist/m365/entra/commands/groupsetting/groupsetting-get.js +1 -0
- package/dist/m365/entra/commands/groupsetting/groupsetting-list.js +1 -0
- package/dist/m365/entra/commands/groupsetting/groupsetting-remove.js +1 -0
- package/dist/m365/entra/commands/groupsetting/groupsetting-set.js +1 -0
- package/dist/m365/entra/commands/groupsettingtemplate/groupsettingtemplate-get.js +1 -0
- package/dist/m365/entra/commands/groupsettingtemplate/groupsettingtemplate-list.js +1 -0
- package/dist/m365/entra/commands/license/license-list.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-add.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-conversation-list.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-conversation-post-list.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-get.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-list.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-clear.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-list.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-remove.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-restore.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-remove.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-renew.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-set.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-teamify.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-user-add.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-user-list.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-user-remove.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-user-set.js +1 -0
- package/dist/m365/entra/commands/oauth2grant/oauth2grant-add.js +1 -0
- package/dist/m365/entra/commands/oauth2grant/oauth2grant-list.js +1 -0
- package/dist/m365/entra/commands/oauth2grant/oauth2grant-remove.js +1 -0
- package/dist/m365/entra/commands/oauth2grant/oauth2grant-set.js +1 -0
- package/dist/m365/entra/commands/policy/policy-list.js +1 -0
- package/dist/m365/entra/commands/siteclassification/siteclassification-disable.js +1 -0
- package/dist/m365/entra/commands/siteclassification/siteclassification-enable.js +1 -0
- package/dist/m365/entra/commands/siteclassification/siteclassification-get.js +1 -0
- package/dist/m365/entra/commands/siteclassification/siteclassification-set.js +1 -0
- package/dist/m365/entra/commands/user/user-add.js +1 -0
- package/dist/m365/entra/commands/user/user-get.js +1 -0
- package/dist/m365/entra/commands/user/user-guest-add.js +1 -0
- package/dist/m365/entra/commands/user/user-hibp.js +1 -0
- package/dist/m365/entra/commands/user/user-license-add.js +1 -0
- package/dist/m365/entra/commands/user/user-license-list.js +1 -0
- package/dist/m365/entra/commands/user/user-license-remove.js +1 -0
- package/dist/m365/entra/commands/user/user-list.js +1 -0
- package/dist/m365/entra/commands/user/user-password-validate.js +1 -0
- package/dist/m365/entra/commands/user/user-recyclebinitem-clear.js +1 -0
- package/dist/m365/entra/commands/user/user-recyclebinitem-list.js +1 -0
- package/dist/m365/entra/commands/user/user-recyclebinitem-remove.js +2 -1
- package/dist/m365/entra/commands/user/user-recyclebinitem-restore.js +1 -0
- package/dist/m365/entra/commands/user/user-remove.js +1 -0
- package/dist/m365/entra/commands/user/user-set.js +1 -0
- package/dist/m365/entra/commands/user/user-signin-list.js +1 -0
- package/dist/m365/outlook/commands/message/message-remove.js +113 -0
- package/dist/m365/outlook/commands.js +1 -0
- package/dist/m365/pp/commands/managementapp/managementapp-add.js +7 -7
- package/dist/m365/purview/commands/threatassessment/threatassessment-add.js +123 -0
- package/dist/m365/purview/commands/threatassessment/threatassessment-list.js +104 -0
- package/dist/m365/purview/commands.js +3 -1
- package/dist/m365/spfx/commands/project/DeployWorkflow.js +111 -0
- package/dist/m365/spfx/commands/project/project-azuredevops-pipeline-add.js +183 -0
- package/dist/m365/spfx/commands/project/project-azuredevops-pipeline-model.js +2 -0
- package/dist/m365/spfx/commands/project/project-github-workflow-add.js +3 -4
- package/dist/m365/spfx/commands.js +1 -0
- package/dist/m365/spo/commands/folder/FolderColor.js +19 -0
- package/dist/m365/spo/commands/folder/folder-add.js +46 -17
- package/dist/m365/spo/commands/folder/folder-set.js +118 -0
- package/dist/m365/spo/commands/group/group-member-add.js +2 -2
- package/dist/m365/spo/commands/group/group-member-remove.js +1 -1
- package/dist/m365/spo/commands/site/site-apppermission-add.js +2 -2
- package/dist/m365/spo/commands/site/site-recyclebinitem-restore.js +66 -27
- package/dist/m365/spo/commands/tenant/tenant-settings-set.js +1 -1
- package/dist/m365/spo/commands/user/user-remove.js +93 -16
- package/dist/m365/spo/commands.js +1 -0
- package/dist/m365/teams/commands/tab/tab-get.js +1 -1
- package/dist/utils/spo.js +1 -1
- package/docs/docs/cmd/app/app-get.mdx +10 -10
- package/docs/docs/cmd/app/app-open.mdx +6 -6
- package/docs/docs/cmd/app/permission/permission-add.mdx +2 -2
- package/docs/docs/cmd/app/permission/permission-list.mdx +5 -5
- package/docs/docs/cmd/cli/cli-consent.mdx +2 -2
- package/docs/docs/cmd/cli/cli-reconsent.mdx +6 -6
- package/docs/docs/cmd/entra/app/app-permission-add.mdx +6 -6
- package/docs/docs/cmd/entra/approleassignment/approleassignment-add.mdx +1 -1
- package/docs/docs/cmd/entra/approleassignment/approleassignment-list.mdx +4 -4
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-add.mdx +1 -1
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-get.mdx +1 -1
- package/docs/docs/cmd/entra/group/group-user-add.mdx +7 -7
- package/docs/docs/cmd/entra/oauth2grant/oauth2grant-add.mdx +1 -1
- package/docs/docs/cmd/entra/oauth2grant/oauth2grant-list.mdx +1 -1
- package/docs/docs/cmd/entra/oauth2grant/oauth2grant-remove.mdx +1 -1
- package/docs/docs/cmd/entra/oauth2grant/oauth2grant-set.mdx +1 -1
- package/docs/docs/cmd/external/connection/connection-add.mdx +2 -2
- package/docs/docs/cmd/file/file-add.mdx +1 -1
- package/docs/docs/cmd/graph/schemaextension/schemaextension-add.mdx +2 -2
- package/docs/docs/cmd/graph/schemaextension/schemaextension-set.mdx +1 -1
- package/docs/docs/cmd/login.mdx +18 -18
- package/docs/docs/cmd/outlook/message/message-remove.mdx +67 -0
- package/docs/docs/cmd/pa/app/app-owner-set.mdx +1 -1
- package/docs/docs/cmd/pa/app/app-permission-ensure.mdx +3 -3
- package/docs/docs/cmd/pa/app/app-permission-remove.mdx +3 -3
- package/docs/docs/cmd/planner/plan/plan-add.mdx +1 -1
- package/docs/docs/cmd/planner/roster/roster-add.mdx +5 -5
- package/docs/docs/cmd/planner/roster/roster-get.mdx +7 -7
- package/docs/docs/cmd/planner/roster/roster-member-add.mdx +4 -4
- package/docs/docs/cmd/planner/roster/roster-member-get.mdx +4 -4
- package/docs/docs/cmd/planner/roster/roster-member-list.mdx +2 -2
- package/docs/docs/cmd/planner/roster/roster-member-remove.mdx +5 -5
- package/docs/docs/cmd/planner/roster/roster-plan-list.mdx +1 -1
- package/docs/docs/cmd/planner/roster/roster-remove.mdx +2 -2
- package/docs/docs/cmd/planner/task/task-add.mdx +1 -1
- package/docs/docs/cmd/planner/task/task-get.mdx +1 -1
- package/docs/docs/cmd/planner/task/task-list.mdx +1 -1
- package/docs/docs/cmd/planner/task/task-remove.mdx +1 -1
- package/docs/docs/cmd/planner/task/task-set.mdx +1 -1
- package/docs/docs/cmd/pp/environment/environment-get.mdx +1 -1
- package/docs/docs/cmd/pp/environment/environment-list.mdx +1 -1
- package/docs/docs/cmd/pp/managementapp/managementapp-add.mdx +9 -9
- package/docs/docs/cmd/purview/auditlog/auditlog-list.mdx +1 -1
- package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-get.mdx +1 -1
- package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-list.mdx +1 -1
- package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-policysettings-list.mdx +1 -1
- package/docs/docs/cmd/purview/threatassessment/threatassessment-add.mdx +131 -0
- package/docs/docs/cmd/purview/threatassessment/threatassessment-list.mdx +110 -0
- package/docs/docs/cmd/request.mdx +1 -1
- package/docs/docs/cmd/spfx/project/project-azuredevops-pipeline-add.mdx +87 -0
- package/docs/docs/cmd/spfx/project/project-github-workflow-add.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-roleassignment-add.mdx +3 -3
- package/docs/docs/cmd/spo/file/file-roleassignment-remove.mdx +2 -2
- package/docs/docs/cmd/spo/folder/folder-add.mdx +38 -0
- package/docs/docs/cmd/spo/folder/folder-roleassignment-add.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-roleassignment-remove.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-set.mdx +88 -0
- package/docs/docs/cmd/spo/group/group-member-add.mdx +2 -2
- package/docs/docs/cmd/spo/group/group-member-remove.mdx +3 -3
- package/docs/docs/cmd/spo/list/list-roleassignment-add.mdx +3 -3
- package/docs/docs/cmd/spo/list/list-roleassignment-remove.mdx +2 -2
- package/docs/docs/cmd/spo/listitem/listitem-roleassignment-add.mdx +8 -8
- package/docs/docs/cmd/spo/listitem/listitem-roleassignment-remove.mdx +2 -2
- package/docs/docs/cmd/spo/site/site-apppermission-add.mdx +2 -2
- package/docs/docs/cmd/spo/site/site-apppermission-set.mdx +2 -2
- package/docs/docs/cmd/spo/site/site-recyclebinitem-restore.mdx +29 -5
- package/docs/docs/cmd/spo/tenant/tenant-settings-set.mdx +89 -89
- package/docs/docs/cmd/spo/user/user-ensure.mdx +1 -1
- package/docs/docs/cmd/spo/user/user-remove.mdx +40 -9
- package/docs/docs/cmd/spo/web/web-roleassignment-add.mdx +3 -3
- package/docs/docs/cmd/spo/web/web-roleassignment-remove.mdx +2 -2
- package/docs/docs/cmd/teams/channel/channel-member-remove.mdx +1 -1
- package/docs/docs/cmd/teams/channel/channel-member-set.mdx +1 -1
- package/docs/docs/cmd/teams/chat/chat-member-remove.mdx +3 -3
- package/docs/docs/cmd/teams/report/report-directroutingcalls.mdx +1 -1
- package/docs/docs/cmd/teams/report/report-pstncalls.mdx +1 -1
- package/docs/docs/cmd/teams/tab/tab-get.mdx +19 -12
- package/docs/docs/cmd/tenant/security/security-alerts-list.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-group-list.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-group-user-add.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-group-user-remove.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-message-add.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-message-get.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-message-like-set.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-message-list.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-message-remove.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-network-list.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-search.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-user-get.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-user-list.mdx +1 -1
- package/npm-shrinkwrap.json +64 -60
- package/package.json +12 -12
- package/dist/m365/spo/commands/folder/folder-rename.js +0 -72
- package/docs/docs/cmd/spo/folder/folder-rename.mdx +0 -44
|
@@ -14,13 +14,25 @@ m365 spo user remove [options]
|
|
|
14
14
|
|
|
15
15
|
```md definition-list
|
|
16
16
|
`-u, --webUrl <webUrl>`
|
|
17
|
-
: URL of the web to remove user
|
|
17
|
+
: URL of the web to remove user.
|
|
18
18
|
|
|
19
19
|
`--id [id]`
|
|
20
|
-
: ID of the user to remove from web
|
|
20
|
+
: ID of the user to remove from web. Use either `id` or `loginName` or `email`, `userName`, `entraGroupId`, or `entraGroupName`, but not all.
|
|
21
21
|
|
|
22
22
|
`--loginName [loginName]`
|
|
23
|
-
: Login name of the
|
|
23
|
+
: Login name of the user to remove from web. Use either `id` or `loginName` or `email`, `userName`, `entraGroupId`, or `entraGroupName`, but not all.
|
|
24
|
+
|
|
25
|
+
`--userName [userName]`
|
|
26
|
+
: User name of the user to remove from web. Use either `id` or `loginName` or `email`, `userName`, `entraGroupId`, or `entraGroupName`, but not all.
|
|
27
|
+
|
|
28
|
+
`--email [email]`
|
|
29
|
+
: Email of the user to remove from web. Use either `id` or `loginName` or `email`, `userName`, `entraGroupId`, or `entraGroupName`, but not all.
|
|
30
|
+
|
|
31
|
+
`--entraGroupId [entraGroupId]`
|
|
32
|
+
: Object ID of the Entra group ID to remove. Use either `id` or `loginName` or `email`, `userName`, `entraGroupId`, or `entraGroupName`, but not all.
|
|
33
|
+
|
|
34
|
+
`--entraGroupName [entraGroupName]`
|
|
35
|
+
: Name of the Entra group to remove. Use either `id` or `loginName` or `email`, `userName`, `entraGroupId`, or `entraGroupName`, but not all.
|
|
24
36
|
|
|
25
37
|
`-f, --force`
|
|
26
38
|
: Do not prompt for confirmation before removing user from web
|
|
@@ -28,24 +40,43 @@ m365 spo user remove [options]
|
|
|
28
40
|
|
|
29
41
|
<Global />
|
|
30
42
|
|
|
31
|
-
## Remarks
|
|
32
|
-
|
|
33
|
-
Use either `id` or `loginName`, but not both
|
|
34
|
-
|
|
35
43
|
## Examples
|
|
36
44
|
|
|
37
|
-
Removes user
|
|
45
|
+
Removes user by id from a web without prompting for confirmation
|
|
38
46
|
|
|
39
47
|
```sh
|
|
40
48
|
m365 spo user remove --webUrl "https://contoso.sharepoint.com/sites/HR" --id 10 --force
|
|
41
49
|
```
|
|
42
50
|
|
|
43
|
-
Removes user
|
|
51
|
+
Removes user by loginName from a web
|
|
44
52
|
|
|
45
53
|
```sh
|
|
46
54
|
m365 spo user remove --webUrl "https://contoso.sharepoint.com/sites/HR" --loginName "i:0#.f|membership|john.doe@mytenant.onmicrosoft.com"
|
|
47
55
|
```
|
|
48
56
|
|
|
57
|
+
Removes user by userName from a web
|
|
58
|
+
|
|
59
|
+
```sh
|
|
60
|
+
m365 spo user remove --webUrl "https://contoso.sharepoint.com/sites/HR" --userName "john.doe_hotmail.com#ext#@mytenant.onmicrosoft.com"
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Removes user by email from a web
|
|
64
|
+
|
|
65
|
+
```sh
|
|
66
|
+
m365 spo user remove --webUrl "https://contoso.sharepoint.com/sites/HR" --email "john.doe@mytenant.onmicrosoft.com"
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Removes user by entraGroupId from a web
|
|
70
|
+
|
|
71
|
+
```sh
|
|
72
|
+
m365 spo user remove --webUrl "https://contoso.sharepoint.com/sites/HR" --entraGroupId f832a493-de73-4fef-87ed-8c6fffd91be6
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Removes user by entraGroupName from a web
|
|
76
|
+
|
|
77
|
+
```sh
|
|
78
|
+
m365 spo user remove --webUrl _https://contoso.sharepoint.com/sites/HR_ --entraGroupName "Test Members"
|
|
79
|
+
```
|
|
49
80
|
## Response
|
|
50
81
|
|
|
51
82
|
The command won't return a response on success.
|
|
@@ -20,16 +20,16 @@ m365 spo web roleassignment add [options]
|
|
|
20
20
|
: SharePoint ID of principal it may be either user id or group id we want to add permissions to. Specify either `principalId`, `upn`, or `groupName` but not multiple.
|
|
21
21
|
|
|
22
22
|
`--upn [upn]`
|
|
23
|
-
: upn/email of user to assign role to. Specify either `principalId`, `upn`, or `groupName` but not multiple.
|
|
23
|
+
: The upn/email of user to assign role to. Specify either `principalId`, `upn`, or `groupName` but not multiple.
|
|
24
24
|
|
|
25
25
|
`--groupName [groupName]`
|
|
26
|
-
:
|
|
26
|
+
: The group name of Microsoft Entra or SharePoint group. Specify either `principalId`, `upn`, or `groupName` but not multiple.
|
|
27
27
|
|
|
28
28
|
`--roleDefinitionId [roleDefinitionId]`
|
|
29
29
|
: ID of role definition. Specify either `roleDefinitionId` or `roleDefinitionName` but not both.
|
|
30
30
|
|
|
31
31
|
`--roleDefinitionName [roleDefinitionName]`
|
|
32
|
-
:
|
|
32
|
+
: The name of a role definition, like 'Contribute', 'Read', etc. Specify either `roleDefinitionId` or `roleDefinitionName` but not both.
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
<Global />
|
|
@@ -20,10 +20,10 @@ m365 spo web roleassignment remove [options]
|
|
|
20
20
|
: SharePoint ID of principal it may be either user id or group id we want to add permissions to. Specify either `principalId`, `upn`, or `groupName` but not multiple.
|
|
21
21
|
|
|
22
22
|
`--upn [upn]`
|
|
23
|
-
:
|
|
23
|
+
: The upn/email of user to assign role to. Specify either `principalId`, `upn`, or `groupName` but not multiple.
|
|
24
24
|
|
|
25
25
|
`--groupName [groupName]`
|
|
26
|
-
:
|
|
26
|
+
: The group name of Microsoft Entra or SharePoint group. Specify either `principalId`, `upn`, or `groupName` but not multiple.
|
|
27
27
|
|
|
28
28
|
`-f, --force`
|
|
29
29
|
: Don't prompt for confirming removing the roleassignment.
|
|
@@ -29,7 +29,7 @@ m365 teams channel member remove [options]
|
|
|
29
29
|
: User's UPN (user principal name, e.g. johndoe@example.com). Specify either userName, userId or id but not multiple.
|
|
30
30
|
|
|
31
31
|
`--userId [userId]`
|
|
32
|
-
: User's
|
|
32
|
+
: User's Microsoft Entra ID. Specify either userName, userId or id but not multiple.
|
|
33
33
|
|
|
34
34
|
`--id [id]`
|
|
35
35
|
: Channel member Id of a user. Specify either userName, userId or id but not multiple.
|
|
@@ -31,7 +31,7 @@ m365 teams channel member set [options]
|
|
|
31
31
|
: User's UPN (user principal name, e.g. johndoe@example.com). Specify either userName, userId or id but not multiple.
|
|
32
32
|
|
|
33
33
|
`--userId [userId]`
|
|
34
|
-
: User's
|
|
34
|
+
: User's Microsoft Entra ID. Specify either userName, userId or id but not multiple.
|
|
35
35
|
|
|
36
36
|
`--id [id]`
|
|
37
37
|
: Channel member Id of a user. Specify either userName, userId or id but not multiple.
|
|
@@ -20,7 +20,7 @@ m365 teams chat member remove [options]
|
|
|
20
20
|
: The ID of the chat member. Specify either `id`, `userId`, or `userName` but not multiple.
|
|
21
21
|
|
|
22
22
|
`--userId [userId]`
|
|
23
|
-
: The
|
|
23
|
+
: The ID of the Microsoft Entra user. Specify either `id`, `userId`, or `userName` but not multiple.
|
|
24
24
|
|
|
25
25
|
`--userName [userName]`
|
|
26
26
|
: User's UPN (user principal name, e.g. johndoe@example.com). Specify either `id`, `userId`, or `userName` but not multiple.
|
|
@@ -39,13 +39,13 @@ Remove a member from a Teams chat by its member ID without prompting for confirm
|
|
|
39
39
|
m365 teams chat member remove --chatId 19:8b081ef6-4792-4def-b2c9-c363a1bf41d5_5031bb31-22c0-4f6f-9f73-91d34ab2b32d@unq.gbl.spaces --id MCMjMjQzMmI1N2ItMGFiZC00M2RiLWFhN2ItMTZlYWRkMTE1ZDM0IyMxOTpiZDlkYTQ2MzIzYWY0MjUzOTZkMGZhNjcyMDAyODk4NEB0aHJlYWQudjIjIzQ4YmY5ZDUyLWRjYTctNGE1Zi04Mzk4LTM3Yjk1Y2M3YmQ4Mw== --force
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
-
Remove a member from a Teams chat by its
|
|
42
|
+
Remove a member from a Teams chat by its Microsoft Entra ID.
|
|
43
43
|
|
|
44
44
|
```sh
|
|
45
45
|
m365 teams chat member remove --chatId 19:8b081ef6-4792-4def-b2c9-c363a1bf41d5_5031bb31-22c0-4f6f-9f73-91d34ab2b32d@unq.gbl.spaces --userId bd94e214-7852-48b0-a326-5a34b2a02183
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
-
Remove a member from a Teams chat by its
|
|
48
|
+
Remove a member from a Teams chat by its Microsoft Entra UPN.
|
|
49
49
|
|
|
50
50
|
```sh
|
|
51
51
|
m365 teams chat member remove --chatId 19:8b081ef6-4792-4def-b2c9-c363a1bf41d5_5031bb31-22c0-4f6f-9f73-91d34ab2b32d@unq.gbl.spaces --userName john.doe@contoso.com
|
|
@@ -26,7 +26,7 @@ m365 teams report directroutingcalls [options]
|
|
|
26
26
|
|
|
27
27
|
## Remarks
|
|
28
28
|
|
|
29
|
-
This command only works with app-only permissions. You will need to create your own
|
|
29
|
+
This command only works with app-only permissions. You will need to create your own Microsoft Entra app with `CallRecords.Read.All` permission assigned. Instructions on how to create your own Microsoft Entra app can be found at [Using your own Microsoft Entra identity](../../../user-guide/using-own-identity.mdx)
|
|
30
30
|
|
|
31
31
|
The difference between `fromDateTime` and `toDateTime` cannot exceed a period of 90 days.
|
|
32
32
|
|
|
@@ -26,7 +26,7 @@ m365 teams report pstncalls [options]
|
|
|
26
26
|
|
|
27
27
|
## Remarks
|
|
28
28
|
|
|
29
|
-
This command only works with app-only permissions. You will need to create your own
|
|
29
|
+
This command only works with app-only permissions. You will need to create your own Microsoft Entra app with `CallRecords.Read.All` permission assigned. Instructions on how to create your own Microsoft Entra app can be found at [Using your own Microsoft Entra identity](../../../user-guide/using-own-identity.mdx)
|
|
30
30
|
|
|
31
31
|
The difference between `fromDateTime` and `toDateTime` cannot exceed a period of 90 days.
|
|
32
32
|
|
|
@@ -62,14 +62,20 @@ m365 teams tab get --teamName "Team Name" --channelName "Channel Name" --name "T
|
|
|
62
62
|
``` json
|
|
63
63
|
{
|
|
64
64
|
"id": "34991fbf-59f4-48d9-b094-b9d64d550e23",
|
|
65
|
-
"displayName": "
|
|
65
|
+
"displayName": "SharePoint",
|
|
66
66
|
"webUrl": "https://teams.microsoft.com/l/entity/1542629c-01b3-4a6d-8f76-1938b779e48d/_djb2_msteams_prefix_34991fbf-59f4-48d9-b094-b9d64d550e23?webUrl=https%3a%2f%2fteams.contoso.ai%2fmsteams%2fcontent%2ftab%2fteam%3ftheme%3d%7btheme%7d&label=My%20Contoso%20Tab&context=%7b%0d%0a++%22canvasUrl%22%3a+%22https%3a%2f%2fteams.contoso.ai%2fmsteams%2fcontent%2ftab%2fteam%3ftheme%3d%7btheme%7d%22%2c%0d%0a++%22channelId%22%3a+%2219%3aB3nCnLKwwCoGDEADyUgQ5kJ5Pkekujyjmwxp7uhQeAE1%40thread.tacv2%22%2c%0d%0a++%22subEntityId%22%3a+null%0d%0a%7d&groupId=aee5a2c9-b1df-45ac-9964-c708e760a045&tenantId=92e59666-257b-49c3-b1fa-1bae8107f6ba",
|
|
67
67
|
"configuration": {
|
|
68
|
-
"entityId": "
|
|
69
|
-
"contentUrl": "https://
|
|
70
|
-
"removeUrl":
|
|
71
|
-
"websiteUrl": "https://
|
|
68
|
+
"entityId": "sharepointtab_0.9493973734805403",
|
|
69
|
+
"contentUrl": "https://contoso.sharepoint.com/sites/EmergencyResponse/_layouts/15/filebrowser.aspx?app=teamsfile&scenario=teamsPage&fileBrowser=%7B%22sdk%22%3A%221.0%22%2C%22entry%22%3A%7B%22sharePoint%22%3A%7B%22byPath%22%3A%7B%22folder%22%3A%22%2Fsites%2FEmergencyResponse%2FShared+Documents%22%7D%7D%2C%22view%22%3A%7B%22id%22%3A%223fed0165-c65f-4633-96d8-78aa513733ea%22%7D%7D%7D&theme={theme}",
|
|
70
|
+
"removeUrl": null,
|
|
71
|
+
"websiteUrl": "https://contoso.sharepoint.com/sites/EmergencyResponse/Shared Documents/Forms/AllItems.aspx",
|
|
72
72
|
"dateAdded": "2022-10-31T12:17:58.632Z"
|
|
73
|
+
},
|
|
74
|
+
"teamsApp": {
|
|
75
|
+
"id": "1542629c-01b3-4a6d-8f76-1938b779e48d",
|
|
76
|
+
"externalId": null,
|
|
77
|
+
"displayName": "SharePoint",
|
|
78
|
+
"distributionMethod": "store"
|
|
73
79
|
}
|
|
74
80
|
}
|
|
75
81
|
```
|
|
@@ -78,18 +84,19 @@ m365 teams tab get --teamName "Team Name" --channelName "Channel Name" --name "T
|
|
|
78
84
|
<TabItem value="Text">
|
|
79
85
|
|
|
80
86
|
``` text
|
|
81
|
-
configuration: {"entityId":"
|
|
82
|
-
displayName :
|
|
87
|
+
configuration: {"entityId":"sharepointtab_0.9493973734805403","contentUrl":"https://contoso.sharepoint.com/sites/EmergencyResponse/_layouts/15/filebrowser.aspx?app=teamsfile&scenario=teamsPage&fileBrowser=%7B%22sdk%22%3A%221.0%22%2C%22entry%22%3A%7B%22sharePoint%22%3A%7B%22byPath%22%3A%7B%22folder%22%3A%22%2Fsites%2FEmergencyResponse%2FShared+Documents%22%7D%7D%2C%22view%22%3A%7B%22id%22%3A%223fed0165-c65f-4633-96d8-78aa513733ea%22%7D%7D%7D&theme={theme}","removeUrl":null,"websiteUrl":"https://contoso.sharepoint.com/sites/EmergencyResponse/Shared Documents/Forms/AllItems.aspx","dateAdded":"2022-10-31T12:17:58.632Z"}
|
|
88
|
+
displayName : SharePoint
|
|
83
89
|
id : 34991fbf-59f4-48d9-b094-b9d64d550e23
|
|
84
|
-
|
|
90
|
+
teamsApp : {"id":"1542629c-01b3-4a6d-8f76-1938b779e48d","externalId":null,"displayName":"SharePoint","distributionMethod":"store"}
|
|
91
|
+
webUrl : https://teams.microsoft.com/l/entity/1542629c-01b3-4a6d-8f76-1938b779e48d/_djb2_msteams_prefix_34991fbf-59f4-48d9-b094-b9d64d550e23?webUrl=https%3a%2f%2fteams.contoso.ai%2fmsteams%2fcontent%2ftab%2fteam%3ftheme%3d%7btheme%7d&label=My%20Contoso%20Tab&context=%7b%0d%0a++%22canvasUrl%22%3a+%22https%3a%2f%2fteams.contoso.ai%2fmsteams%2fcontent%2ftab%2fteam%3ftheme%3d%7btheme%7d%22%2c%0d%0a++%22channelId%22%3a+%2219%3aB3nCnLKwwCoGDEADyUgQ5kJ5Pkekujyjmwxp7uhQeAE1%40thread.tacv2%22%2c%0d%0a++%22subEntityId%22%3a+null%0d%0a%7d&groupId=aee5a2c9-b1df-45ac-9964-c708e760a045&tenantId=92e59666-257b-49c3-b1fa-1bae8107f6ba
|
|
85
92
|
```
|
|
86
93
|
|
|
87
94
|
</TabItem>
|
|
88
95
|
<TabItem value="CSV">
|
|
89
96
|
|
|
90
97
|
``` text
|
|
91
|
-
id,displayName,webUrl
|
|
92
|
-
34991fbf-59f4-48d9-b094-b9d64d550e23,
|
|
98
|
+
id,displayName,webUrl
|
|
99
|
+
34991fbf-59f4-48d9-b094-b9d64d550e23,1542629c-01b3-4a6d-8f76-1938b779e48d,SharePoint,https://teams.microsoft.com/l/entity/1542629c-01b3-4a6d-8f76-1938b779e48d/_djb2_msteams_prefix_34991fbf-59f4-48d9-b094-b9d64d550e23?webUrl=https%3a%2f%2fteams.contoso.ai%2fmsteams%2fcontent%2ftab%2fteam%3ftheme%3d%7btheme%7d&label=My%20Contoso%20Tab&context=%7b%0d%0a++%22canvasUrl%22%3a+%22https%3a%2f%2fteams.contoso.ai%2fmsteams%2fcontent%2ftab%2fteam%3ftheme%3d%7btheme%7d%22%2c%0d%0a++%22channelId%22%3a+%2219%3aB3nCnLKwwCoGDEADyUgQ5kJ5Pkekujyjmwxp7uhQeAE1%40thread.tacv2%22%2c%0d%0a++%22subEntityId%22%3a+null%0d%0a%7d&groupId=aee5a2c9-b1df-45ac-9964-c708e760a045&tenantId=92e59666-257b-49c3-b1fa-1bae8107f6ba
|
|
93
100
|
```
|
|
94
101
|
|
|
95
102
|
</TabItem>
|
|
@@ -100,12 +107,12 @@ m365 teams tab get --teamName "Team Name" --channelName "Channel Name" --name "T
|
|
|
100
107
|
|
|
101
108
|
Date: 1/3/2023
|
|
102
109
|
|
|
103
|
-
##
|
|
110
|
+
## SharePoint (34991fbf-59f4-48d9-b094-b9d64d550e23)
|
|
104
111
|
|
|
105
112
|
Property | Value
|
|
106
113
|
---------|-------
|
|
107
114
|
id | 34991fbf-59f4-48d9-b094-b9d64d550e23
|
|
108
|
-
displayName |
|
|
115
|
+
displayName | SharePoint
|
|
109
116
|
webUrl | https://teams.microsoft.com/l/entity/1542629c-01b3-4a6d-8f76-1938b779e48d/_djb2_msteams_prefix_34991fbf-59f4-48d9-b094-b9d64d550e23?webUrl=https%3a%2f%2fteams.contoso.ai%2fmsteams%2fcontent%2ftab%2fteam%3ftheme%3d%7btheme%7d&label=My%20Contoso%20Tab&context=%7b%0d%0a++%22canvasUrl%22%3a+%22https%3a%2f%2fteams.contoso.ai%2fmsteams%2fcontent%2ftab%2fteam%3ftheme%3d%7btheme%7d%22%2c%0d%0a++%22channelId%22%3a+%2219%3aB3nCnLKwwCoGDEADyUgQ5kJ5Pkekujyjmwxp7uhQeAE1%40thread.tacv2%22%2c%0d%0a++%22subEntityId%22%3a+null%0d%0a%7d&groupId=aee5a2c9-b1df-45ac-9964-c708e760a045&tenantId=92e59666-257b-49c3-b1fa-1bae8107f6ba
|
|
110
117
|
```
|
|
111
118
|
|
|
@@ -71,7 +71,7 @@ m365 tenant security alerts list --vendor "Azure Sentinel"
|
|
|
71
71
|
],
|
|
72
72
|
"status": "newAlert",
|
|
73
73
|
"title": "Access from an unusual location to a storage blob container",
|
|
74
|
-
"CustomProperties": "[\"{\\\"Alert Id\\\":\\\"658fa695-a5e6-4b60-ac7c-b2c1396df384\\\",\\\"
|
|
74
|
+
"CustomProperties": "[\"{\\\"Alert Id\\\":\\\"658fa695-a5e6-4b60-ac7c-b2c1396df384\\\",\\\"Microsoft Entra user\\\":\\\"N/A (Microsoft Entra user authentication was not used)\\\",\\\"User agent\\\":\\\"Azure-Storage/9.3.0 (.NET Core)\\\",\\\"API type\\\":\\\"Blob\\\",\\\"Client location\\\":\\\"Dublin, Ireland\\\",\\\"Authentication type\\\":\\\"Shared access signature (SAS)\\\",\\\"Investigation steps\\\":\\\"{\\\\\\\"displayValue\\\\\\\":\\\\\\\"View related storage activity using Storage Analytics Logging. See how to configure Storage Analytics logging and more information\\\\\\\",\\\\\\\"kind\\\\\\\":\\\\\\\"Link\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"https:\\\\\\\\/\\\\\\\\/go.microsoft.com\\\\\\\\/fwlink\\\\\\\\/?linkid=2075734\\\\\\\"}\\\",\\\"Operations types\\\":\\\"GetBlob\\\",\\\"Service type\\\":\\\"Azure Blobs\\\",\\\"Container\\\":\\\"temporary\\\",\\\"Potential causes\\\":\\\"This alert indicates that this account has been accessed successfully from an IP address that is unfamiliar and unexpected compared to recent access pattern on this account.\\\\\\Potential causes:\\\\\\• An attacker has accessed your storage account.\\\\\\• A legitimate user has accessed your storage account from a new location.\\\",\\\"resourceType\\\":\\\"Storage\\\",\\\"ReportingSystem\\\":\\\"Azure\\\"}\",\"\\\"InitialAccess\\\"\"]",
|
|
75
75
|
"vendorInformation": {
|
|
76
76
|
"provider": "ASC",
|
|
77
77
|
"providerVersion": null,
|
|
@@ -28,7 +28,7 @@ m365 viva engage group list [options]
|
|
|
28
28
|
|
|
29
29
|
:::warning
|
|
30
30
|
|
|
31
|
-
In order to use this command, you need to grant the
|
|
31
|
+
In order to use this command, you need to grant the Microsoft Entra application used by the CLI for Microsoft 365 the permission to the Viva Engage API. To do this, execute the `cli consent --service VivaEngage` command.
|
|
32
32
|
|
|
33
33
|
:::
|
|
34
34
|
|
|
@@ -29,7 +29,7 @@ m365 viva engage group user add [options]
|
|
|
29
29
|
|
|
30
30
|
:::warning
|
|
31
31
|
|
|
32
|
-
In order to use this command, you need to grant the
|
|
32
|
+
In order to use this command, you need to grant the Microsoft Entra application used by the CLI for Microsoft 365 the permission to the Viva Engage API. To do this, execute the `cli consent --service VivaEngage` command.
|
|
33
33
|
|
|
34
34
|
:::
|
|
35
35
|
|
|
@@ -29,7 +29,7 @@ m365 viva engage group user remove [options]
|
|
|
29
29
|
|
|
30
30
|
:::warning
|
|
31
31
|
|
|
32
|
-
In order to use this command, you need to grant the
|
|
32
|
+
In order to use this command, you need to grant the Microsoft Entra application used by the CLI for Microsoft 365 the permission to the Viva Engage API. To do this, execute the `cli consent --service VivaEngage` command.
|
|
33
33
|
|
|
34
34
|
:::
|
|
35
35
|
|
|
@@ -37,7 +37,7 @@ m365 viva engage message add [options]
|
|
|
37
37
|
|
|
38
38
|
:::warning
|
|
39
39
|
|
|
40
|
-
In order to use this command, you need to grant the
|
|
40
|
+
In order to use this command, you need to grant the Microsoft Entra application used by the CLI for Microsoft 365 the permission to the Viva Engage API. To do this, execute the `cli consent --service VivaEngage` command.
|
|
41
41
|
|
|
42
42
|
:::
|
|
43
43
|
|
|
@@ -25,7 +25,7 @@ m365 viva engage message get [options]
|
|
|
25
25
|
|
|
26
26
|
:::warning
|
|
27
27
|
|
|
28
|
-
In order to use this command, you need to grant the
|
|
28
|
+
In order to use this command, you need to grant the Microsoft Entra application used by the CLI for Microsoft 365 the permission to the Viva Engage API. To do this, execute the `cli consent --service VivaEngage` command.
|
|
29
29
|
|
|
30
30
|
:::
|
|
31
31
|
|
|
@@ -29,7 +29,7 @@ m365 viva engage message like set [options]
|
|
|
29
29
|
|
|
30
30
|
:::warning
|
|
31
31
|
|
|
32
|
-
In order to use this command, you need to grant the
|
|
32
|
+
In order to use this command, you need to grant the Microsoft Entra application used by the CLI for Microsoft 365 the permission to the Viva Engage API. To do this, execute the `cli consent --service VivaEngage` command.
|
|
33
33
|
|
|
34
34
|
:::
|
|
35
35
|
|
|
@@ -40,7 +40,7 @@ m365 viva engage message list [options]
|
|
|
40
40
|
|
|
41
41
|
:::warning
|
|
42
42
|
|
|
43
|
-
In order to use this command, you need to grant the
|
|
43
|
+
In order to use this command, you need to grant the Microsoft Entra application used by the CLI for Microsoft 365 the permission to the Viva Engage API. To do this, execute the `cli consent --service VivaEngage` command.
|
|
44
44
|
|
|
45
45
|
:::
|
|
46
46
|
|
|
@@ -26,7 +26,7 @@ m365 viva engage message remove [options]
|
|
|
26
26
|
|
|
27
27
|
:::warning
|
|
28
28
|
|
|
29
|
-
In order to use this command, you need to grant the
|
|
29
|
+
In order to use this command, you need to grant the Microsoft Entra application used by the CLI for Microsoft 365 the permission to the Viva Engage API. To do this, execute the `cli consent --service VivaEngage` command.
|
|
30
30
|
|
|
31
31
|
:::
|
|
32
32
|
|
|
@@ -25,7 +25,7 @@ m365 viva engage network list [options]
|
|
|
25
25
|
|
|
26
26
|
:::warning
|
|
27
27
|
|
|
28
|
-
In order to use this command, you need to grant the
|
|
28
|
+
In order to use this command, you need to grant the Microsoft Entra application used by the CLI for Microsoft 365 the permission to the Viva Engage API. To do this, execute the `cli consent --service VivaEngage` command.
|
|
29
29
|
|
|
30
30
|
:::
|
|
31
31
|
|
|
@@ -31,7 +31,7 @@ m365 viva engage search [options]
|
|
|
31
31
|
|
|
32
32
|
:::warning
|
|
33
33
|
|
|
34
|
-
In order to use this command, you need to grant the
|
|
34
|
+
In order to use this command, you need to grant the Microsoft Entra application used by the CLI for Microsoft 365 the permission to the Viva Engage API. To do this, execute the `cli consent --service VivaEngage` command.
|
|
35
35
|
|
|
36
36
|
:::
|
|
37
37
|
|
|
@@ -28,7 +28,7 @@ m365 viva engage user get [options]
|
|
|
28
28
|
|
|
29
29
|
:::warning
|
|
30
30
|
|
|
31
|
-
In order to use this command, you need to grant the
|
|
31
|
+
In order to use this command, you need to grant the Microsoft Entra application used by the CLI for Microsoft 365 the permission to the Viva Engage API. To do this, execute the `cli consent --service VivaEngage` command.
|
|
32
32
|
|
|
33
33
|
:::
|
|
34
34
|
|
|
@@ -37,7 +37,7 @@ m365 viva engage user list [options]
|
|
|
37
37
|
|
|
38
38
|
:::warning
|
|
39
39
|
|
|
40
|
-
In order to use this command, you need to grant the
|
|
40
|
+
In order to use this command, you need to grant the Microsoft Entra application used by the CLI for Microsoft 365 the permission to the Viva Engage API. To do this, execute the `cli consent --service VivaEngage` command.
|
|
41
41
|
|
|
42
42
|
:::
|
|
43
43
|
|