@pnp/cli-microsoft365 7.6.0-beta.c74fe4b → 7.6.0-beta.fc0eacc
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/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/base/PeriodBasedReport.js +3 -0
- 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/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 +6 -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/report/report-directroutingcalls.js +3 -0
- package/dist/m365/teams/commands/report/report-pstncalls.js +3 -0
- package/dist/m365/teams/commands/tab/tab-get.js +1 -1
- package/dist/m365/teams/commands/team/team-add.js +132 -3
- package/dist/m365/tenant/commands/report/report-office365activationcounts.js +3 -0
- package/dist/m365/tenant/commands/report/report-office365activationsusercounts.js +3 -0
- package/dist/m365/tenant/commands/report/report-office365activationsuserdetail.js +3 -0
- package/dist/utils/entraUser.js +36 -0
- 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/m365group/m365group-report-activitycounts.mdx +8 -0
- package/docs/docs/cmd/entra/m365group/m365group-report-activitydetail.mdx +8 -0
- package/docs/docs/cmd/entra/m365group/m365group-report-activityfilecounts.mdx +8 -0
- package/docs/docs/cmd/entra/m365group/m365group-report-activitygroupcounts.mdx +8 -0
- package/docs/docs/cmd/entra/m365group/m365group-report-activitystorage.mdx +8 -0
- 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/onedrive/report/report-activityfilecounts.mdx +8 -0
- package/docs/docs/cmd/onedrive/report/report-activityusercounts.mdx +8 -0
- package/docs/docs/cmd/onedrive/report/report-activityuserdetail.mdx +8 -0
- package/docs/docs/cmd/onedrive/report/report-usageaccountcounts.mdx +8 -0
- package/docs/docs/cmd/onedrive/report/report-usageaccountdetail.mdx +8 -0
- package/docs/docs/cmd/onedrive/report/report-usagefilecounts.mdx +6 -0
- package/docs/docs/cmd/onedrive/report/report-usagestorage.mdx +8 -0
- package/docs/docs/cmd/outlook/message/message-remove.mdx +67 -0
- package/docs/docs/cmd/outlook/report/report-mailactivitycounts.mdx +8 -0
- package/docs/docs/cmd/outlook/report/report-mailactivityusercounts.mdx +8 -0
- package/docs/docs/cmd/outlook/report/report-mailactivityuserdetail.mdx +8 -0
- package/docs/docs/cmd/outlook/report/report-mailappusageappsusercounts.mdx +7 -0
- package/docs/docs/cmd/outlook/report/report-mailappusageusercounts.mdx +8 -0
- package/docs/docs/cmd/outlook/report/report-mailappusageuserdetail.mdx +8 -0
- package/docs/docs/cmd/outlook/report/report-mailappusageversionsusercounts.mdx +8 -0
- package/docs/docs/cmd/outlook/report/report-mailboxusagedetail.mdx +8 -0
- package/docs/docs/cmd/outlook/report/report-mailboxusagemailboxcount.mdx +6 -0
- package/docs/docs/cmd/outlook/report/report-mailboxusagequotastatusmailboxcounts.mdx +8 -0
- package/docs/docs/cmd/outlook/report/report-mailboxusagestorage.mdx +8 -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/request.mdx +1 -1
- package/docs/docs/cmd/skype/report/report-activitycounts.mdx +8 -0
- package/docs/docs/cmd/skype/report/report-activityusercounts.mdx +8 -0
- package/docs/docs/cmd/skype/report/report-activityuserdetail.mdx +8 -0
- 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/report/report-activityfilecounts.mdx +8 -0
- package/docs/docs/cmd/spo/report/report-activitypages.mdx +8 -0
- package/docs/docs/cmd/spo/report/report-activityusercounts.mdx +6 -0
- package/docs/docs/cmd/spo/report/report-activityuserdetail.mdx +6 -0
- package/docs/docs/cmd/spo/report/report-siteusagedetail.mdx +6 -0
- package/docs/docs/cmd/spo/report/report-siteusagefilecounts.mdx +6 -0
- package/docs/docs/cmd/spo/report/report-siteusagepages.mdx +8 -0
- package/docs/docs/cmd/spo/report/report-siteusagesitecounts.mdx +6 -0
- package/docs/docs/cmd/spo/report/report-siteusagestorage.mdx +8 -0
- 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-deviceusagedistributionusercounts.mdx +8 -0
- package/docs/docs/cmd/teams/report/report-deviceusageusercounts.mdx +8 -0
- package/docs/docs/cmd/teams/report/report-deviceusageuserdetail.mdx +6 -0
- package/docs/docs/cmd/teams/report/report-directroutingcalls.mdx +7 -1
- package/docs/docs/cmd/teams/report/report-pstncalls.mdx +7 -1
- package/docs/docs/cmd/teams/report/report-useractivitycounts.mdx +8 -0
- package/docs/docs/cmd/teams/report/report-useractivityusercounts.mdx +8 -0
- package/docs/docs/cmd/teams/report/report-useractivityuserdetail.mdx +8 -0
- package/docs/docs/cmd/teams/tab/tab-get.mdx +19 -12
- package/docs/docs/cmd/teams/team/team-add.mdx +28 -4
- package/docs/docs/cmd/tenant/report/report-activeusercounts.mdx +8 -0
- package/docs/docs/cmd/tenant/report/report-activeuserdetail.mdx +6 -0
- package/docs/docs/cmd/tenant/report/report-office365activationcounts.mdx +8 -0
- package/docs/docs/cmd/tenant/report/report-office365activationsusercounts.mdx +8 -0
- package/docs/docs/cmd/tenant/report/report-office365activationsuserdetail.mdx +8 -0
- package/docs/docs/cmd/tenant/report/report-servicesusercounts.mdx +8 -0
- 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-report-activitycounts.mdx +8 -0
- package/docs/docs/cmd/viva/engage/engage-report-activityusercounts.mdx +8 -0
- package/docs/docs/cmd/viva/engage/engage-report-activityuserdetail.mdx +6 -0
- package/docs/docs/cmd/viva/engage/engage-report-deviceusagedistributionusercounts.mdx +8 -0
- package/docs/docs/cmd/viva/engage/engage-report-deviceusageusercounts.mdx +8 -0
- package/docs/docs/cmd/viva/engage/engage-report-deviceusageuserdetail.mdx +6 -0
- package/docs/docs/cmd/viva/engage/engage-report-groupsactivitycounts.mdx +8 -0
- package/docs/docs/cmd/viva/engage/engage-report-groupsactivitydetail.mdx +6 -0
- package/docs/docs/cmd/viva/engage/engage-report-groupsactivitygroupcounts.mdx +8 -0
- 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 +62 -58
- package/package.json +11 -11
- package/dist/m365/spo/commands/folder/folder-rename.js +0 -72
- package/docs/docs/cmd/spo/folder/folder-rename.mdx +0 -44
|
@@ -224,5 +224,5 @@ m365 entra enterpriseapp get --appObjectId b2307a39-e878-458b-bc90-03bc578531dd
|
|
|
224
224
|
|
|
225
225
|
## More information
|
|
226
226
|
|
|
227
|
-
- Application and
|
|
227
|
+
- Application and service principal objects in Microsoft Entra ID: [https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects](https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects)
|
|
228
228
|
- Get servicePrincipal: [https://learn.microsoft.com/graph/api/serviceprincipal-get?view=graph-rest-1.0](https://learn.microsoft.com/graph/api/serviceprincipal-get?view=graph-rest-1.0)
|
|
@@ -14,13 +14,13 @@ m365 entra group user add [options]
|
|
|
14
14
|
|
|
15
15
|
```md definition-list
|
|
16
16
|
`-i, --groupId [groupId]`
|
|
17
|
-
: The ID of the Entra
|
|
17
|
+
: The ID of the Microsoft Entra group. Specify `groupId` or `groupDisplayName` but not both.
|
|
18
18
|
|
|
19
19
|
`-n, --groupDisplayName [groupDisplayName]`
|
|
20
|
-
: The display name of the Entra
|
|
20
|
+
: The display name of the Microsoft Entra group. Specify `groupId` or `groupDisplayName` but not both.
|
|
21
21
|
|
|
22
22
|
`--ids [ids]`
|
|
23
|
-
: Entra
|
|
23
|
+
: Microsoft Entra IDs of users. You can also pass a comma-separated list of IDs. Specify either `ids` or `userNames` but not both.
|
|
24
24
|
|
|
25
25
|
`--userNames [userNames]`
|
|
26
26
|
: The user principal names of users. You can also pass a comma-separated list of UPNs. Specify either `ids` or `userNames` but not both.
|
|
@@ -33,25 +33,25 @@ m365 entra group user add [options]
|
|
|
33
33
|
|
|
34
34
|
## Examples
|
|
35
35
|
|
|
36
|
-
Add a single user specified by ID as a member to a group specified by display name
|
|
36
|
+
Add a single user specified by ID as a member to a group specified by display name.
|
|
37
37
|
|
|
38
38
|
```sh
|
|
39
39
|
m365 entra group user add --groupDisplayName Developers --ids 098b9f52-f48c-4401-819f-29c33794c3f5 --role Member
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
-
Add multiple users specified by ID as members to a group specified by ID
|
|
42
|
+
Add multiple users specified by ID as members to a group specified by ID.
|
|
43
43
|
|
|
44
44
|
```sh
|
|
45
45
|
m365 entra group user add --groupId a03c0c35-ef9a-419b-8cab-f89e0a8d2d2a --ids "098b9f52-f48c-4401-819f-29c33794c3f5,f1e06e31-3abf-4746-83c2-1513d71f38b8" --role Member
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
-
Add a single user specified by UPN as an owner to a group specified by display name
|
|
48
|
+
Add a single user specified by UPN as an owner to a group specified by display name.
|
|
49
49
|
|
|
50
50
|
```sh
|
|
51
51
|
m365 entra group user add --groupDisplayName Developers --userNames john.doe@contoso.com --role Owner
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
-
Adds multiple users specified by UPN as owners to a group specified by ID
|
|
54
|
+
Adds multiple users specified by UPN as owners to a group specified by ID.
|
|
55
55
|
|
|
56
56
|
```sh
|
|
57
57
|
m365 entra group user add --groupId a03c0c35-ef9a-419b-8cab-f89e0a8d2d2a --userNames "john.doe@contoso.com,adele.vance@contoso.com" --role Owner
|
|
@@ -30,6 +30,14 @@ m365 aad m365group report activitycounts [options]
|
|
|
30
30
|
|
|
31
31
|
<Global />
|
|
32
32
|
|
|
33
|
+
## Remarks
|
|
34
|
+
|
|
35
|
+
:::info
|
|
36
|
+
|
|
37
|
+
This command supports only csv and json output.
|
|
38
|
+
|
|
39
|
+
:::
|
|
40
|
+
|
|
33
41
|
## Examples
|
|
34
42
|
|
|
35
43
|
Get the number of group activities across group workloads for the last week
|
|
@@ -33,6 +33,14 @@ m365 aad m365group report activitydetail [options]
|
|
|
33
33
|
|
|
34
34
|
<Global />
|
|
35
35
|
|
|
36
|
+
## Remarks
|
|
37
|
+
|
|
38
|
+
:::info
|
|
39
|
+
|
|
40
|
+
This command supports only csv and json output.
|
|
41
|
+
|
|
42
|
+
:::
|
|
43
|
+
|
|
36
44
|
## Examples
|
|
37
45
|
|
|
38
46
|
Get details about Microsoft 365 Groups activity by group for the last week
|
|
@@ -30,6 +30,14 @@ m365 aad m365group report activityfilecounts [options]
|
|
|
30
30
|
|
|
31
31
|
<Global />
|
|
32
32
|
|
|
33
|
+
## Remarks
|
|
34
|
+
|
|
35
|
+
:::info
|
|
36
|
+
|
|
37
|
+
This command supports only csv and json output.
|
|
38
|
+
|
|
39
|
+
:::
|
|
40
|
+
|
|
33
41
|
## Examples
|
|
34
42
|
|
|
35
43
|
Get the total number of files and how many of them were active across all group sites associated with an Microsoft 365 Group for the last week
|
|
@@ -30,6 +30,14 @@ m365 aad m365group report activitygroupcounts [options]
|
|
|
30
30
|
|
|
31
31
|
<Global />
|
|
32
32
|
|
|
33
|
+
## Remarks
|
|
34
|
+
|
|
35
|
+
:::info
|
|
36
|
+
|
|
37
|
+
This command supports only csv and json output.
|
|
38
|
+
|
|
39
|
+
:::
|
|
40
|
+
|
|
33
41
|
## Examples
|
|
34
42
|
|
|
35
43
|
Get the daily total number of groups and how many of them were active based on activities for the last week
|
|
@@ -30,6 +30,14 @@ m365 aad m365group report activitystorage [options]
|
|
|
30
30
|
|
|
31
31
|
<Global />
|
|
32
32
|
|
|
33
|
+
## Remarks
|
|
34
|
+
|
|
35
|
+
:::info
|
|
36
|
+
|
|
37
|
+
This command supports only csv and json output.
|
|
38
|
+
|
|
39
|
+
:::
|
|
40
|
+
|
|
33
41
|
## Examples
|
|
34
42
|
|
|
35
43
|
Get the total storage used across all group mailboxes and group sites for the last week
|
|
@@ -61,4 +61,4 @@ The command won't return a response on success.
|
|
|
61
61
|
|
|
62
62
|
## More information
|
|
63
63
|
|
|
64
|
-
- Application and service principal objects in Entra ID
|
|
64
|
+
- Application and service principal objects in Microsoft Entra ID: [https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects](https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects)
|
|
@@ -100,5 +100,5 @@ m365 entra oauth2grant list --spObjectId b2307a39-e878-458b-bc90-03bc578531d6
|
|
|
100
100
|
|
|
101
101
|
## More information
|
|
102
102
|
|
|
103
|
-
- Application and service principal objects in Entra ID
|
|
103
|
+
- Application and service principal objects in Microsoft Entra ID: [https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects](https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects)
|
|
104
104
|
- List oauth2PermissionGrants: [https://learn.microsoft.com/graph/api/oauth2permissiongrant-list?view=graph-rest-1.0](https://learn.microsoft.com/graph/api/oauth2permissiongrant-list?view=graph-rest-1.0)
|
|
@@ -58,5 +58,5 @@ The command won't return a response on success.
|
|
|
58
58
|
|
|
59
59
|
## More information
|
|
60
60
|
|
|
61
|
-
- Application and service principal objects in Entra ID
|
|
61
|
+
- Application and service principal objects in Microsoft Entra ID: [https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects](https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects)
|
|
62
62
|
- Delete a delegated permission grant (oAuth2PermissionGrant): [https://learn.microsoft.com/graph/api/oauth2permissiongrant-delete?view=graph-rest-1.0](https://learn.microsoft.com/graph/api/oauth2permissiongrant-delete?view=graph-rest-1.0)
|
|
@@ -52,5 +52,5 @@ The command won't return a response on success.
|
|
|
52
52
|
|
|
53
53
|
## More information
|
|
54
54
|
|
|
55
|
-
- Application and service principal objects in Entra ID
|
|
55
|
+
- Application and service principal objects in Microsoft Entra ID: [https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects](https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects)
|
|
56
56
|
- Update a delegated permission grant (oAuth2PermissionGrant): [https://learn.microsoft.com/graph/api/oauth2permissiongrant-update?view=graph-rest-1.0](https://learn.microsoft.com/graph/api/oauth2permissiongrant-update?view=graph-rest-1.0)
|
|
@@ -20,7 +20,7 @@ m365 search externalconnection add
|
|
|
20
20
|
|
|
21
21
|
```md definition-list
|
|
22
22
|
`-i, --id <id>`
|
|
23
|
-
: Developer-provided unique ID of the connection within the
|
|
23
|
+
: Developer-provided unique ID of the connection within the Microsoft Entra tenant.
|
|
24
24
|
|
|
25
25
|
`-n, --name <name>`
|
|
26
26
|
: The display name of the connection to be displayed in the Microsoft 365 admin center. Maximum length of 128 characters.
|
|
@@ -29,7 +29,7 @@ m365 search externalconnection add
|
|
|
29
29
|
: Description of the connection displayed in the Microsoft 365 admin center.
|
|
30
30
|
|
|
31
31
|
`--authorizedAppIds [authorizedAppIds]`
|
|
32
|
-
: Comma-separated collection of application IDs for registered
|
|
32
|
+
: Comma-separated collection of application IDs for registered Microsoft Entra apps that are allowed to manage the external connection and to index content in the external connection.
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
<Global />
|
|
@@ -29,7 +29,7 @@ m365 file add [options]
|
|
|
29
29
|
|
|
30
30
|
The `folderUrl` must be an absolute URL to the document library where the file should be uploaded. The document library can be located in any site collection in your tenant, including OneDrive for Business. The `folderUrl` can also point to a (sub)folder in the document library.
|
|
31
31
|
|
|
32
|
-
By default, the `file add` command will automatically lookup the ID of the site where you want to upload the file based on the specified `folderUrl`. It will do this, by breaking the URL into chunks and incrementally calling Microsoft Graph to retrieve site information. This is necessary, because there is no other way looking at the URL to distinguish where the site URL ends and the document library URL starts. If you want to speed up uploading files, or you use resource-specific consent and your
|
|
32
|
+
By default, the `file add` command will automatically lookup the ID of the site where you want to upload the file based on the specified `folderUrl`. It will do this, by breaking the URL into chunks and incrementally calling Microsoft Graph to retrieve site information. This is necessary, because there is no other way looking at the URL to distinguish where the site URL ends and the document library URL starts. If you want to speed up uploading files, or you use resource-specific consent and your Microsoft Entra app only has access to the specific site, you can use the `siteUrl` option to specify the URL of the site yourself.
|
|
33
33
|
|
|
34
34
|
## Examples
|
|
35
35
|
|
|
@@ -22,7 +22,7 @@ m365 graph schemaextension add [options]
|
|
|
22
22
|
: Description of the schema extension
|
|
23
23
|
|
|
24
24
|
`--owner <owner>`
|
|
25
|
-
: The Id
|
|
25
|
+
: The Id of the Microsoft Entra application that is the owner of the schema extension
|
|
26
26
|
|
|
27
27
|
`-t, --targetTypes <targetTypes>`
|
|
28
28
|
: Comma-separated list of Microsoft Graph resource types the schema extension targets
|
|
@@ -45,7 +45,7 @@ To create a schema extension, you have to specify a unique ID for the schema ext
|
|
|
45
45
|
|
|
46
46
|
The schema extension ID cannot be changed after creation.
|
|
47
47
|
|
|
48
|
-
The schema extension owner is the ID of the
|
|
48
|
+
The schema extension owner is the ID of the Microsoft Entra application that is the owner of the schema extension. Once set, this property is read-only and cannot be changed.
|
|
49
49
|
|
|
50
50
|
The target types are the set of Microsoft Graph resource types (that support schema extensions) that this schema extension definition can be applied to. This option is specified as a comma-separated list
|
|
51
51
|
|
|
@@ -17,7 +17,7 @@ m365 graph schemaextension set [options]
|
|
|
17
17
|
: The unique identifier for the schema extension definition
|
|
18
18
|
|
|
19
19
|
`--owner <owner>`
|
|
20
|
-
: The ID of the
|
|
20
|
+
: The ID of the Microsoft Entra application that is the owner of the schema extension
|
|
21
21
|
|
|
22
22
|
`-d, --description [description]`
|
|
23
23
|
: Description of the schema extension
|
package/docs/docs/cmd/login.mdx
CHANGED
|
@@ -34,10 +34,10 @@ m365 login [options]
|
|
|
34
34
|
: Certificate thumbprint. If not specified, and `authType` is set to `certificate`, it will be automatically calculated based on the specified certificate
|
|
35
35
|
|
|
36
36
|
`-s, --secret [secret]`
|
|
37
|
-
: Client Secret of the
|
|
37
|
+
: Client Secret of the Microsoft Entra application to use for authentication. Required when `authType` is set to `secret`.
|
|
38
38
|
|
|
39
39
|
`--appId [appId]`
|
|
40
|
-
: App ID of the
|
|
40
|
+
: App ID of the Microsoft Entra application to use for authentication. If not specified, use the app specified in the `CLIMICROSOFT365_ENTRAAPPID` environment variable. If the environment variable is not defined, use the multitenant PnP Management Shell app
|
|
41
41
|
|
|
42
42
|
`--tenant [tenant]`
|
|
43
43
|
: ID of the tenant from which accounts should be able to authenticate. Use `common` or `organization` if the app is multitenant. If not specified, use the tenant specified in the `CLIMICROSOFT365_TENANT` environment variable. If the environment variable is not defined, use `common` as the tenant identifier
|
|
@@ -61,11 +61,11 @@ When logging in to Microsoft 365 using the user name and password, next to the a
|
|
|
61
61
|
|
|
62
62
|
When logging in to Microsoft 365 using a certificate, the CLI for Microsoft 365 will store the contents of the certificate so that it can automatically re-authenticate if necessary. The contents of the certificate are removed by re-authenticating using the device code or by calling the [logout](logout.mdx) command.
|
|
63
63
|
|
|
64
|
-
To log in to Microsoft 365 using a certificate or secret, you will typically [create a custom
|
|
64
|
+
To log in to Microsoft 365 using a certificate or secret, you will typically [create a custom Microsoft Entra application](../user-guide/using-own-identity.mdx). To use this application with the CLI for Microsoft 365, you will set the `CLIMICROSOFT365_ENTRAAPPID` environment variable to the application's ID and the `CLIMICROSOFT365_TENANT` environment variable to the ID of the Microsoft Entra tenant, where you created the Microsoft Entra application. Also, please make sure to read about [the caveats when using the certificate login option](../user-guide/cli-certificate-caveats.mdx).
|
|
65
65
|
|
|
66
66
|
Managed identity in Azure Cloud Shell is the identity of the user. It is neither system- nor user-assigned and it can't be configured. To log in to Microsoft 365 using managed identity in Azure Cloud Shell, set `authType` to `identity` and don't specify the `userName` option.
|
|
67
67
|
|
|
68
|
-
When connecting to clouds other than `Public`, you'll need to use
|
|
68
|
+
When connecting to clouds other than `Public`, you'll need to use a Microsoft Entra application registered in a directory provisioned in that cloud. If you try to login using the default Microsoft Entra application, login will fail.
|
|
69
69
|
|
|
70
70
|
:::tip
|
|
71
71
|
|
|
@@ -160,19 +160,19 @@ Log in to Microsoft 365 using a user-assigned managed identity. Client id or pri
|
|
|
160
160
|
m365 login --authType identity --userName ac9fbed5-804c-4362-a369-21a4ec51109e
|
|
161
161
|
```
|
|
162
162
|
|
|
163
|
-
Log in to Microsoft 365 using your own multitenant
|
|
163
|
+
Log in to Microsoft 365 using your own multitenant Microsoft Entra application
|
|
164
164
|
|
|
165
165
|
```sh
|
|
166
166
|
m365 login --appId 31359c7f-bd7e-475c-86db-fdb8c937548c
|
|
167
167
|
```
|
|
168
168
|
|
|
169
|
-
Log in to Microsoft 365 using your own
|
|
169
|
+
Log in to Microsoft 365 using your own Microsoft Entra application that's restricted only to allow accounts from the specific tenant
|
|
170
170
|
|
|
171
171
|
```sh
|
|
172
172
|
m365 login --appId 31359c7f-bd7e-475c-86db-fdb8c937548c --tenant 31359c7f-bd7e-475c-86db-fdb8c937548a
|
|
173
173
|
```
|
|
174
174
|
|
|
175
|
-
Log in to Microsoft 365 using your own
|
|
175
|
+
Log in to Microsoft 365 using your own Microsoft Entra application and a personal information exchange (.pfx) file
|
|
176
176
|
|
|
177
177
|
```sh
|
|
178
178
|
m365 login --authType certificate --appId 31359c7f-bd7e-475c-86db-fdb8c937548c --tenant 31359c7f-bd7e-475c-86db-fdb8c937548a --certificateFile /Users/user/dev/localhost.pfx --password 'pass@word1'
|
|
@@ -201,6 +201,7 @@ m365 login --authType secret --secret topSeCr3t@007
|
|
|
201
201
|
Upon successful login:
|
|
202
202
|
```json
|
|
203
203
|
{
|
|
204
|
+
"connectionName": "dd8b99a7-77c6-4238-a609-396d27844921",
|
|
204
205
|
"connectedAs": "john.doe@contoso.onmicrosoft.com",
|
|
205
206
|
"authType": "DeviceCode",
|
|
206
207
|
"appId": "31359c7f-bd7e-475c-86db-fdb8c937548e",
|
|
@@ -217,11 +218,12 @@ m365 login --authType secret --secret topSeCr3t@007
|
|
|
217
218
|
```
|
|
218
219
|
Upon successful login:
|
|
219
220
|
```text
|
|
220
|
-
appId
|
|
221
|
-
appTenant
|
|
222
|
-
authType
|
|
223
|
-
|
|
224
|
-
|
|
221
|
+
appId : 31359c7f-bd7e-475c-86db-fdb8c937548e
|
|
222
|
+
appTenant : common
|
|
223
|
+
authType : DeviceCode
|
|
224
|
+
cloudType : Public
|
|
225
|
+
connectedAs : john.doe@contoso.onmicrosoft.com
|
|
226
|
+
connectionName: dd8b99a7-77c6-4238-a609-396d27844921
|
|
225
227
|
```
|
|
226
228
|
|
|
227
229
|
</TabItem>
|
|
@@ -232,8 +234,8 @@ m365 login --authType secret --secret topSeCr3t@007
|
|
|
232
234
|
```
|
|
233
235
|
Upon successful login:
|
|
234
236
|
```csv
|
|
235
|
-
connectedAs,authType,appId,appTenant,cloudType
|
|
236
|
-
john.doe@contoso.onmicrosoft.com,DeviceCode,31359c7f-bd7e-475c-86db-fdb8c937548e,common,Public
|
|
237
|
+
connectionName,connectedAs,authType,appId,appTenant,cloudType
|
|
238
|
+
dd8b99a7-77c6-4238-a609-396d27844921,john.doe@contoso.onmicrosoft.com,DeviceCode,31359c7f-bd7e-475c-86db-fdb8c937548e,common,Public
|
|
237
239
|
```
|
|
238
240
|
|
|
239
241
|
</TabItem>
|
|
@@ -244,14 +246,13 @@ m365 login --authType secret --secret topSeCr3t@007
|
|
|
244
246
|
```
|
|
245
247
|
Upon successful login:
|
|
246
248
|
```md
|
|
247
|
-
#
|
|
249
|
+
# login
|
|
248
250
|
|
|
249
251
|
Date: 7/2/2023
|
|
250
252
|
|
|
251
|
-
|
|
252
|
-
|
|
253
253
|
Property | Value
|
|
254
254
|
---------|-------
|
|
255
|
+
connectionName | dd8b99a7-77c6-4238-a609-396d27844921
|
|
255
256
|
connectedAs | john.doe@contoso.onmicrosoft.com
|
|
256
257
|
authType | DeviceCode
|
|
257
258
|
appId | 31359c7f-bd7e-475c-86db-fdb8c937548e
|
|
@@ -261,4 +262,3 @@ m365 login --authType secret --secret topSeCr3t@007
|
|
|
261
262
|
|
|
262
263
|
</TabItem>
|
|
263
264
|
</Tabs>
|
|
264
|
-
|
|
@@ -21,6 +21,14 @@ m365 onedrive report activityfilecounts [options]
|
|
|
21
21
|
|
|
22
22
|
<Global />
|
|
23
23
|
|
|
24
|
+
## Remarks
|
|
25
|
+
|
|
26
|
+
:::info
|
|
27
|
+
|
|
28
|
+
This command supports only csv and json output.
|
|
29
|
+
|
|
30
|
+
:::
|
|
31
|
+
|
|
24
32
|
## Examples
|
|
25
33
|
|
|
26
34
|
Gets the number of unique, licensed users that performed file interactions against any OneDrive account for the last week
|
|
@@ -21,6 +21,14 @@ m365 onedrive report activityusercounts [options]
|
|
|
21
21
|
|
|
22
22
|
<Global />
|
|
23
23
|
|
|
24
|
+
## Remarks
|
|
25
|
+
|
|
26
|
+
:::info
|
|
27
|
+
|
|
28
|
+
This command supports only csv and json output.
|
|
29
|
+
|
|
30
|
+
:::
|
|
31
|
+
|
|
24
32
|
## Examples
|
|
25
33
|
|
|
26
34
|
Gets the trend in the number of active OneDrive users for the last week
|
|
@@ -24,6 +24,14 @@ m365 onedrive report activityuserdetail [options]
|
|
|
24
24
|
|
|
25
25
|
<Global />
|
|
26
26
|
|
|
27
|
+
## Remarks
|
|
28
|
+
|
|
29
|
+
:::info
|
|
30
|
+
|
|
31
|
+
This command supports only csv and json output.
|
|
32
|
+
|
|
33
|
+
:::
|
|
34
|
+
|
|
27
35
|
## Examples
|
|
28
36
|
|
|
29
37
|
Gets details about OneDrive activity by user for the last week
|
|
@@ -23,6 +23,14 @@ m365 onedrive report usageaccountcounts [options]
|
|
|
23
23
|
|
|
24
24
|
## Remarks
|
|
25
25
|
|
|
26
|
+
:::info
|
|
27
|
+
|
|
28
|
+
This command supports only csv and json output.
|
|
29
|
+
|
|
30
|
+
:::
|
|
31
|
+
|
|
32
|
+
## Remarks
|
|
33
|
+
|
|
26
34
|
Any site on which users viewed, modified, uploaded, downloaded, shared, or synced files is considered an active site
|
|
27
35
|
|
|
28
36
|
## Examples
|
|
@@ -24,6 +24,14 @@ m365 onedrive report usageaccountdetail [options]
|
|
|
24
24
|
|
|
25
25
|
<Global />
|
|
26
26
|
|
|
27
|
+
## Remarks
|
|
28
|
+
|
|
29
|
+
:::info
|
|
30
|
+
|
|
31
|
+
This command supports only csv and json output.
|
|
32
|
+
|
|
33
|
+
:::
|
|
34
|
+
|
|
27
35
|
## Examples
|
|
28
36
|
|
|
29
37
|
Gets details about OneDrive usage by account for the last week
|
|
@@ -25,6 +25,12 @@ m365 onedrive report usagefilecounts [options]
|
|
|
25
25
|
|
|
26
26
|
A file is considered active if it has been saved, synced, modified, or shared within the specified time period.
|
|
27
27
|
|
|
28
|
+
:::info
|
|
29
|
+
|
|
30
|
+
This command supports only csv and json output.
|
|
31
|
+
|
|
32
|
+
:::
|
|
33
|
+
|
|
28
34
|
## Examples
|
|
29
35
|
|
|
30
36
|
Gets the total number of files across all sites and how many are active files for the last week
|
|
@@ -21,6 +21,14 @@ m365 onedrive report usagestorage [options]
|
|
|
21
21
|
|
|
22
22
|
<Global />
|
|
23
23
|
|
|
24
|
+
## Remarks
|
|
25
|
+
|
|
26
|
+
:::info
|
|
27
|
+
|
|
28
|
+
This command supports only csv and json output.
|
|
29
|
+
|
|
30
|
+
:::
|
|
31
|
+
|
|
24
32
|
## Examples
|
|
25
33
|
|
|
26
34
|
Gets the trend on the amount of storage you are using in OneDrive for Business for the last week
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
|
|
3
|
+
# outlook message remove
|
|
4
|
+
|
|
5
|
+
Permanently removes a specific message from a mailbox
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
m365 outlook message remove [options]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Options
|
|
14
|
+
|
|
15
|
+
```md definition-list
|
|
16
|
+
`-i, --id <id>`
|
|
17
|
+
: ID of the message.
|
|
18
|
+
|
|
19
|
+
`--userId [userId]`
|
|
20
|
+
: ID of the user that owns the mailbox. Specify either `userId` or `userName`, but not both. This option is required when using application permissions.
|
|
21
|
+
|
|
22
|
+
`--userName [userName]`
|
|
23
|
+
: User principal name of the user that owns the mailbox. Specify either `userId` or `userName`, but not both. This option is required when using application permissions.
|
|
24
|
+
|
|
25
|
+
`-f, --force`
|
|
26
|
+
: Don't prompt for confirmation.
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
<Global />
|
|
30
|
+
|
|
31
|
+
## Remarks
|
|
32
|
+
|
|
33
|
+
:::warning
|
|
34
|
+
|
|
35
|
+
This command will permanently delete the Outlook message. To move a message to the trash bin, use [outlook message move](./message-move.mdx) instead.
|
|
36
|
+
|
|
37
|
+
:::
|
|
38
|
+
|
|
39
|
+
## Examples
|
|
40
|
+
|
|
41
|
+
Remove a specific message for the currently signed-in user
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
m365 outlook message remove --id AAMkAGVmMDEzMTM4LTZmYWUtNDdkNC1hMDZiLTU1OGY5OTZhYmY4OABGAAAAAAAiQ8W967B7TKBjgx9rVEURBwAiIsqMbYjsT5e-T7KzowPTAAAAAAEMAAAiIsqMbYjsT5e-T7KzowPTAALvuv07AAA=
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Remove a specific message in a shared mailbox
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
m365 outlook message remove --id AAMkAGVmMDEzMTM4LTZmYWUtNDdkNC1hMDZiLTU1OGY5OTZhYmY4OABGAAAAAAAiQ8W967B7TKBjgx9rVEURBwAiIsqMbYjsT5e-T7KzowPTAAAAAAEMAAAiIsqMbYjsT5e-T7KzowPTAALvuv07AAA= --userName sharedmailbox@contoso.com
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Remove a specific message from a specific mailbox specified by user ID using application permissions
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
m365 outlook message remove --id AAMkAGVmMDEzMTM4LTZmYWUtNDdkNC1hMDZiLTU1OGY5OTZhYmY4OABGAAAAAAAiQ8W967B7TKBjgx9rVEURBwAiIsqMbYjsT5e-T7KzowPTAAAAAAEMAAAiIsqMbYjsT5e-T7KzowPTAALvuv07AAA= --userId 6799fd1a-723b-4eb7-8e52-41ae530274ca
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Remove a specific message from a specific mailbox specified by user UPN using application permissions
|
|
60
|
+
|
|
61
|
+
```
|
|
62
|
+
m365 outlook message remove --id AAMkAGVmMDEzMTM4LTZmYWUtNDdkNC1hMDZiLTU1OGY5OTZhYmY4OABGAAAAAAAiQ8W967B7TKBjgx9rVEURBwAiIsqMbYjsT5e-T7KzowPTAAAAAAEMAAAiIsqMbYjsT5e-T7KzowPTAALvuv07AAA= --userName john.doe@contoso.com
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Response
|
|
66
|
+
|
|
67
|
+
The command won't return a response on success.
|
|
@@ -12,6 +12,14 @@ Enables you to understand the trends of email activity (like how many were sent,
|
|
|
12
12
|
m365 outlook report mailactivitycounts [options]
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
+
## Remarks
|
|
16
|
+
|
|
17
|
+
:::info
|
|
18
|
+
|
|
19
|
+
This command supports only csv and json output.
|
|
20
|
+
|
|
21
|
+
:::
|
|
22
|
+
|
|
15
23
|
## Options
|
|
16
24
|
|
|
17
25
|
```md definition-list
|
|
@@ -12,6 +12,14 @@ Enables you to understand trends on the number of unique users who are performin
|
|
|
12
12
|
m365 outlook report mailactivityusercounts [options]
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
+
## Remarks
|
|
16
|
+
|
|
17
|
+
:::info
|
|
18
|
+
|
|
19
|
+
This command supports only csv and json output.
|
|
20
|
+
|
|
21
|
+
:::
|
|
22
|
+
|
|
15
23
|
## Options
|
|
16
24
|
|
|
17
25
|
```md definition-list
|
|
@@ -12,6 +12,14 @@ Gets details about email activity users have performed
|
|
|
12
12
|
m365 outlook report mailactivityuserdetail [options]
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
+
## Remarks
|
|
16
|
+
|
|
17
|
+
:::info
|
|
18
|
+
|
|
19
|
+
This command supports only csv and json output.
|
|
20
|
+
|
|
21
|
+
:::
|
|
22
|
+
|
|
15
23
|
## Options
|
|
16
24
|
|
|
17
25
|
```md definition-list
|
|
@@ -12,6 +12,14 @@ Gets the count of unique users that connected to Exchange Online using any email
|
|
|
12
12
|
m365 outlook report mailappusageusercounts [options]
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
+
## Remarks
|
|
16
|
+
|
|
17
|
+
:::info
|
|
18
|
+
|
|
19
|
+
This command supports only csv and json output.
|
|
20
|
+
|
|
21
|
+
:::
|
|
22
|
+
|
|
15
23
|
## Options
|
|
16
24
|
|
|
17
25
|
```md definition-list
|
|
@@ -12,6 +12,14 @@ Gets details about which activities users performed on the various email apps
|
|
|
12
12
|
m365 outlook report mailappusageuserdetail [options]
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
+
## Remarks
|
|
16
|
+
|
|
17
|
+
:::info
|
|
18
|
+
|
|
19
|
+
This command supports only csv and json output.
|
|
20
|
+
|
|
21
|
+
:::
|
|
22
|
+
|
|
15
23
|
## Options
|
|
16
24
|
|
|
17
25
|
```md definition-list
|
|
@@ -12,6 +12,14 @@ Gets the count of unique users by Outlook desktop version.
|
|
|
12
12
|
m365 outlook report mailappusageversionsusercounts [options]
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
+
## Remarks
|
|
16
|
+
|
|
17
|
+
:::info
|
|
18
|
+
|
|
19
|
+
This command supports only csv and json output.
|
|
20
|
+
|
|
21
|
+
:::
|
|
22
|
+
|
|
15
23
|
## Options
|
|
16
24
|
|
|
17
25
|
```md definition-list
|
|
@@ -25,6 +25,12 @@ m365 outlook report mailboxusagemailboxcount [options]
|
|
|
25
25
|
|
|
26
26
|
A mailbox is considered active if the user sent or read any email.
|
|
27
27
|
|
|
28
|
+
:::info
|
|
29
|
+
|
|
30
|
+
This command supports only csv and json output.
|
|
31
|
+
|
|
32
|
+
:::
|
|
33
|
+
|
|
28
34
|
## Examples
|
|
29
35
|
|
|
30
36
|
Gets the total number of user mailboxes in your organization and how many are active each day for the last week.
|