@pnp/cli-microsoft365 7.6.0-beta.682272b → 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/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/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/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 +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/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/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
|
@@ -2,7 +2,7 @@ import Global from '/docs/cmd/_global.mdx';
|
|
|
2
2
|
|
|
3
3
|
# app permission add
|
|
4
4
|
|
|
5
|
-
Adds the specified application and/or delegated permissions to the current
|
|
5
|
+
Adds the specified application and/or delegated permissions to the current Microsoft Entra app API permissions
|
|
6
6
|
|
|
7
7
|
## Usage
|
|
8
8
|
|
|
@@ -14,7 +14,7 @@ m365 app permission add [options]
|
|
|
14
14
|
|
|
15
15
|
```md definition-list
|
|
16
16
|
`--appId [appId]`
|
|
17
|
-
: Client ID of the
|
|
17
|
+
: Client ID of the Microsoft Entra app registered in the .m365rc.json file to retrieve API permissions for.
|
|
18
18
|
|
|
19
19
|
`--applicationPermission [applicationPermission]`
|
|
20
20
|
: Space-separated list of application permissions to add.
|
|
@@ -4,7 +4,7 @@ import TabItem from '@theme/TabItem';
|
|
|
4
4
|
|
|
5
5
|
# app permission list
|
|
6
6
|
|
|
7
|
-
Lists API permissions for the current
|
|
7
|
+
Lists API permissions for the current Microsoft Entra app
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
@@ -16,26 +16,26 @@ m365 app permission list [options]
|
|
|
16
16
|
|
|
17
17
|
```md definition-list
|
|
18
18
|
`--appId [appId]`
|
|
19
|
-
: Client ID of the
|
|
19
|
+
: Client ID of the Microsoft Entra app registered in the .m365rc.json file to retrieve API permissions for.
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
<Global />
|
|
23
23
|
|
|
24
24
|
## Remarks
|
|
25
25
|
|
|
26
|
-
Use this command to quickly look up API permissions for the
|
|
26
|
+
Use this command to quickly look up API permissions for the Microsoft Entra application registration registered in the _.m365rc.json_ file in your current project (folder).
|
|
27
27
|
|
|
28
28
|
If you have multiple apps registered in your .m365rc.json file, you can specify the app for which you'd like to retrieve permissions using the `--appId` option. If you don't specify the app using the `--appId` option, you'll be prompted to select one of the applications from your _.m365rc.json_ file.
|
|
29
29
|
|
|
30
30
|
## Examples
|
|
31
31
|
|
|
32
|
-
Retrieve API permissions for your current
|
|
32
|
+
Retrieve API permissions for your current Microsoft Entra app.
|
|
33
33
|
|
|
34
34
|
```sh
|
|
35
35
|
m365 app permission list
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
Retrieve API permissions for the
|
|
38
|
+
Retrieve API permissions for the Microsoft Entra app with the client ID specified in the _.m365rc.json_ file.
|
|
39
39
|
|
|
40
40
|
```sh
|
|
41
41
|
m365 app permission list --appId e23d235c-fcdf-45d1-ac5f-24ab2ee0695d
|
|
@@ -4,7 +4,7 @@ import TabItem from '@theme/TabItem';
|
|
|
4
4
|
|
|
5
5
|
# cli consent
|
|
6
6
|
|
|
7
|
-
Consent additional permissions for the
|
|
7
|
+
Consent additional permissions for the Microsoft Entra application used by the CLI for Microsoft 365
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
@@ -23,7 +23,7 @@ m365 cli consent [options]
|
|
|
23
23
|
|
|
24
24
|
## Remarks
|
|
25
25
|
|
|
26
|
-
Using the `cli consent` command you can consent additional permissions for the
|
|
26
|
+
Using the `cli consent` command you can consent additional permissions for the Microsoft Entra application used by the CLI for Microsoft 365. This is for example necessary to use Viva Engage commands, which require the Viva Engage API permission that isn't granted to the CLI by default.
|
|
27
27
|
|
|
28
28
|
After executing the command, the CLI for Microsoft 365 will present you with a URL that you need to open in the web browser in order to consent the permissions for the selected Microsoft 365 service.
|
|
29
29
|
|
|
@@ -4,7 +4,7 @@ import TabItem from '@theme/TabItem';
|
|
|
4
4
|
|
|
5
5
|
# cli reconsent
|
|
6
6
|
|
|
7
|
-
Returns
|
|
7
|
+
Returns URL to open in the browser to re-consent CLI for Microsoft 365 Microsoft Entra permissions
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
@@ -30,28 +30,28 @@ m365 cli reconsent
|
|
|
30
30
|
<TabItem value="JSON">
|
|
31
31
|
|
|
32
32
|
```json
|
|
33
|
-
"To re-consent the PnP Microsoft 365 Management Shell
|
|
33
|
+
"To re-consent the PnP Microsoft 365 Management Shell Microsoft Entra application navigate in your web browser to https://login.microsoftonline.com/common/oauth2/authorize?client_id=31359c7f-bd7e-475c-86db-fdb8c937548e&response_type=code&prompt=admin_consent"
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
</TabItem>
|
|
37
37
|
<TabItem value="Text">
|
|
38
38
|
|
|
39
39
|
```text
|
|
40
|
-
To re-consent the PnP Microsoft 365 Management Shell
|
|
40
|
+
To re-consent the PnP Microsoft 365 Management Shell Microsoft Entra application navigate in your web browser to https://login.microsoftonline.com/common/oauth2/authorize?client_id=31359c7f-bd7e-475c-86db-fdb8c937548e&response_type=code&prompt=admin_consent
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
</TabItem>
|
|
44
44
|
<TabItem value="CSV">
|
|
45
45
|
|
|
46
46
|
```csv
|
|
47
|
-
To re-consent the PnP Microsoft 365 Management Shell
|
|
47
|
+
To re-consent the PnP Microsoft 365 Management Shell Microsoft Entra application navigate in your web browser to https://login.microsoftonline.com/common/oauth2/authorize?client_id=31359c7f-bd7e-475c-86db-fdb8c937548e&response_type=code&prompt=admin_consent
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
</TabItem>
|
|
51
51
|
<TabItem value="Markdown">
|
|
52
52
|
|
|
53
53
|
```md
|
|
54
|
-
To re-consent the PnP Microsoft 365 Management Shell
|
|
54
|
+
To re-consent the PnP Microsoft 365 Management Shell Microsoft Entra application navigate in your web browser to https://login.microsoftonline.com/common/oauth2/authorize?client_id=31359c7f-bd7e-475c-86db-fdb8c937548e&response_type=code&prompt=admin_consent
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
</TabItem>
|
|
@@ -59,4 +59,4 @@ m365 cli reconsent
|
|
|
59
59
|
|
|
60
60
|
## More information
|
|
61
61
|
|
|
62
|
-
- Re-consent the PnP Microsoft 365 Management Shell
|
|
62
|
+
- Re-consent the PnP Microsoft 365 Management Shell Microsoft Entra application: [https://pnp.github.io/cli-microsoft365/user-guide/connecting-microsoft-365/#re-consent-the-pnp-microsoft-365-management-shell-azure-ad-application](https://pnp.github.io/cli-microsoft365/user-guide/connecting-microsoft-365/#re-consent-the-pnp-microsoft-365-management-shell-azure-ad-application)
|
|
@@ -4,7 +4,7 @@ import TabItem from '@theme/TabItem';
|
|
|
4
4
|
|
|
5
5
|
# entra app permission add
|
|
6
6
|
|
|
7
|
-
Adds the specified application and/or delegated permissions to a
|
|
7
|
+
Adds the specified application and/or delegated permissions to a Microsoft Entra app
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
@@ -23,10 +23,10 @@ m365 entra appregistration permission add [options]
|
|
|
23
23
|
|
|
24
24
|
```md definition-list
|
|
25
25
|
`-i, --appId [appId]`
|
|
26
|
-
: Client ID of the Entra
|
|
26
|
+
: Client ID of the Microsoft Entra app to add the API permissions to. Specify `appId` or `appObjectId` but not both.
|
|
27
27
|
|
|
28
28
|
`--appObjectId [appObjectId]`
|
|
29
|
-
: Object ID of the Entra
|
|
29
|
+
: Object ID of the Microsoft Entra app to add the API permissions to. Specify `appId` or `appObjectId` but not both.
|
|
30
30
|
|
|
31
31
|
`-a, --applicationPermissions [applicationPermissions]`
|
|
32
32
|
: Space-separated list of application permissions to add. Specify at least `applicationPermissions` or `delegatedPermissions`.
|
|
@@ -46,19 +46,19 @@ Scopes/Roles to grant must be fully-qualified so that we can disambiguate them b
|
|
|
46
46
|
|
|
47
47
|
## Examples
|
|
48
48
|
|
|
49
|
-
Grant multiple delegated API permissions to
|
|
49
|
+
Grant multiple delegated API permissions to a Microsoft Entra app specified by client id.
|
|
50
50
|
|
|
51
51
|
```sh
|
|
52
52
|
m365 entra app permission add --appId 'f1417aa3-bf0b-4cc5-a845-a0b2cf11f690' --delegatedPermissions 'https://management.azure.com/user_impersonation https://service.flow.microsoft.com/Flows.Read.All https://graph.microsoft.com/Agreement.Read.All'
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
-
Grant multiple delegated API permissions to
|
|
55
|
+
Grant multiple delegated API permissions to a Microsoft Entra app specified by object id.
|
|
56
56
|
|
|
57
57
|
```sh
|
|
58
58
|
m365 entra app permission add --appObjectId 'e0306bb2-bf0b-4cc5-a845-a0b2cf11f690' --delegatedPermissions 'https://management.azure.com/user_impersonation https://service.flow.microsoft.com/Flows.Read.All https://graph.microsoft.com/Agreement.Read.All'
|
|
59
59
|
```
|
|
60
60
|
|
|
61
|
-
Grant multiple app-only permissions to
|
|
61
|
+
Grant multiple app-only permissions to a Microsoft Entra app specified by client id and grant admin consent.
|
|
62
62
|
|
|
63
63
|
```sh
|
|
64
64
|
m365 entra app permission add --appId 'f1417aa3-bf0b-4cc5-a845-a0b2cf11f690' --applicationPermissions 'https://graph.microsoft.com/Sites.FullControl.All https://microsoft.sharepoint-df.com/Sites.FullControl.All' --grantAdminConsent
|
|
@@ -4,7 +4,7 @@ import TabItem from '@theme/TabItem';
|
|
|
4
4
|
|
|
5
5
|
# entra approleassignment add
|
|
6
6
|
|
|
7
|
-
Adds service principal permissions also known as scopes and app role assignments for specified Entra application registration
|
|
7
|
+
Adds service principal permissions also known as scopes and app role assignments for specified Microsoft Entra application registration
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
@@ -57,10 +57,6 @@ List app roles assigned to service principal with ObjectId _b2307a39-e878-458b-b
|
|
|
57
57
|
m365 entra approleassignment list --appObjectId b2307a39-e878-458b-bc90-03bc578531dd
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
-
## More information
|
|
61
|
-
|
|
62
|
-
- Application and service principal objects in Entra ID (Azure AD): [https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects](https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects)
|
|
63
|
-
|
|
64
60
|
## Response
|
|
65
61
|
|
|
66
62
|
<Tabs>
|
|
@@ -117,3 +113,7 @@ m365 entra approleassignment list --appObjectId b2307a39-e878-458b-bc90-03bc5785
|
|
|
117
113
|
|
|
118
114
|
</TabItem>
|
|
119
115
|
</Tabs>
|
|
116
|
+
|
|
117
|
+
## More information
|
|
118
|
+
|
|
119
|
+
- 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)
|
|
@@ -196,5 +196,5 @@ m365 entra enterpriseapp add --objectId b2307a39-e878-458b-bc90-03bc578531d6
|
|
|
196
196
|
|
|
197
197
|
## More information
|
|
198
198
|
|
|
199
|
-
- Application and
|
|
199
|
+
- 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)
|
|
200
200
|
- Create servicePrincipal: [https://learn.microsoft.com/graph/api/serviceprincipal-post-serviceprincipals?view=graph-rest-1.0](https://learn.microsoft.com/graph/api/serviceprincipal-post-serviceprincipals?view=graph-rest-1.0)
|
|
@@ -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
|