@pnp/cli-microsoft365 6.0.0-beta.78fdd2c → 6.0.0-beta.80d195f
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/.devcontainer/Dockerfile +3 -1
- package/.devcontainer/devcontainer.json +1 -0
- package/dist/m365/aad/commands/app/app-add.js +161 -22
- package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +13 -13
- package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +14 -14
- package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +12 -12
- package/dist/m365/aad/commands/o365group/o365group-add.js +2 -7
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-list.js +6 -6
- package/dist/m365/aad/commands/o365group/o365group-teamify.js +12 -12
- package/dist/m365/aad/commands/policy/policy-list.js +6 -6
- package/dist/m365/aad/commands/sp/sp-get.js +14 -14
- package/dist/m365/booking/commands/business/business-get.js +86 -0
- package/dist/m365/booking/commands/business/business-list.js +30 -0
- package/dist/m365/booking/commands.js +8 -0
- package/dist/m365/flow/commands/flow-disable.js +2 -2
- package/dist/m365/flow/commands/flow-enable.js +2 -2
- package/dist/m365/flow/commands/flow-export.js +5 -5
- package/dist/m365/flow/commands/flow-get.js +2 -2
- package/dist/m365/flow/commands/flow-list.js +2 -2
- package/dist/m365/flow/commands/flow-remove.js +3 -3
- package/dist/m365/flow/commands/run/run-cancel.js +6 -6
- package/dist/m365/flow/commands/run/run-get.js +4 -4
- package/dist/m365/flow/commands/run/run-list.js +4 -4
- package/dist/m365/flow/commands/run/run-resubmit.js +7 -7
- package/dist/m365/outlook/commands/message/message-move.js +2 -2
- package/dist/m365/pa/commands/connector/connector-export.js +3 -3
- package/dist/m365/pa/commands/connector/connector-list.js +2 -2
- package/dist/m365/pa/commands/solution/solution-reference-add.js +7 -7
- package/dist/m365/search/commands/externalconnection/externalconnection-remove.js +101 -0
- package/dist/m365/search/commands.js +2 -1
- package/dist/m365/spfx/commands/package/package-generate.js +2 -2
- package/dist/m365/spfx/commands/spfx-doctor.js +15 -0
- package/dist/m365/spo/commands/app/SpoAppBaseCommand.js +1 -1
- package/dist/m365/spo/commands/app/app-add.js +7 -7
- package/dist/m365/spo/commands/app/app-deploy.js +7 -7
- package/dist/m365/spo/commands/app/app-get.js +7 -7
- package/dist/m365/spo/commands/app/app-install.js +6 -6
- package/dist/m365/spo/commands/app/app-list.js +7 -7
- package/dist/m365/spo/commands/app/app-remove.js +7 -7
- package/dist/m365/spo/commands/app/app-retract.js +7 -7
- package/dist/m365/spo/commands/app/app-uninstall.js +6 -6
- package/dist/m365/spo/commands/app/app-upgrade.js +6 -6
- package/dist/m365/spo/commands/apppage/apppage-set.js +2 -2
- package/dist/m365/spo/commands/cdn/cdn-policy-list.js +7 -7
- package/dist/m365/spo/commands/cdn/cdn-policy-set.js +7 -7
- package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +13 -13
- package/dist/m365/spo/commands/customaction/customaction-add.js +3 -3
- package/dist/m365/spo/commands/customaction/customaction-clear.js +3 -3
- package/dist/m365/spo/commands/customaction/customaction-get.js +5 -4
- package/dist/m365/spo/commands/customaction/customaction-list.js +5 -4
- package/dist/m365/spo/commands/customaction/customaction-remove.js +6 -5
- package/dist/m365/spo/commands/customaction/customaction-set.js +3 -3
- package/dist/m365/spo/commands/feature/feature-disable.js +4 -4
- package/dist/m365/spo/commands/feature/feature-enable.js +5 -5
- package/dist/m365/spo/commands/feature/feature-list.js +3 -3
- package/dist/m365/spo/commands/field/field-get.js +1 -7
- package/dist/m365/spo/commands/field/field-remove.js +1 -7
- package/dist/m365/spo/commands/file/file-checkin.js +8 -8
- package/dist/m365/spo/commands/file/file-checkout.js +8 -8
- package/dist/m365/spo/commands/file/file-sharinginfo-get.js +16 -16
- package/dist/m365/spo/commands/folder/folder-get.js +2 -2
- package/dist/m365/spo/commands/folder/folder-remove.js +3 -3
- package/dist/m365/spo/commands/folder/folder-rename.js +4 -4
- package/dist/m365/spo/commands/hubsite/hubsite-connect.js +7 -7
- package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +6 -6
- package/dist/m365/spo/commands/hubsite/hubsite-register.js +4 -4
- package/dist/m365/spo/commands/hubsite/hubsite-rights-grant.js +4 -4
- package/dist/m365/spo/commands/hubsite/hubsite-rights-revoke.js +5 -5
- package/dist/m365/spo/commands/knowledgehub/knowledgehub-set.js +4 -4
- package/dist/m365/spo/commands/list/list-contenttype-add.js +4 -4
- package/dist/m365/spo/commands/list/list-contenttype-remove.js +6 -6
- package/dist/m365/spo/commands/list/list-roleassignment-add.js +208 -0
- package/dist/m365/spo/commands/list/list-roleassignment-remove.js +171 -0
- package/dist/m365/spo/commands/list/list-view-field-add.js +23 -23
- package/dist/m365/spo/commands/list/list-view-field-remove.js +14 -14
- package/dist/m365/spo/commands/list/list-view-field-set.js +18 -18
- package/dist/m365/spo/commands/list/list-view-get.js +12 -12
- package/dist/m365/spo/commands/list/list-view-remove.js +14 -14
- package/dist/m365/spo/commands/list/list-view-set.js +14 -14
- package/dist/m365/spo/commands/listitem/listitem-list.js +1 -1
- package/dist/m365/spo/commands/listitem/listitem-record-declare.js +4 -4
- package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +4 -4
- package/dist/m365/spo/commands/page/page-column-get.js +2 -2
- package/dist/m365/spo/commands/page/page-column-list.js +2 -2
- package/dist/m365/spo/commands/page/page-control-get.js +4 -4
- package/dist/m365/spo/commands/page/page-control-list.js +3 -3
- package/dist/m365/spo/commands/page/page-control-set.js +3 -3
- package/dist/m365/spo/commands/page/page-section-add.js +2 -2
- package/dist/m365/spo/commands/page/page-section-get.js +2 -2
- package/dist/m365/spo/commands/page/page-section-list.js +2 -2
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-revoke.js +2 -2
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-approve.js +4 -4
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-deny.js +4 -4
- package/dist/m365/spo/commands/site/site-appcatalog-add.js +3 -3
- package/dist/m365/spo/commands/site/site-appcatalog-remove.js +3 -3
- package/dist/m365/spo/commands/site/site-apppermission-get.js +2 -2
- package/dist/m365/spo/commands/site/site-apppermission-remove.js +9 -9
- package/dist/m365/spo/commands/site/site-apppermission-set.js +6 -6
- package/dist/m365/spo/commands/site/site-chrome-set.js +3 -3
- package/dist/m365/spo/commands/site/site-ensure.js +1 -1
- package/dist/m365/spo/commands/site/site-groupify.js +3 -3
- package/dist/m365/spo/commands/site/site-rename.js +9 -9
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-grant.js +4 -4
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-list.js +4 -4
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-revoke.js +5 -5
- package/dist/m365/spo/commands/sitedesign/sitedesign-task-get.js +4 -4
- package/dist/m365/spo/commands/sitedesign/sitedesign-task-remove.js +5 -5
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-remove.js +5 -5
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +3 -3
- package/dist/m365/spo/commands/web/web-add.js +5 -5
- package/dist/m365/spo/commands/web/web-get.js +3 -3
- package/dist/m365/spo/commands/web/web-list.js +4 -4
- package/dist/m365/spo/commands/web/web-reindex.js +8 -8
- package/dist/m365/spo/commands/web/web-remove.js +5 -5
- package/dist/m365/spo/commands/web/web-roleinheritance-reset.js +63 -0
- package/dist/m365/spo/commands/web/web-set.js +4 -4
- package/dist/m365/spo/commands.js +3 -0
- package/dist/m365/teams/commands/app/app-install.js +4 -4
- package/dist/m365/teams/commands/app/app-uninstall.js +3 -3
- package/dist/m365/teams/commands/channel/channel-get.js +19 -19
- package/dist/m365/teams/commands/channel/channel-remove.js +15 -15
- package/dist/m365/teams/commands/channel/channel-set.js +7 -7
- package/dist/m365/teams/commands/chat/chat-get.js +2 -2
- package/dist/m365/teams/commands/chat/chat-message-send.js +2 -2
- package/dist/m365/teams/commands/chat/chatUtil.js +0 -12
- package/dist/m365/teams/commands/message/message-get.js +3 -3
- package/dist/m365/teams/commands/tab/tab-get.js +13 -13
- package/dist/m365/teams/commands/tab/tab-remove.js +6 -6
- package/dist/m365/teams/commands/team/team-archive.js +3 -13
- package/dist/m365/teams/commands/team/team-clone.js +3 -20
- package/dist/m365/teams/commands/team/team-remove.js +2 -11
- package/dist/m365/teams/commands/team/team-set.js +1 -13
- package/dist/m365/teams/commands/team/team-unarchive.js +2 -11
- package/dist/m365/teams/commands/user/user-app-add.js +4 -4
- package/dist/m365/teams/commands/user/user-app-remove.js +3 -3
- package/dist/m365/viva/commands/connections/connections-app-create.js +9 -9
- package/dist/m365/yammer/commands/group/group-user-add.js +8 -8
- package/dist/m365/yammer/commands/group/group-user-remove.js +11 -11
- package/dist/m365/yammer/commands/message/message-like-set.js +5 -5
- package/dist/m365/yammer/commands/user/user-get.js +5 -5
- package/docs/docs/cmd/aad/app/app-add.md +12 -1
- package/docs/docs/cmd/aad/app/app-set.md +1 -1
- package/docs/docs/cmd/aad/approleassignment/approleassignment-add.md +5 -5
- package/docs/docs/cmd/aad/approleassignment/approleassignment-list.md +5 -5
- package/docs/docs/cmd/aad/approleassignment/approleassignment-remove.md +5 -5
- package/docs/docs/cmd/aad/o365group/o365group-add.md +3 -3
- package/docs/docs/cmd/aad/o365group/o365group-recyclebinitem-list.md +7 -7
- package/docs/docs/cmd/aad/o365group/o365group-teamify.md +4 -4
- package/docs/docs/cmd/aad/policy/policy-list.md +2 -2
- package/docs/docs/cmd/aad/sp/sp-get.md +5 -5
- package/docs/docs/cmd/booking/business/business-get.md +33 -0
- package/docs/docs/cmd/booking/business/business-list.md +21 -0
- package/docs/docs/cmd/flow/flow-disable.md +3 -3
- package/docs/docs/cmd/flow/flow-enable.md +1 -1
- package/docs/docs/cmd/flow/flow-export.md +5 -5
- package/docs/docs/cmd/flow/flow-get.md +3 -3
- package/docs/docs/cmd/flow/flow-list.md +3 -3
- package/docs/docs/cmd/flow/flow-remove.md +5 -5
- package/docs/docs/cmd/flow/run/run-cancel.md +3 -3
- package/docs/docs/cmd/flow/run/run-get.md +3 -3
- package/docs/docs/cmd/flow/run/run-list.md +3 -3
- package/docs/docs/cmd/flow/run/run-resubmit.md +4 -4
- package/docs/docs/cmd/outlook/message/message-move.md +4 -4
- package/docs/docs/cmd/pa/connector/connector-export.md +3 -3
- package/docs/docs/cmd/pa/connector/connector-list.md +2 -2
- package/docs/docs/cmd/pa/solution/solution-reference-add.md +2 -2
- package/docs/docs/cmd/search/externalconnection/externalconnection-remove.md +40 -0
- package/docs/docs/cmd/spfx/package/package-generate.md +2 -2
- package/docs/docs/cmd/spo/app/app-add.md +2 -2
- package/docs/docs/cmd/spo/app/app-deploy.md +2 -2
- package/docs/docs/cmd/spo/app/app-get.md +2 -2
- package/docs/docs/cmd/spo/app/app-install.md +2 -2
- package/docs/docs/cmd/spo/app/app-list.md +2 -2
- package/docs/docs/cmd/spo/app/app-remove.md +2 -2
- package/docs/docs/cmd/spo/app/app-retract.md +2 -2
- package/docs/docs/cmd/spo/app/app-uninstall.md +2 -2
- package/docs/docs/cmd/spo/app/app-upgrade.md +2 -2
- package/docs/docs/cmd/spo/apppage/apppage-set.md +2 -2
- package/docs/docs/cmd/spo/cdn/cdn-policy-list.md +3 -3
- package/docs/docs/cmd/spo/cdn/cdn-policy-set.md +3 -3
- package/docs/docs/cmd/spo/contenttype/contenttype-field-set.md +4 -4
- package/docs/docs/cmd/spo/customaction/customaction-add.md +10 -10
- package/docs/docs/cmd/spo/customaction/customaction-clear.md +4 -4
- package/docs/docs/cmd/spo/customaction/customaction-get.md +5 -5
- package/docs/docs/cmd/spo/customaction/customaction-list.md +4 -4
- package/docs/docs/cmd/spo/customaction/customaction-remove.md +9 -9
- package/docs/docs/cmd/spo/customaction/customaction-set.md +7 -7
- package/docs/docs/cmd/spo/feature/feature-disable.md +4 -4
- package/docs/docs/cmd/spo/feature/feature-enable.md +2 -2
- package/docs/docs/cmd/spo/feature/feature-list.md +3 -3
- package/docs/docs/cmd/spo/field/field-get.md +0 -3
- package/docs/docs/cmd/spo/field/field-remove.md +0 -3
- package/docs/docs/cmd/spo/file/file-checkin.md +6 -6
- package/docs/docs/cmd/spo/file/file-checkout.md +4 -4
- package/docs/docs/cmd/spo/file/file-sharinginfo-get.md +7 -7
- package/docs/docs/cmd/spo/folder/folder-get.md +2 -2
- package/docs/docs/cmd/spo/folder/folder-remove.md +3 -3
- package/docs/docs/cmd/spo/folder/folder-rename.md +2 -2
- package/docs/docs/cmd/spo/hubsite/hubsite-connect.md +4 -4
- package/docs/docs/cmd/spo/hubsite/hubsite-disconnect.md +4 -4
- package/docs/docs/cmd/spo/hubsite/hubsite-register.md +2 -2
- package/docs/docs/cmd/spo/hubsite/hubsite-rights-grant.md +4 -4
- package/docs/docs/cmd/spo/hubsite/hubsite-rights-revoke.md +3 -3
- package/docs/docs/cmd/spo/knowledgehub/knowledgehub-set.md +2 -2
- package/docs/docs/cmd/spo/list/list-contenttype-add.md +3 -3
- package/docs/docs/cmd/spo/list/list-contenttype-remove.md +3 -3
- package/docs/docs/cmd/spo/list/list-roleassignment-add.md +78 -0
- package/docs/docs/cmd/spo/list/list-roleassignment-remove.md +54 -0
- package/docs/docs/cmd/spo/list/list-view-field-add.md +8 -8
- package/docs/docs/cmd/spo/list/list-view-field-remove.md +6 -6
- package/docs/docs/cmd/spo/list/list-view-field-set.md +7 -7
- package/docs/docs/cmd/spo/list/list-view-get.md +7 -7
- package/docs/docs/cmd/spo/list/list-view-remove.md +8 -8
- package/docs/docs/cmd/spo/list/list-view-set.md +7 -7
- package/docs/docs/cmd/spo/listitem/listitem-record-declare.md +5 -5
- package/docs/docs/cmd/spo/listitem/listitem-record-undeclare.md +3 -3
- package/docs/docs/cmd/spo/page/page-column-get.md +3 -3
- package/docs/docs/cmd/spo/page/page-column-list.md +3 -3
- package/docs/docs/cmd/spo/page/page-control-get.md +3 -3
- package/docs/docs/cmd/spo/page/page-control-list.md +3 -3
- package/docs/docs/cmd/spo/page/page-control-set.md +4 -4
- package/docs/docs/cmd/spo/page/page-section-add.md +3 -3
- package/docs/docs/cmd/spo/page/page-section-get.md +3 -3
- package/docs/docs/cmd/spo/page/page-section-list.md +3 -3
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-revoke.md +2 -2
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-approve.md +2 -2
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-deny.md +2 -2
- package/docs/docs/cmd/spo/site/site-appcatalog-add.md +2 -2
- package/docs/docs/cmd/spo/site/site-appcatalog-remove.md +2 -2
- package/docs/docs/cmd/spo/site/site-apppermission-get.md +2 -2
- package/docs/docs/cmd/spo/site/site-apppermission-remove.md +2 -2
- package/docs/docs/cmd/spo/site/site-apppermission-set.md +5 -5
- package/docs/docs/cmd/spo/site/site-chrome-set.md +4 -4
- package/docs/docs/cmd/spo/site/site-groupify.md +5 -5
- package/docs/docs/cmd/spo/site/site-rename.md +6 -6
- package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-grant.md +4 -4
- package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-list.md +3 -3
- package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-revoke.md +3 -3
- package/docs/docs/cmd/spo/sitedesign/sitedesign-task-get.md +2 -2
- package/docs/docs/cmd/spo/sitedesign/sitedesign-task-remove.md +5 -5
- package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-remove.md +3 -3
- package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-restore.md +6 -3
- package/docs/docs/cmd/spo/web/web-add.md +4 -4
- package/docs/docs/cmd/spo/web/web-get.md +3 -3
- package/docs/docs/cmd/spo/web/web-list.md +2 -2
- package/docs/docs/cmd/spo/web/web-reindex.md +2 -2
- package/docs/docs/cmd/spo/web/web-remove.md +2 -2
- package/docs/docs/cmd/spo/web/web-roleinheritance-reset.md +24 -0
- package/docs/docs/cmd/spo/web/web-set.md +9 -9
- package/docs/docs/cmd/teams/app/app-install.md +5 -5
- package/docs/docs/cmd/teams/app/app-uninstall.md +3 -3
- package/docs/docs/cmd/teams/channel/channel-get.md +7 -7
- package/docs/docs/cmd/teams/channel/channel-remove.md +7 -7
- package/docs/docs/cmd/teams/channel/channel-set.md +4 -4
- package/docs/docs/cmd/teams/message/message-get.md +3 -3
- package/docs/docs/cmd/teams/tab/tab-get.md +6 -6
- package/docs/docs/cmd/teams/tab/tab-remove.md +4 -4
- package/docs/docs/cmd/teams/team/team-archive.md +0 -3
- package/docs/docs/cmd/teams/team/team-clone.md +0 -3
- package/docs/docs/cmd/teams/team/team-remove.md +0 -3
- package/docs/docs/cmd/teams/team/team-set.md +0 -3
- package/docs/docs/cmd/teams/team/team-unarchive.md +0 -3
- package/docs/docs/cmd/teams/user/user-app-add.md +3 -3
- package/docs/docs/cmd/teams/user/user-app-remove.md +3 -3
- package/docs/docs/cmd/viva/connections/connections-app-create.md +2 -2
- package/docs/docs/cmd/yammer/group/group-user-add.md +5 -5
- package/docs/docs/cmd/yammer/group/group-user-remove.md +5 -5
- package/docs/docs/cmd/yammer/message/message-like-set.md +4 -4
- package/docs/docs/cmd/yammer/user/user-get.md +2 -2
- package/package.json +11 -1
|
@@ -42,7 +42,7 @@ class TeamsUserAppAddCommand extends GraphCommand_1.default {
|
|
|
42
42
|
},
|
|
43
43
|
responseType: 'json',
|
|
44
44
|
data: {
|
|
45
|
-
'teamsApp@odata.bind': `${endpoint}/appCatalogs/teamsApps/${args.options.
|
|
45
|
+
'teamsApp@odata.bind': `${endpoint}/appCatalogs/teamsApps/${args.options.id}`
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
request_1.default
|
|
@@ -52,14 +52,14 @@ class TeamsUserAppAddCommand extends GraphCommand_1.default {
|
|
|
52
52
|
}
|
|
53
53
|
_TeamsUserAppAddCommand_instances = new WeakSet(), _TeamsUserAppAddCommand_initOptions = function _TeamsUserAppAddCommand_initOptions() {
|
|
54
54
|
this.options.unshift({
|
|
55
|
-
option: '--
|
|
55
|
+
option: '--id <id>'
|
|
56
56
|
}, {
|
|
57
57
|
option: '--userId <userId>'
|
|
58
58
|
});
|
|
59
59
|
}, _TeamsUserAppAddCommand_initValidators = function _TeamsUserAppAddCommand_initValidators() {
|
|
60
60
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
61
|
-
if (!utils_1.validation.isValidGuid(args.options.
|
|
62
|
-
return `${args.options.
|
|
61
|
+
if (!utils_1.validation.isValidGuid(args.options.id)) {
|
|
62
|
+
return `${args.options.id} is not a valid GUID`;
|
|
63
63
|
}
|
|
64
64
|
if (!utils_1.validation.isValidGuid(args.options.userId)) {
|
|
65
65
|
return `${args.options.userId} is not a valid GUID`;
|
|
@@ -38,7 +38,7 @@ class TeamsUserAppRemoveCommand extends GraphCommand_1.default {
|
|
|
38
38
|
const removeApp = () => {
|
|
39
39
|
const endpoint = `${this.resource}/v1.0`;
|
|
40
40
|
const requestOptions = {
|
|
41
|
-
url: `${endpoint}/users/${args.options.userId}/teamwork/installedApps/${args.options.
|
|
41
|
+
url: `${endpoint}/users/${args.options.userId}/teamwork/installedApps/${args.options.id}`,
|
|
42
42
|
headers: {
|
|
43
43
|
'accept': 'application/json;odata.metadata=none'
|
|
44
44
|
},
|
|
@@ -56,7 +56,7 @@ class TeamsUserAppRemoveCommand extends GraphCommand_1.default {
|
|
|
56
56
|
type: 'confirm',
|
|
57
57
|
name: 'continue',
|
|
58
58
|
default: false,
|
|
59
|
-
message: `Are you sure you want to remove the app with id ${args.options.
|
|
59
|
+
message: `Are you sure you want to remove the app with id ${args.options.id} for user ${args.options.userId}?`
|
|
60
60
|
}, (result) => {
|
|
61
61
|
if (!result.continue) {
|
|
62
62
|
cb();
|
|
@@ -76,7 +76,7 @@ _TeamsUserAppRemoveCommand_instances = new WeakSet(), _TeamsUserAppRemoveCommand
|
|
|
76
76
|
});
|
|
77
77
|
}, _TeamsUserAppRemoveCommand_initOptions = function _TeamsUserAppRemoveCommand_initOptions() {
|
|
78
78
|
this.options.unshift({
|
|
79
|
-
option: '--
|
|
79
|
+
option: '--id <id>'
|
|
80
80
|
}, {
|
|
81
81
|
option: '--userId <userId>'
|
|
82
82
|
}, {
|
|
@@ -74,7 +74,7 @@ class VivaConnectionsAppCreateCommand extends AnonymousCommand_1.default {
|
|
|
74
74
|
"manifestVersion": "1.9",
|
|
75
75
|
"version": "1.0",
|
|
76
76
|
"id": appId,
|
|
77
|
-
"packageName": `com.microsoft.teams.${args.options.
|
|
77
|
+
"packageName": `com.microsoft.teams.${args.options.name}`,
|
|
78
78
|
"developer": {
|
|
79
79
|
"name": args.options.companyName,
|
|
80
80
|
"websiteUrl": args.options.companyWebsiteUrl,
|
|
@@ -86,8 +86,8 @@ class VivaConnectionsAppCreateCommand extends AnonymousCommand_1.default {
|
|
|
86
86
|
"outline": outlineIconFileName
|
|
87
87
|
},
|
|
88
88
|
"name": {
|
|
89
|
-
"short": args.options.
|
|
90
|
-
"full": args.options.
|
|
89
|
+
"short": args.options.name,
|
|
90
|
+
"full": args.options.name
|
|
91
91
|
},
|
|
92
92
|
"description": {
|
|
93
93
|
"short": `${args.options.description}`,
|
|
@@ -98,7 +98,7 @@ class VivaConnectionsAppCreateCommand extends AnonymousCommand_1.default {
|
|
|
98
98
|
"staticTabs": [
|
|
99
99
|
{
|
|
100
100
|
"entityId": `sharepointportal_${appId}`,
|
|
101
|
-
"name": `Portals-${args.options.
|
|
101
|
+
"name": `Portals-${args.options.name}`,
|
|
102
102
|
"contentUrl": `https://${domain}/_layouts/15/teamslogon.aspx?spfx=true&dest=${appPortalUrl}`,
|
|
103
103
|
"websiteUrl": portalUrl,
|
|
104
104
|
"searchUrl": `https://${searchUrlPath}/_layouts/15/search.aspx?q={searchQuery}`,
|
|
@@ -135,7 +135,7 @@ class VivaConnectionsAppCreateCommand extends AnonymousCommand_1.default {
|
|
|
135
135
|
this.archive.addFile('manifest.json', Buffer.alloc(manifestString.length, manifestString, 'utf8'));
|
|
136
136
|
this.archive.addLocalFile(coloredIconPath, undefined, coloredIconFileName);
|
|
137
137
|
this.archive.addLocalFile(outlineIconPath, undefined, outlineIconFileName);
|
|
138
|
-
this.archive.writeZip(`${args.options.
|
|
138
|
+
this.archive.writeZip(`${args.options.name}.zip`);
|
|
139
139
|
cb();
|
|
140
140
|
}
|
|
141
141
|
catch (ex) {
|
|
@@ -153,7 +153,7 @@ class VivaConnectionsAppCreateCommand extends AnonymousCommand_1.default {
|
|
|
153
153
|
logger.logToStderr(`Checking if site ${args.options.url} exists...`);
|
|
154
154
|
}
|
|
155
155
|
const options = {
|
|
156
|
-
|
|
156
|
+
url: args.options.portalUrl,
|
|
157
157
|
output: 'json',
|
|
158
158
|
debug: this.debug,
|
|
159
159
|
verbose: this.verbose
|
|
@@ -162,10 +162,10 @@ class VivaConnectionsAppCreateCommand extends AnonymousCommand_1.default {
|
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
_VivaConnectionsAppCreateCommand_instances = new WeakSet(), _VivaConnectionsAppCreateCommand_initOptions = function _VivaConnectionsAppCreateCommand_initOptions() {
|
|
165
|
-
this.options.unshift({ option: '--portalUrl <portalUrl>' }, { option: '--
|
|
165
|
+
this.options.unshift({ option: '--portalUrl <portalUrl>' }, { option: '--name <name>' }, { option: '--description <description>' }, { option: '--longDescription <longDescription>' }, { option: '--privacyPolicyUrl [privacyPolicyUrl]' }, { option: '--termsOfUseUrl [termsOfUseUrl]' }, { option: '--companyName <companyName>' }, { option: '--companyWebsiteUrl <companyWebsiteUrl>' }, { option: '--coloredIconPath <coloredIconPath>' }, { option: '--outlineIconPath <outlineIconPath>' }, { option: '--accentColor [accentColor]' }, { option: '--force' });
|
|
166
166
|
}, _VivaConnectionsAppCreateCommand_initValidators = function _VivaConnectionsAppCreateCommand_initValidators() {
|
|
167
167
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
168
|
-
if (args.options.
|
|
168
|
+
if (args.options.name.length > 30) {
|
|
169
169
|
return `App name must not exceed 30 characters`;
|
|
170
170
|
}
|
|
171
171
|
if (args.options.description &&
|
|
@@ -176,7 +176,7 @@ _VivaConnectionsAppCreateCommand_instances = new WeakSet(), _VivaConnectionsAppC
|
|
|
176
176
|
args.options.longDescription.length > 4000) {
|
|
177
177
|
return 'Long description must not exceed 4000 characters';
|
|
178
178
|
}
|
|
179
|
-
const appFilePath = path.resolve(`${args.options.
|
|
179
|
+
const appFilePath = path.resolve(`${args.options.name}.zip`);
|
|
180
180
|
if (fs.existsSync(appFilePath) && !args.options.force) {
|
|
181
181
|
return `File ${appFilePath} already exists. Delete the file or use the --force option to overwrite the existing file`;
|
|
182
182
|
}
|
|
@@ -41,8 +41,8 @@ class YammerGroupUserAddCommand extends YammerCommand_1.default {
|
|
|
41
41
|
},
|
|
42
42
|
responseType: 'json',
|
|
43
43
|
data: {
|
|
44
|
-
group_id: args.options.
|
|
45
|
-
user_id: args.options.
|
|
44
|
+
group_id: args.options.groupId,
|
|
45
|
+
user_id: args.options.id,
|
|
46
46
|
email: args.options.email
|
|
47
47
|
}
|
|
48
48
|
};
|
|
@@ -54,26 +54,26 @@ class YammerGroupUserAddCommand extends YammerCommand_1.default {
|
|
|
54
54
|
_YammerGroupUserAddCommand_instances = new WeakSet(), _YammerGroupUserAddCommand_initTelemetry = function _YammerGroupUserAddCommand_initTelemetry() {
|
|
55
55
|
this.telemetry.push((args) => {
|
|
56
56
|
Object.assign(this.telemetryProperties, {
|
|
57
|
-
|
|
57
|
+
id: typeof args.options.id !== 'undefined',
|
|
58
58
|
email: typeof args.options.email !== 'undefined'
|
|
59
59
|
});
|
|
60
60
|
});
|
|
61
61
|
}, _YammerGroupUserAddCommand_initOptions = function _YammerGroupUserAddCommand_initOptions() {
|
|
62
62
|
this.options.unshift({
|
|
63
|
-
option: '--
|
|
63
|
+
option: '--groupId <groupId>'
|
|
64
64
|
}, {
|
|
65
|
-
option: '--
|
|
65
|
+
option: '--id [id]'
|
|
66
66
|
}, {
|
|
67
67
|
option: '--email [email]'
|
|
68
68
|
});
|
|
69
69
|
}, _YammerGroupUserAddCommand_initValidators = function _YammerGroupUserAddCommand_initValidators() {
|
|
70
70
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
if (typeof args.options.groupId !== 'number') {
|
|
72
|
+
return `${args.options.groupId} is not a number`;
|
|
73
|
+
}
|
|
71
74
|
if (args.options.id && typeof args.options.id !== 'number') {
|
|
72
75
|
return `${args.options.id} is not a number`;
|
|
73
76
|
}
|
|
74
|
-
if (args.options.userId && typeof args.options.userId !== 'number') {
|
|
75
|
-
return `${args.options.userId} is not a number`;
|
|
76
|
-
}
|
|
77
77
|
return true;
|
|
78
78
|
}));
|
|
79
79
|
};
|
|
@@ -44,8 +44,8 @@ class YammerGroupUserRemoveCommand extends YammerCommand_1.default {
|
|
|
44
44
|
},
|
|
45
45
|
responseType: 'json',
|
|
46
46
|
data: {
|
|
47
|
-
group_id: args.options.
|
|
48
|
-
user_id: args.options.
|
|
47
|
+
group_id: args.options.groupId,
|
|
48
|
+
user_id: args.options.id
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
request_1.default
|
|
@@ -56,9 +56,9 @@ class YammerGroupUserRemoveCommand extends YammerCommand_1.default {
|
|
|
56
56
|
executeRemoveAction();
|
|
57
57
|
}
|
|
58
58
|
else {
|
|
59
|
-
let messagePrompt = `Are you sure you want to leave group ${args.options.
|
|
60
|
-
if (args.options.
|
|
61
|
-
messagePrompt = `Are you sure you want to remove the user ${args.options.
|
|
59
|
+
let messagePrompt = `Are you sure you want to leave group ${args.options.groupId}?`;
|
|
60
|
+
if (args.options.id) {
|
|
61
|
+
messagePrompt = `Are you sure you want to remove the user ${args.options.id} from the group ${args.options.groupId}?`;
|
|
62
62
|
}
|
|
63
63
|
cli_1.Cli.prompt({
|
|
64
64
|
type: 'confirm',
|
|
@@ -79,26 +79,26 @@ class YammerGroupUserRemoveCommand extends YammerCommand_1.default {
|
|
|
79
79
|
_YammerGroupUserRemoveCommand_instances = new WeakSet(), _YammerGroupUserRemoveCommand_initTelemetry = function _YammerGroupUserRemoveCommand_initTelemetry() {
|
|
80
80
|
this.telemetry.push((args) => {
|
|
81
81
|
Object.assign(this.telemetryProperties, {
|
|
82
|
-
userId: args.options.
|
|
82
|
+
userId: args.options.id !== undefined,
|
|
83
83
|
confirm: (!(!args.options.confirm)).toString()
|
|
84
84
|
});
|
|
85
85
|
});
|
|
86
86
|
}, _YammerGroupUserRemoveCommand_initOptions = function _YammerGroupUserRemoveCommand_initOptions() {
|
|
87
87
|
this.options.unshift({
|
|
88
|
-
option: '--
|
|
88
|
+
option: '--groupId <groupId>'
|
|
89
89
|
}, {
|
|
90
|
-
option: '--
|
|
90
|
+
option: '--id [id]'
|
|
91
91
|
}, {
|
|
92
92
|
option: '--confirm'
|
|
93
93
|
});
|
|
94
94
|
}, _YammerGroupUserRemoveCommand_initValidators = function _YammerGroupUserRemoveCommand_initValidators() {
|
|
95
95
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
96
|
+
if (args.options.groupId && typeof args.options.groupId !== 'number') {
|
|
97
|
+
return `${args.options.groupId} is not a number`;
|
|
98
|
+
}
|
|
96
99
|
if (args.options.id && typeof args.options.id !== 'number') {
|
|
97
100
|
return `${args.options.id} is not a number`;
|
|
98
101
|
}
|
|
99
|
-
if (args.options.userId && typeof args.options.userId !== 'number') {
|
|
100
|
-
return `${args.options.userId} is not a number`;
|
|
101
|
-
}
|
|
102
102
|
return true;
|
|
103
103
|
}));
|
|
104
104
|
};
|
|
@@ -44,7 +44,7 @@ class YammerMessageLikeSetCommand extends YammerCommand_1.default {
|
|
|
44
44
|
},
|
|
45
45
|
responseType: 'json',
|
|
46
46
|
data: {
|
|
47
|
-
message_id: args.options.
|
|
47
|
+
message_id: args.options.messageId
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
if (args.options.enable !== 'false') {
|
|
@@ -63,7 +63,7 @@ class YammerMessageLikeSetCommand extends YammerCommand_1.default {
|
|
|
63
63
|
executeLikeAction();
|
|
64
64
|
}
|
|
65
65
|
else {
|
|
66
|
-
const messagePrompt = `Are you sure you want to unlike message ${args.options.
|
|
66
|
+
const messagePrompt = `Are you sure you want to unlike message ${args.options.messageId}?`;
|
|
67
67
|
cli_1.Cli.prompt({
|
|
68
68
|
type: 'confirm',
|
|
69
69
|
name: 'continue',
|
|
@@ -93,7 +93,7 @@ _YammerMessageLikeSetCommand_instances = new WeakSet(), _YammerMessageLikeSetCom
|
|
|
93
93
|
});
|
|
94
94
|
}, _YammerMessageLikeSetCommand_initOptions = function _YammerMessageLikeSetCommand_initOptions() {
|
|
95
95
|
this.options.unshift({
|
|
96
|
-
option: '--
|
|
96
|
+
option: '--messageId <messageId>'
|
|
97
97
|
}, {
|
|
98
98
|
option: '--enable [enable]'
|
|
99
99
|
}, {
|
|
@@ -101,8 +101,8 @@ _YammerMessageLikeSetCommand_instances = new WeakSet(), _YammerMessageLikeSetCom
|
|
|
101
101
|
});
|
|
102
102
|
}, _YammerMessageLikeSetCommand_initValidators = function _YammerMessageLikeSetCommand_initValidators() {
|
|
103
103
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
104
|
-
if (args.options.
|
|
105
|
-
return `${args.options.
|
|
104
|
+
if (args.options.messageId && typeof args.options.messageId !== 'number') {
|
|
105
|
+
return `${args.options.messageId} is not a number`;
|
|
106
106
|
}
|
|
107
107
|
if (args.options.enable &&
|
|
108
108
|
args.options.enable !== 'true' &&
|
|
@@ -37,8 +37,8 @@ class YammerUserGetCommand extends YammerCommand_1.default {
|
|
|
37
37
|
}
|
|
38
38
|
commandAction(logger, args, cb) {
|
|
39
39
|
let endPoint = `${this.resource}/v1/users/current.json`;
|
|
40
|
-
if (args.options.
|
|
41
|
-
endPoint = `${this.resource}/v1/users/${encodeURIComponent(args.options.
|
|
40
|
+
if (args.options.id) {
|
|
41
|
+
endPoint = `${this.resource}/v1/users/${encodeURIComponent(args.options.id)}.json`;
|
|
42
42
|
}
|
|
43
43
|
else if (args.options.email) {
|
|
44
44
|
endPoint = `${this.resource}/v1/users/by_email.json?email=${encodeURIComponent(args.options.email)}`;
|
|
@@ -62,19 +62,19 @@ class YammerUserGetCommand extends YammerCommand_1.default {
|
|
|
62
62
|
_YammerUserGetCommand_instances = new WeakSet(), _YammerUserGetCommand_initTelemetry = function _YammerUserGetCommand_initTelemetry() {
|
|
63
63
|
this.telemetry.push((args) => {
|
|
64
64
|
Object.assign(this.telemetryProperties, {
|
|
65
|
-
userId: args.options.
|
|
65
|
+
userId: args.options.id !== undefined,
|
|
66
66
|
email: args.options.email !== undefined
|
|
67
67
|
});
|
|
68
68
|
});
|
|
69
69
|
}, _YammerUserGetCommand_initOptions = function _YammerUserGetCommand_initOptions() {
|
|
70
70
|
this.options.unshift({
|
|
71
|
-
option: '-i, --
|
|
71
|
+
option: '-i, --id [id]'
|
|
72
72
|
}, {
|
|
73
73
|
option: '--email [email]'
|
|
74
74
|
});
|
|
75
75
|
}, _YammerUserGetCommand_initValidators = function _YammerUserGetCommand_initValidators() {
|
|
76
76
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
77
|
-
if (args.options.
|
|
77
|
+
if (args.options.id !== undefined && args.options.email !== undefined) {
|
|
78
78
|
return `You are only allowed to search by ID or e-mail but not both`;
|
|
79
79
|
}
|
|
80
80
|
return true;
|
|
@@ -58,6 +58,9 @@ m365 aad app add [options]
|
|
|
58
58
|
`--certificateDisplayName [certificateDisplayName]`
|
|
59
59
|
: Display name for the certificate. If not given, the displayName will be set to the certificate subject. When specified, also specify either `certificateFile` or `certificateBase64Encoded`
|
|
60
60
|
|
|
61
|
+
`--grantAdminConsent`
|
|
62
|
+
: When specified, grants application & delegated permissions through admin consent
|
|
63
|
+
|
|
61
64
|
`--manifest [manifest]`
|
|
62
65
|
: Azure AD app manifest as retrieved from the Azure Portal to create the app registration from
|
|
63
66
|
|
|
@@ -94,6 +97,8 @@ After creating the Azure AD app registration, this command returns the app ID an
|
|
|
94
97
|
|
|
95
98
|
If you want to store the information about the created Azure AD app registration, use the `--save` option. This is useful when you build solutions connected to Microsoft 365 and want to easily manage app registrations used with your solution. When you use the `--save` option, after you create the app registration, the command will write its ID and name to the `.m365rc.json` file in the current directory. If the file already exists, it will add the information about the to it, allowing you to track multiple apps. If the file doesn't exist, the command will create it.
|
|
96
99
|
|
|
100
|
+
When specifying `--grantAdminConsent` option, a service principal will be created for the app registration.
|
|
101
|
+
|
|
97
102
|
## Examples
|
|
98
103
|
|
|
99
104
|
Create new Azure AD app registration with the specified name
|
|
@@ -156,6 +161,12 @@ Create new Azure AD app registration with Application ID URI set to a value that
|
|
|
156
161
|
m365 aad app add --name 'My AAD app' --uri api://caf406b91cd4.ngrok.io/_appId_ --scopeName access_as_user --scopeAdminConsentDescription 'Access as a user' --scopeAdminConsentDisplayName 'Access as a user' --scopeConsentBy adminsAndUsers
|
|
157
162
|
```
|
|
158
163
|
|
|
164
|
+
Create new Azure AD app registration for a deamon app with specified Microsoft Graph application permissions, including admin consent
|
|
165
|
+
|
|
166
|
+
```sh
|
|
167
|
+
m365 aad app add --name 'My AAD app' --apisApplication 'https://graph.microsoft.com/Group.ReadWrite.All' --grantAdminConsent
|
|
168
|
+
```
|
|
169
|
+
|
|
159
170
|
Create new Azure AD app registration with the specified name. Store information about the created app registration in the _.m365rc.json_ file in the current directory.
|
|
160
171
|
|
|
161
172
|
```sh
|
|
@@ -165,5 +176,5 @@ m365 aad app add --name 'My AAD app' --save
|
|
|
165
176
|
Create new Azure AD app registration with a certificate
|
|
166
177
|
|
|
167
178
|
```sh
|
|
168
|
-
m365 aad app add --name 'My AAD app' --certificateDisplayName "Some certificate name" --certificateFile c:\temp\some-certificate.cer
|
|
179
|
+
m365 aad app add --name 'My AAD app' --certificateDisplayName "Some certificate name" --certificateFile "c:\temp\some-certificate.cer"
|
|
169
180
|
```
|
|
@@ -85,5 +85,5 @@ m365 aad app set --objectId 95cfe30d-ed44-4f9d-b73d-c66560f72e83 --redirectUris
|
|
|
85
85
|
Add a certificate to the app
|
|
86
86
|
|
|
87
87
|
```sh
|
|
88
|
-
m365 aad app set --certificateDisplayName "Some certificate name" --certificateFile c:\temp\some-certificate.cer
|
|
88
|
+
m365 aad app set --appId e75be2e1-0204-4f95-857d-51a37cf40be8 --certificateDisplayName "Some certificate name" --certificateFile "c:\temp\some-certificate.cer"
|
|
89
89
|
```
|
|
@@ -13,10 +13,10 @@ m365 aad approleassignment add [options]
|
|
|
13
13
|
`--appId [appId]`
|
|
14
14
|
: Application appId also known as clientId of the App Registration to which the configured scopes (app roles) should be applied
|
|
15
15
|
|
|
16
|
-
`--
|
|
16
|
+
`--appObjectId [appObjectId]`
|
|
17
17
|
: Application objectId of the App Registration to which the configured scopes (app roles) should be applied
|
|
18
18
|
|
|
19
|
-
`--
|
|
19
|
+
`--appDisplayName [appDisplayName]`
|
|
20
20
|
: Application name of the App Registration to which the configured scopes (app roles) should be applied
|
|
21
21
|
|
|
22
22
|
`-r, --resource <resource>`
|
|
@@ -31,7 +31,7 @@ m365 aad approleassignment add [options]
|
|
|
31
31
|
|
|
32
32
|
This command requires tenant administrator permissions.
|
|
33
33
|
|
|
34
|
-
Specify either the `appId`, `
|
|
34
|
+
Specify either the `appId`, `appObjectId` or `appDisplayName` but not multiple. If you specify more than one option value, the command will fail with an error.
|
|
35
35
|
|
|
36
36
|
Autocomplete values for the `resource` option do not mean allowed values. The autocomplete will just suggest some known names, but that doesn't restrict you to use name of your own custom application or other application within your tenant.
|
|
37
37
|
|
|
@@ -48,13 +48,13 @@ m365 aad approleassignment add --appId "57907bf8-73fa-43a6-89a5-1f603e29e451" --
|
|
|
48
48
|
Adds multiple Microsoft Graph application permissions to an Azure AD application with name _MyAppName_
|
|
49
49
|
|
|
50
50
|
```sh
|
|
51
|
-
m365 aad approleassignment add --
|
|
51
|
+
m365 aad approleassignment add --appDisplayName "MyAppName" --resource "Microsoft Graph" --scope "Mail.Read,Mail.Send"
|
|
52
52
|
```
|
|
53
53
|
|
|
54
54
|
Adds Microsoft Graph _Mail.Read_ application permissions to a system managed identity app with objectId _57907bf8-73fa-43a6-89a5-1f603e29e451_
|
|
55
55
|
|
|
56
56
|
```sh
|
|
57
|
-
m365 aad approleassignment add --
|
|
57
|
+
m365 aad approleassignment add --appObjectId "57907bf8-73fa-43a6-89a5-1f603e29e451" --resource "Microsoft Graph" --scope "Mail.Read"
|
|
58
58
|
```
|
|
59
59
|
|
|
60
60
|
## More information
|
|
@@ -13,17 +13,17 @@ m365 aad approleassignment list [options]
|
|
|
13
13
|
`-i, --appId [appId]`
|
|
14
14
|
: Application (client) Id of the App Registration for which the configured app roles should be retrieved
|
|
15
15
|
|
|
16
|
-
`-n, --
|
|
16
|
+
`-n, --appDisplayName [appDisplayName]`
|
|
17
17
|
: Display name of the application for which the configured app roles should be retrieved
|
|
18
18
|
|
|
19
|
-
`--
|
|
19
|
+
`--appObjectId [appObjectId]`
|
|
20
20
|
: ObjectId of the application for which the configured app roles should be retrieved
|
|
21
21
|
|
|
22
22
|
--8<-- "docs/cmd/_global.md"
|
|
23
23
|
|
|
24
24
|
## Remarks
|
|
25
25
|
|
|
26
|
-
Specify either the `appId`, `
|
|
26
|
+
Specify either the `appId`, `appObjectId` or `appDisplayName`. If you specify more than one option value, the command will fail with an error.
|
|
27
27
|
|
|
28
28
|
## Examples
|
|
29
29
|
|
|
@@ -36,13 +36,13 @@ m365 aad approleassignment list --appId b2307a39-e878-458b-bc90-03bc578531d6
|
|
|
36
36
|
List app roles assigned to service principal with Application display name _MyAppName_.
|
|
37
37
|
|
|
38
38
|
```sh
|
|
39
|
-
m365 aad approleassignment list --
|
|
39
|
+
m365 aad approleassignment list --appDisplayName 'MyAppName'
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
List app roles assigned to service principal with ObjectId _b2307a39-e878-458b-bc90-03bc578531dd_.
|
|
43
43
|
|
|
44
44
|
```sh
|
|
45
|
-
m365 aad approleassignment list --
|
|
45
|
+
m365 aad approleassignment list --appObjectId b2307a39-e878-458b-bc90-03bc578531dd
|
|
46
46
|
```
|
|
47
47
|
|
|
48
48
|
## More information
|
|
@@ -13,10 +13,10 @@ m365 aad approleassignment remove [options]
|
|
|
13
13
|
`--appId [appId]`
|
|
14
14
|
: Application appId also known as clientId of the App Registration for which the configured scopes (app roles) should be deleted
|
|
15
15
|
|
|
16
|
-
`--
|
|
16
|
+
`--appObjectId [appObjectId]`
|
|
17
17
|
: Application objectId of the App Registration for which the configured scopes (app roles) should be deleted
|
|
18
18
|
|
|
19
|
-
`--
|
|
19
|
+
`--appDisplayName [appDisplayName]`
|
|
20
20
|
: Application name of the App Registration for which the configured scopes (app roles) should be deleted
|
|
21
21
|
|
|
22
22
|
`-r, --resource <resource>`
|
|
@@ -34,7 +34,7 @@ m365 aad approleassignment remove [options]
|
|
|
34
34
|
|
|
35
35
|
This command requires tenant administrator permissions.
|
|
36
36
|
|
|
37
|
-
Specify either the `appId`, `
|
|
37
|
+
Specify either the `appId`, `appObjectId` or `appDisplayName` but not multiple. If you specify more than one option value, the command will fail with an error.
|
|
38
38
|
|
|
39
39
|
Autocomplete values for the `resource` option do not mean allowed values. The autocomplete will just suggest some known names, but that doesn't restrict you to use name of your own custom application or other application within your tenant.
|
|
40
40
|
|
|
@@ -51,13 +51,13 @@ m365 aad approleassignment remove --appId "57907bf8-73fa-43a6-89a5-1f603e29e451"
|
|
|
51
51
|
Deletes multiple Microsoft Graph application permissions from an Azure AD application with name _MyAppName_
|
|
52
52
|
|
|
53
53
|
```sh
|
|
54
|
-
m365 aad approleassignment remove --
|
|
54
|
+
m365 aad approleassignment remove --appDisplayName "MyAppName" --resource "Microsoft Graph" --scope "Mail.Read,Mail.Send"
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
Deletes Microsoft Graph _Mail.Read_ application permissions from a system managed identity app with objectId _57907bf8-73fa-43a6-89a5-1f603e29e451_
|
|
58
58
|
|
|
59
59
|
```sh
|
|
60
|
-
m365 aad approleassignment remove --
|
|
60
|
+
m365 aad approleassignment remove --appObjectId "57907bf8-73fa-43a6-89a5-1f603e29e451" --resource "Microsoft Graph" --scope "Mail.Read"
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
## More information
|
|
@@ -25,8 +25,8 @@ m365 aad o365group add [options]
|
|
|
25
25
|
`--members [members]`
|
|
26
26
|
: Comma-separated list of Microsoft 365 Group members
|
|
27
27
|
|
|
28
|
-
`--isPrivate
|
|
29
|
-
:
|
|
28
|
+
`--isPrivate`
|
|
29
|
+
: Specify, if the Microsoft 365 Group should be private. If not specified, will create a public group (default)
|
|
30
30
|
|
|
31
31
|
`--allowMembersToPost [allowMembersToPost]`
|
|
32
32
|
: Set if only group members should be able to post conversations to the group
|
|
@@ -61,7 +61,7 @@ m365 aad o365group add --displayName Finance --description "This is the Contoso
|
|
|
61
61
|
Create a private Microsoft 365 Group
|
|
62
62
|
|
|
63
63
|
```sh
|
|
64
|
-
m365 aad o365group add --displayName Finance --description "This is the Contoso Finance Group. Please come here and check out the latest news, posts, files, and more." --mailNickname finance --isPrivate
|
|
64
|
+
m365 aad o365group add --displayName Finance --description "This is the Contoso Finance Group. Please come here and check out the latest news, posts, files, and more." --mailNickname finance --isPrivate
|
|
65
65
|
```
|
|
66
66
|
|
|
67
67
|
Create a public Microsoft 365 Group and set specified users as its owners
|
|
@@ -10,11 +10,11 @@ m365 aad o365group recyclebinitem list [options]
|
|
|
10
10
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
|
-
`-d, --
|
|
14
|
-
: Lists groups with
|
|
13
|
+
`-d, --groupDisplayName [groupDisplayName]`
|
|
14
|
+
: Lists groups with DisplayName starting with the specified value
|
|
15
15
|
|
|
16
|
-
`-m, --
|
|
17
|
-
: Lists groups with
|
|
16
|
+
`-m, --groupMailNickname [groupMailNickname]`
|
|
17
|
+
: Lists groups with MailNickname starting with the specified value
|
|
18
18
|
|
|
19
19
|
--8<-- "docs/cmd/_global.md"
|
|
20
20
|
|
|
@@ -29,17 +29,17 @@ m365 aad o365group recyclebinitem list
|
|
|
29
29
|
List deleted Microsoft 365 Groups with display name starting with _Project_
|
|
30
30
|
|
|
31
31
|
```sh
|
|
32
|
-
m365 aad o365group recyclebinitem list --
|
|
32
|
+
m365 aad o365group recyclebinitem list --groupDisplayName Project
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
List deleted Microsoft 365 Groups mail nick name starting with _team_
|
|
36
36
|
|
|
37
37
|
```sh
|
|
38
|
-
m365 aad o365group recyclebinitem list --
|
|
38
|
+
m365 aad o365group recyclebinitem list --groupMailNickname team
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
List deleted Microsoft 365 Groups mail nick name starting with _team_ and with display name starting with _Project_
|
|
42
42
|
|
|
43
43
|
```sh
|
|
44
|
-
m365 aad o365group recyclebinitem list --
|
|
44
|
+
m365 aad o365group recyclebinitem list --groupMailNickname team --groupDisplayName Project
|
|
45
45
|
```
|
|
@@ -10,11 +10,11 @@ m365 aad o365group teamify [options]
|
|
|
10
10
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
|
-
`-i, --
|
|
14
|
-
: The ID of the Microsoft 365 Group to connect to Microsoft Teams. Specify either
|
|
13
|
+
`-i, --id [id]`
|
|
14
|
+
: The ID of the Microsoft 365 Group to connect to Microsoft Teams. Specify either id or mailNickname but not both
|
|
15
15
|
|
|
16
16
|
`--mailNickname [mailNickname]`
|
|
17
|
-
: The mail alias of the Microsoft 365 Group to connect to Microsoft Teams. Specify either
|
|
17
|
+
: The mail alias of the Microsoft 365 Group to connect to Microsoft Teams. Specify either id or mailNickname but not both
|
|
18
18
|
|
|
19
19
|
--8<-- "docs/cmd/_global.md"
|
|
20
20
|
|
|
@@ -23,7 +23,7 @@ m365 aad o365group teamify [options]
|
|
|
23
23
|
Creates a new Microsoft Teams team under existing Microsoft 365 group with id _e3f60f99-0bad-481f-9e9f-ff0f572fbd03_
|
|
24
24
|
|
|
25
25
|
```sh
|
|
26
|
-
m365 aad o365group teamify --
|
|
26
|
+
m365 aad o365group teamify --id e3f60f99-0bad-481f-9e9f-ff0f572fbd03
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
Creates a new Microsoft Teams team under existing Microsoft 365 group with mailNickname _GroupName_
|
|
@@ -10,7 +10,7 @@ m365 aad policy list [options]
|
|
|
10
10
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
|
-
`-
|
|
13
|
+
`-t, --type [type]`
|
|
14
14
|
: The type of policies to return. Allowed values `activityBasedTimeout`,`authorization`,`claimsMapping`,`homeRealmDiscovery`,`identitySecurityDefaultsEnforcement`,`tokenIssuance`,`tokenLifetime`. If omitted, all policies are returned
|
|
15
15
|
|
|
16
16
|
--8<-- "docs/cmd/_global.md"
|
|
@@ -26,7 +26,7 @@ m365 aad policy list
|
|
|
26
26
|
Returns claim-mapping policies from Azure AD
|
|
27
27
|
|
|
28
28
|
```sh
|
|
29
|
-
m365 aad policy list --
|
|
29
|
+
m365 aad policy list --type "claimsMapping"
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
## More information
|
|
@@ -13,17 +13,17 @@ m365 aad sp get [options]
|
|
|
13
13
|
`-i, --appId [appId]`
|
|
14
14
|
: ID of the application for which the service principal should be retrieved
|
|
15
15
|
|
|
16
|
-
`-n, --
|
|
16
|
+
`-n, --appDisplayName [appDisplayName]`
|
|
17
17
|
: Display name of the application for which the service principal should be retrieved
|
|
18
18
|
|
|
19
|
-
`--
|
|
19
|
+
`--appObjectId [appObjectId]`
|
|
20
20
|
: ObjectId of the application for which the service principal should be retrieved
|
|
21
21
|
|
|
22
22
|
--8<-- "docs/cmd/_global.md"
|
|
23
23
|
|
|
24
24
|
## Remarks
|
|
25
25
|
|
|
26
|
-
Specify either the `appId`, `
|
|
26
|
+
Specify either the `appId`, `appObjectId` or `appDisplayName`. If you specify more than one option value, the command will fail with an error.
|
|
27
27
|
|
|
28
28
|
## Examples
|
|
29
29
|
|
|
@@ -36,13 +36,13 @@ m365 aad sp get --appId b2307a39-e878-458b-bc90-03bc578531d6
|
|
|
36
36
|
Return details about the _Microsoft Graph_ service principal.
|
|
37
37
|
|
|
38
38
|
```sh
|
|
39
|
-
m365 aad sp get --
|
|
39
|
+
m365 aad sp get --appDisplayName "Microsoft Graph"
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
Return details about the service principal with ObjectId _b2307a39-e878-458b-bc90-03bc578531dd_.
|
|
43
43
|
|
|
44
44
|
```sh
|
|
45
|
-
m365 aad sp get --
|
|
45
|
+
m365 aad sp get --appObjectId b2307a39-e878-458b-bc90-03bc578531dd
|
|
46
46
|
```
|
|
47
47
|
|
|
48
48
|
## More information
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# booking business get
|
|
2
|
+
|
|
3
|
+
Retrieve the specified Microsoft Bookings business.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 booking business get [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-i, --id [id]`
|
|
14
|
+
: ID of the business. Specify either `id` or `name` but not both.
|
|
15
|
+
|
|
16
|
+
`-n, --name [name]`
|
|
17
|
+
: Name of the business. Specify either `id` or `name` but not both.
|
|
18
|
+
|
|
19
|
+
--8<-- "docs/cmd/_global.md"
|
|
20
|
+
|
|
21
|
+
## Examples
|
|
22
|
+
|
|
23
|
+
Retrieve the specified Microsoft Bookings business with id _business@contoso.onmicrosoft.com_.
|
|
24
|
+
|
|
25
|
+
```sh
|
|
26
|
+
m365 booking business get --id 'business@contoso.onmicrosoft.com'
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Retrieve the specified Microsoft Bookings business with name _business name_.
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
m365 booking business get --name 'business name'
|
|
33
|
+
```
|