@pnp/cli-microsoft365 6.0.0-beta.550f33a → 6.0.0-beta.55cbe4a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Auth.js +3 -3
- package/dist/Command.js +56 -43
- package/dist/api.js +3 -3
- package/dist/appInsights.js +2 -0
- package/dist/cli/Cli.js +36 -28
- package/dist/index.js +2 -2
- package/dist/m365/aad/commands/app/app-add.js +31 -30
- package/dist/m365/aad/commands/app/app-get.js +15 -12
- package/dist/m365/aad/commands/app/app-remove.js +37 -38
- package/dist/m365/aad/commands/app/app-role-add.js +29 -26
- package/dist/m365/aad/commands/app/app-role-list.js +21 -9
- package/dist/m365/aad/commands/app/app-role-remove.js +25 -24
- package/dist/m365/aad/commands/app/app-set.js +12 -7
- package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +92 -96
- package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +41 -41
- package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +93 -95
- package/dist/m365/aad/commands/group/group-list.js +36 -24
- package/dist/m365/aad/commands/groupsetting/groupsetting-add.js +35 -34
- package/dist/m365/aad/commands/groupsetting/groupsetting-get.js +19 -16
- package/dist/m365/aad/commands/groupsetting/groupsetting-list.js +20 -8
- package/dist/m365/aad/commands/groupsetting/groupsetting-remove.js +33 -32
- package/dist/m365/aad/commands/groupsetting/groupsetting-set.js +35 -32
- package/dist/m365/aad/commands/groupsettingtemplate/groupsettingtemplate-get.js +17 -15
- package/dist/m365/aad/commands/groupsettingtemplate/groupsettingtemplate-list.js +20 -8
- package/dist/m365/aad/commands/o365group/o365group-add.js +87 -98
- package/dist/m365/aad/commands/o365group/o365group-conversation-list.js +13 -9
- package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +14 -12
- package/dist/m365/aad/commands/o365group/o365group-get.js +22 -27
- package/dist/m365/aad/commands/o365group/o365group-list.js +39 -44
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-clear.js +34 -22
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-list.js +25 -13
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-remove.js +36 -38
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-restore.js +26 -22
- package/dist/m365/aad/commands/o365group/o365group-remove.js +41 -43
- package/dist/m365/aad/commands/o365group/o365group-renew.js +19 -14
- package/dist/m365/aad/commands/o365group/o365group-set.js +98 -116
- package/dist/m365/aad/commands/o365group/o365group-teamify.js +33 -30
- package/dist/m365/aad/commands/o365group/o365group-user-add.js +30 -27
- package/dist/m365/aad/commands/o365group/o365group-user-list.js +20 -21
- package/dist/m365/aad/commands/o365group/o365group-user-remove.js +61 -64
- package/dist/m365/aad/commands/o365group/o365group-user-set.js +65 -65
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-add.js +28 -23
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-list.js +23 -20
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-remove.js +42 -32
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-set.js +30 -16
- package/dist/m365/aad/commands/policy/policy-list.js +22 -23
- package/dist/m365/aad/commands/siteclassification/siteclassification-disable.js +61 -53
- package/dist/m365/aad/commands/siteclassification/siteclassification-enable.js +84 -72
- package/dist/m365/aad/commands/siteclassification/siteclassification-get.js +66 -57
- package/dist/m365/aad/commands/siteclassification/siteclassification-set.js +96 -93
- package/dist/m365/aad/commands/sp/sp-add.js +25 -24
- package/dist/m365/aad/commands/sp/sp-get.js +25 -24
- package/dist/m365/aad/commands/user/user-get.js +39 -39
- package/dist/m365/aad/commands/user/user-hibp.js +23 -24
- package/dist/m365/aad/commands/user/user-list.js +32 -22
- package/dist/m365/aad/commands/user/user-password-validate.js +29 -17
- package/dist/m365/aad/commands/user/user-set.js +20 -15
- package/dist/m365/aad/commands/user/user-signin-list.js +28 -24
- package/dist/m365/adaptivecard/commands/adaptivecard-send.js +39 -37
- package/dist/m365/app/commands/app-get.js +28 -16
- package/dist/m365/app/commands/app-open.js +20 -5
- package/dist/m365/app/commands/permission/permission-list.js +19 -17
- package/dist/m365/base/AnonymousCommand.js +14 -3
- package/dist/m365/base/AppCommand.js +54 -47
- package/dist/m365/base/DateAndPeriodBasedReport.js +7 -5
- package/dist/m365/base/PeriodBasedReport.js +23 -16
- package/dist/m365/base/SpoCommand.js +13 -9
- package/dist/m365/base/YammerCommand.js +4 -4
- package/dist/m365/booking/commands/business/business-get.js +27 -17
- package/dist/m365/booking/commands/business/business-list.js +21 -12
- package/dist/m365/cli/commands/cli-consent.js +15 -12
- package/dist/m365/cli/commands/cli-doctor.js +37 -27
- package/dist/m365/cli/commands/cli-issue.js +15 -15
- package/dist/m365/cli/commands/cli-reconsent.js +31 -19
- package/dist/m365/cli/commands/completion/completion-clink-update.js +13 -3
- package/dist/m365/cli/commands/completion/completion-pwsh-setup.js +47 -38
- package/dist/m365/cli/commands/completion/completion-pwsh-update.js +16 -6
- package/dist/m365/cli/commands/completion/completion-sh-setup.js +21 -11
- package/dist/m365/cli/commands/completion/completion-sh-update.js +16 -6
- package/dist/m365/cli/commands/config/config-get.js +5 -4
- package/dist/m365/cli/commands/config/config-reset.js +10 -9
- package/dist/m365/cli/commands/config/config-set.js +20 -19
- package/dist/m365/commands/login.js +66 -63
- package/dist/m365/commands/logout.js +34 -23
- package/dist/m365/commands/request.js +56 -59
- package/dist/m365/commands/status.js +41 -30
- package/dist/m365/commands/version.js +13 -3
- package/dist/m365/file/commands/convert/convert-pdf.js +58 -53
- package/dist/m365/file/commands/file-add.js +17 -12
- package/dist/m365/file/commands/file-list.js +31 -33
- package/dist/m365/flow/commands/environment/environment-get.js +34 -22
- package/dist/m365/flow/commands/environment/environment-list.js +33 -21
- package/dist/m365/flow/commands/flow-disable.js +28 -14
- package/dist/m365/flow/commands/flow-enable.js +28 -14
- package/dist/m365/flow/commands/flow-export.js +104 -104
- package/dist/m365/flow/commands/flow-get.js +33 -21
- package/dist/m365/flow/commands/flow-list.js +28 -16
- package/dist/m365/flow/commands/flow-remove.js +41 -45
- package/dist/m365/flow/commands/run/run-cancel.js +35 -34
- package/dist/m365/flow/commands/run/run-get.js +33 -21
- package/dist/m365/flow/commands/run/run-list.js +31 -19
- package/dist/m365/flow/commands/run/run-resubmit.js +39 -40
- package/dist/m365/graph/commands/changelog/changelog-list.js +26 -22
- package/dist/m365/graph/commands/schemaextension/schemaextension-add.js +32 -29
- package/dist/m365/graph/commands/schemaextension/schemaextension-get.js +30 -17
- package/dist/m365/graph/commands/schemaextension/schemaextension-list.js +40 -36
- package/dist/m365/graph/commands/schemaextension/schemaextension-remove.js +43 -32
- package/dist/m365/graph/commands/schemaextension/schemaextension-set.js +59 -56
- package/dist/m365/graph/commands/subscription/subscription-add.js +30 -27
- package/dist/m365/onedrive/commands/onedrive-list.js +25 -15
- package/dist/m365/onenote/commands/notebook/notebook-list.js +15 -14
- package/dist/m365/outlook/commands/mail/mail-send.js +64 -41
- package/dist/m365/outlook/commands/message/message-list.js +22 -12
- package/dist/m365/outlook/commands/message/message-move.js +33 -25
- package/dist/m365/outlook/commands/room/room-list.js +24 -12
- package/dist/m365/outlook/commands/roomlist/roomlist-list.js +20 -8
- package/dist/m365/pa/commands/app/app-get.js +45 -46
- package/dist/m365/pa/commands/app/app-list.js +20 -17
- package/dist/m365/pa/commands/app/app-remove.js +41 -41
- package/dist/m365/pa/commands/connector/connector-export.js +102 -104
- package/dist/m365/pa/commands/connector/connector-list.js +29 -17
- package/dist/m365/pa/commands/environment/environment-get.js +34 -22
- package/dist/m365/pa/commands/environment/environment-list.js +33 -21
- package/dist/m365/pa/commands/pcf/pcf-init.js +39 -38
- package/dist/m365/pa/commands/solution/solution-init.js +50 -49
- package/dist/m365/pa/commands/solution/solution-reference-add.js +15 -14
- package/dist/m365/planner/commands/bucket/bucket-add.js +30 -28
- package/dist/m365/planner/commands/bucket/bucket-get.js +18 -14
- package/dist/m365/planner/commands/bucket/bucket-list.js +19 -14
- package/dist/m365/planner/commands/bucket/bucket-remove.js +39 -39
- package/dist/m365/planner/commands/bucket/bucket-set.js +31 -27
- package/dist/m365/planner/commands/plan/plan-add.js +35 -31
- package/dist/m365/planner/commands/plan/plan-get.js +33 -33
- package/dist/m365/planner/commands/plan/plan-list.js +19 -15
- package/dist/m365/planner/commands/plan/plan-remove.js +38 -40
- package/dist/m365/planner/commands/task/task-add.js +47 -50
- package/dist/m365/planner/commands/task/task-checklistitem-add.js +47 -37
- package/dist/m365/planner/commands/task/task-checklistitem-list.js +36 -22
- package/dist/m365/planner/commands/task/task-checklistitem-remove.js +52 -42
- package/dist/m365/planner/commands/task/task-get.js +19 -15
- package/dist/m365/planner/commands/task/task-list.js +48 -56
- package/dist/m365/planner/commands/task/task-reference-add.js +25 -24
- package/dist/m365/planner/commands/task/task-reference-list.js +31 -19
- package/dist/m365/planner/commands/task/task-reference-remove.js +41 -42
- package/dist/m365/planner/commands/task/task-remove.js +38 -37
- package/dist/m365/planner/commands/task/task-set.js +38 -41
- package/dist/m365/planner/commands/tenant/tenant-settings-list.js +26 -14
- package/dist/m365/planner/commands/tenant/tenant-settings-set.js +27 -24
- package/dist/m365/pp/commands/environment/environment-list.js +40 -28
- package/dist/m365/pp/commands/gateway/gateway-list.js +29 -17
- package/dist/m365/pp/commands/managementapp/managementapp-add.js +22 -21
- package/dist/m365/pp/commands/managementapp/managementapp-list.js +21 -9
- package/dist/m365/search/commands/externalconnection/externalconnection-add.js +29 -24
- package/dist/m365/search/commands/externalconnection/externalconnection-get.js +37 -28
- package/dist/m365/search/commands/externalconnection/externalconnection-list.js +20 -8
- package/dist/m365/search/commands/externalconnection/externalconnection-remove.js +40 -33
- package/dist/m365/spfx/commands/package/package-generate.js +105 -98
- package/dist/m365/spfx/commands/project/base-project-command.js +19 -18
- package/dist/m365/spfx/commands/project/project-doctor/rules/FN001008_DEP_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-doctor/rules/FN001009_DEP_react_dom.js +2 -2
- package/dist/m365/spfx/commands/project/project-doctor/rules/FN001022_DEP_office_ui_fabric_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-doctor/rules/FN002015_DEVDEP_types_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-doctor/rules/FN002016_DEVDEP_types_react_dom.js +2 -2
- package/dist/m365/spfx/commands/project/project-doctor.js +102 -105
- package/dist/m365/spfx/commands/project/project-externalize.js +45 -38
- package/dist/m365/spfx/commands/project/project-rename.js +38 -30
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001005_DEP_types_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001006_DEP_types_react_dom.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001008_DEP_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001009_DEP_react_dom.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001015_DEP_types_react_addons_shallow_compare.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001016_DEP_types_react_addons_update.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001017_DEP_types_react_addons_update.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001019_DEP_knockout.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001020_DEP_types_knockout.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001022_DEP_office_ui_fabric_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002015_DEVDEP_types_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002016_DEVDEP_types_react_dom.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002025_DEVDEP_eslint_plugin_react_hooks.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010008_YORC_nodeVersion.js +1 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015008_FILE_eslintrc_js.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN020001_RES_types_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN022001_SCSS_remove_fabric_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN022002_SCSS_add_fabric_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade.js +185 -190
- package/dist/m365/spfx/commands/spfx-doctor.js +59 -49
- package/dist/m365/spo/commands/app/app-add.js +34 -34
- package/dist/m365/spo/commands/app/app-deploy.js +41 -41
- package/dist/m365/spo/commands/app/app-get.js +43 -43
- package/dist/m365/spo/commands/app/app-install.js +21 -16
- package/dist/m365/spo/commands/app/app-instance-list.js +27 -23
- package/dist/m365/spo/commands/app/app-list.js +32 -34
- package/dist/m365/spo/commands/app/app-remove.js +38 -40
- package/dist/m365/spo/commands/app/app-retract.js +38 -40
- package/dist/m365/spo/commands/app/app-teamspackage-download.js +42 -43
- package/dist/m365/spo/commands/app/app-uninstall.js +35 -34
- package/dist/m365/spo/commands/app/app-upgrade.js +21 -16
- package/dist/m365/spo/commands/apppage/apppage-add.js +39 -40
- package/dist/m365/spo/commands/apppage/apppage-set.js +21 -16
- package/dist/m365/spo/commands/cdn/cdn-get.js +36 -42
- package/dist/m365/spo/commands/cdn/cdn-origin-add.js +31 -38
- package/dist/m365/spo/commands/cdn/cdn-origin-list.js +34 -40
- package/dist/m365/spo/commands/cdn/cdn-origin-remove.js +46 -59
- package/dist/m365/spo/commands/cdn/cdn-policy-list.js +42 -49
- package/dist/m365/spo/commands/cdn/cdn-policy-set.js +38 -46
- package/dist/m365/spo/commands/cdn/cdn-set.js +64 -68
- package/dist/m365/spo/commands/contenttype/contenttype-add.js +54 -57
- package/dist/m365/spo/commands/contenttype/contenttype-field-remove.js +100 -116
- package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +127 -151
- package/dist/m365/spo/commands/contenttype/contenttype-get.js +38 -36
- package/dist/m365/spo/commands/contenttype/contenttype-list.js +23 -20
- package/dist/m365/spo/commands/contenttype/contenttype-remove.js +65 -69
- package/dist/m365/spo/commands/contenttype/contenttype-set.js +168 -0
- package/dist/m365/spo/commands/contenttypehub/contenttypehub-get.js +51 -48
- package/dist/m365/spo/commands/customaction/customaction-add.js +46 -43
- package/dist/m365/spo/commands/customaction/customaction-clear.js +30 -28
- package/dist/m365/spo/commands/customaction/customaction-get.js +43 -38
- package/dist/m365/spo/commands/customaction/customaction-list.js +30 -25
- package/dist/m365/spo/commands/customaction/customaction-remove.js +36 -35
- package/dist/m365/spo/commands/customaction/customaction-set.js +25 -20
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-get.js +47 -42
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-list.js +39 -35
- package/dist/m365/spo/commands/externaluser/externaluser-list.js +55 -58
- package/dist/m365/spo/commands/feature/feature-disable.js +26 -21
- package/dist/m365/spo/commands/feature/feature-enable.js +28 -23
- package/dist/m365/spo/commands/feature/feature-list.js +25 -22
- package/dist/m365/spo/commands/field/field-add.js +29 -26
- package/dist/m365/spo/commands/field/field-get.js +41 -36
- package/dist/m365/spo/commands/field/field-list.js +33 -28
- package/dist/m365/spo/commands/field/field-remove.js +87 -88
- package/dist/m365/spo/commands/field/field-set.js +69 -73
- package/dist/m365/spo/commands/file/file-add.js +158 -177
- package/dist/m365/spo/commands/file/file-checkin.js +39 -34
- package/dist/m365/spo/commands/file/file-checkout.js +26 -21
- package/dist/m365/spo/commands/file/file-copy.js +67 -67
- package/dist/m365/spo/commands/file/file-get.js +67 -69
- package/dist/m365/spo/commands/file/file-list.js +17 -11
- package/dist/m365/spo/commands/file/file-move.js +66 -66
- package/dist/m365/spo/commands/file/file-remove.js +58 -60
- package/dist/m365/spo/commands/file/file-rename.js +35 -36
- package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +125 -0
- package/dist/m365/spo/commands/file/file-sharinginfo-get.js +49 -46
- package/dist/m365/spo/commands/folder/folder-add.js +29 -25
- package/dist/m365/spo/commands/folder/folder-copy.js +49 -44
- package/dist/m365/spo/commands/folder/folder-get.js +59 -28
- package/dist/m365/spo/commands/folder/folder-list.js +25 -21
- package/dist/m365/spo/commands/folder/folder-move.js +50 -45
- package/dist/m365/spo/commands/folder/folder-remove.js +44 -42
- package/dist/m365/spo/commands/folder/folder-rename.js +34 -38
- package/dist/m365/spo/commands/folder/folder-roleinheritance-reset.js +89 -0
- package/dist/m365/spo/commands/group/group-add.js +28 -25
- package/dist/m365/spo/commands/group/group-get.js +42 -39
- package/dist/m365/spo/commands/group/group-list.js +23 -20
- package/dist/m365/spo/commands/group/group-remove.js +49 -52
- package/dist/m365/spo/commands/group/group-set.js +31 -26
- package/dist/m365/spo/commands/group/group-user-add.js +34 -38
- package/dist/m365/spo/commands/group/group-user-list.js +25 -22
- package/dist/m365/spo/commands/group/group-user-remove.js +42 -43
- package/dist/m365/spo/commands/hidedefaultthemes/hidedefaultthemes-get.js +30 -20
- package/dist/m365/spo/commands/hidedefaultthemes/hidedefaultthemes-set.js +23 -20
- package/dist/m365/spo/commands/homesite/homesite-get.js +29 -19
- package/dist/m365/spo/commands/homesite/homesite-remove.js +50 -49
- package/dist/m365/spo/commands/homesite/homesite-set.js +28 -31
- package/dist/m365/spo/commands/hubsite/hubsite-connect.js +22 -18
- package/dist/m365/spo/commands/hubsite/hubsite-data-get.js +27 -24
- package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +38 -38
- package/dist/m365/spo/commands/hubsite/hubsite-get.js +24 -37
- package/dist/m365/spo/commands/hubsite/hubsite-list.js +65 -63
- package/dist/m365/spo/commands/hubsite/hubsite-register.js +22 -20
- package/dist/m365/spo/commands/hubsite/hubsite-rights-grant.js +33 -36
- package/dist/m365/spo/commands/hubsite/hubsite-rights-revoke.js +48 -55
- package/dist/m365/spo/commands/hubsite/hubsite-set.js +38 -41
- package/dist/m365/spo/commands/hubsite/hubsite-theme-sync.js +21 -16
- package/dist/m365/spo/commands/hubsite/hubsite-unregister.js +35 -35
- package/dist/m365/spo/commands/knowledgehub/knowledgehub-get.js +35 -32
- package/dist/m365/spo/commands/knowledgehub/knowledgehub-remove.js +52 -53
- package/dist/m365/spo/commands/knowledgehub/knowledgehub-set.js +29 -33
- package/dist/m365/spo/commands/list/list-add.js +28 -25
- package/dist/m365/spo/commands/list/list-contenttype-add.js +34 -30
- package/dist/m365/spo/commands/list/list-contenttype-default-set.js +60 -60
- package/dist/m365/spo/commands/list/list-contenttype-list.js +33 -29
- package/dist/m365/spo/commands/list/list-contenttype-remove.js +46 -47
- package/dist/m365/spo/commands/list/list-get.js +37 -33
- package/dist/m365/spo/commands/list/list-label-get.js +51 -51
- package/dist/m365/spo/commands/list/list-label-set.js +51 -47
- package/dist/m365/spo/commands/list/list-list.js +26 -23
- package/dist/m365/spo/commands/list/list-remove.js +46 -47
- package/dist/m365/spo/commands/list/list-roleassignment-add.js +44 -43
- package/dist/m365/spo/commands/list/list-roleassignment-remove.js +58 -58
- package/dist/m365/spo/commands/list/list-roleinheritance-break.js +49 -47
- package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +45 -43
- package/dist/m365/spo/commands/list/list-set.js +31 -28
- package/dist/m365/spo/commands/list/list-sitescript-get.js +54 -55
- package/dist/m365/spo/commands/list/list-view-add.js +37 -32
- package/dist/m365/spo/commands/list/list-view-field-add.js +53 -53
- package/dist/m365/spo/commands/list/list-view-field-remove.js +47 -49
- package/dist/m365/spo/commands/list/list-view-field-set.js +34 -30
- package/dist/m365/spo/commands/list/list-view-get.js +36 -31
- package/dist/m365/spo/commands/list/list-view-list.js +32 -28
- package/dist/m365/spo/commands/list/list-view-remove.js +46 -46
- package/dist/m365/spo/commands/list/list-view-set.js +31 -26
- package/dist/m365/spo/commands/list/list-webhook-add.js +43 -41
- package/dist/m365/spo/commands/list/list-webhook-get.js +34 -32
- package/dist/m365/spo/commands/list/list-webhook-list.js +52 -48
- package/dist/m365/spo/commands/list/list-webhook-remove.js +47 -49
- package/dist/m365/spo/commands/list/list-webhook-set.js +40 -38
- package/dist/m365/spo/commands/listitem/listitem-add.js +106 -112
- package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +32 -28
- package/dist/m365/spo/commands/listitem/listitem-get.js +32 -28
- package/dist/m365/spo/commands/listitem/listitem-isrecord.js +68 -69
- package/dist/m365/spo/commands/listitem/listitem-list.js +63 -68
- package/dist/m365/spo/commands/listitem/listitem-record-declare.js +55 -55
- package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +54 -54
- package/dist/m365/spo/commands/listitem/listitem-remove.js +51 -51
- package/dist/m365/spo/commands/listitem/listitem-roleassignment-remove.js +59 -59
- package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +49 -47
- package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +45 -43
- package/dist/m365/spo/commands/listitem/listitem-set.js +146 -163
- package/dist/m365/spo/commands/mail/mail-send.js +50 -45
- package/dist/m365/spo/commands/navigation/navigation-node-add.js +31 -28
- package/dist/m365/spo/commands/navigation/navigation-node-list.js +28 -25
- package/dist/m365/spo/commands/navigation/navigation-node-remove.js +38 -38
- package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-add.js +30 -33
- package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-list.js +49 -45
- package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-remove.js +50 -50
- package/dist/m365/spo/commands/orgnewssite/orgnewssite-list.js +35 -31
- package/dist/m365/spo/commands/orgnewssite/orgnewssite-remove.js +41 -50
- package/dist/m365/spo/commands/orgnewssite/orgnewssite-set.js +26 -29
- package/dist/m365/spo/commands/page/Page.js +2 -2
- package/dist/m365/spo/commands/page/page-add.js +197 -218
- package/dist/m365/spo/commands/page/page-clientsidewebpart-add.js +186 -189
- package/dist/m365/spo/commands/page/page-column-get.js +25 -22
- package/dist/m365/spo/commands/page/page-column-list.js +20 -17
- package/dist/m365/spo/commands/page/page-control-get.js +39 -36
- package/dist/m365/spo/commands/page/page-control-list.js +35 -32
- package/dist/m365/spo/commands/page/page-control-set.js +100 -100
- package/dist/m365/spo/commands/page/page-copy.js +53 -53
- package/dist/m365/spo/commands/page/page-get.js +52 -53
- package/dist/m365/spo/commands/page/page-header-set.js +230 -234
- package/dist/m365/spo/commands/page/page-list.js +42 -41
- package/dist/m365/spo/commands/page/page-remove.js +48 -47
- package/dist/m365/spo/commands/page/page-section-add.js +68 -70
- package/dist/m365/spo/commands/page/page-section-get.js +16 -13
- package/dist/m365/spo/commands/page/page-section-list.js +25 -22
- package/dist/m365/spo/commands/page/page-set.js +219 -238
- package/dist/m365/spo/commands/page/page-template-list.js +26 -27
- package/dist/m365/spo/commands/page/page-text-add.js +45 -43
- package/dist/m365/spo/commands/propertybag/propertybag-base.js +4 -3
- package/dist/m365/spo/commands/propertybag/propertybag-get.js +27 -24
- package/dist/m365/spo/commands/propertybag/propertybag-list.js +22 -19
- package/dist/m365/spo/commands/propertybag/propertybag-remove.js +36 -40
- package/dist/m365/spo/commands/propertybag/propertybag-set.js +25 -29
- package/dist/m365/spo/commands/roledefinition/roledefinition-add.js +117 -0
- package/dist/m365/spo/commands/roledefinition/roledefinition-get.js +27 -24
- package/dist/m365/spo/commands/roledefinition/roledefinition-list.js +22 -19
- package/dist/m365/spo/commands/roledefinition/roledefinition-remove.js +38 -37
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-add.js +40 -35
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-list.js +43 -39
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-revoke.js +35 -30
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-approve.js +33 -36
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-deny.js +28 -31
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-list.js +45 -41
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-set.js +47 -56
- package/dist/m365/spo/commands/site/site-add.js +189 -199
- package/dist/m365/spo/commands/site/site-appcatalog-add.js +33 -36
- package/dist/m365/spo/commands/site/site-appcatalog-remove.js +33 -36
- package/dist/m365/spo/commands/site/site-apppermission-add.js +69 -37
- package/dist/m365/spo/commands/site/site-apppermission-get.js +21 -18
- package/dist/m365/spo/commands/site/site-apppermission-list.js +17 -19
- package/dist/m365/spo/commands/site/site-apppermission-remove.js +33 -39
- package/dist/m365/spo/commands/site/site-apppermission-set.js +33 -32
- package/dist/m365/spo/commands/site/site-chrome-set.js +52 -47
- package/dist/m365/spo/commands/site/site-commsite-enable.js +30 -33
- package/dist/m365/spo/commands/site/site-ensure.js +46 -36
- package/dist/m365/spo/commands/site/site-get.js +19 -16
- package/dist/m365/spo/commands/site/site-groupify.js +37 -34
- package/dist/m365/spo/commands/site/site-inplacerecordsmanagement-set.js +27 -22
- package/dist/m365/spo/commands/site/site-list.js +20 -20
- package/dist/m365/spo/commands/site/site-recyclebinitem-list.js +29 -26
- package/dist/m365/spo/commands/site/site-recyclebinitem-restore.js +36 -28
- package/dist/m365/spo/commands/site/site-remove.js +66 -73
- package/dist/m365/spo/commands/site/site-rename.js +66 -77
- package/dist/m365/spo/commands/site/site-set.js +47 -50
- package/dist/m365/spo/commands/sitedesign/sitedesign-add.js +40 -42
- package/dist/m365/spo/commands/sitedesign/sitedesign-apply.js +31 -29
- package/dist/m365/spo/commands/sitedesign/sitedesign-get.js +26 -28
- package/dist/m365/spo/commands/sitedesign/sitedesign-list.js +28 -18
- package/dist/m365/spo/commands/sitedesign/sitedesign-remove.js +38 -42
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-grant.js +29 -29
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-list.js +28 -30
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-revoke.js +41 -45
- package/dist/m365/spo/commands/sitedesign/sitedesign-run-list.js +30 -26
- package/dist/m365/spo/commands/sitedesign/sitedesign-run-status-get.js +25 -21
- package/dist/m365/spo/commands/sitedesign/sitedesign-set.js +53 -51
- package/dist/m365/spo/commands/sitedesign/sitedesign-task-get.js +25 -23
- package/dist/m365/spo/commands/sitedesign/sitedesign-task-list.js +19 -15
- package/dist/m365/spo/commands/sitedesign/sitedesign-task-remove.js +37 -37
- package/dist/m365/spo/commands/sitescript/sitescript-add.js +23 -26
- package/dist/m365/spo/commands/sitescript/sitescript-get.js +25 -27
- package/dist/m365/spo/commands/sitescript/sitescript-list.js +31 -25
- package/dist/m365/spo/commands/sitescript/sitescript-remove.js +38 -42
- package/dist/m365/spo/commands/sitescript/sitescript-set.js +38 -40
- package/dist/m365/spo/commands/spo-get.js +16 -6
- package/dist/m365/spo/commands/spo-search.js +23 -23
- package/dist/m365/spo/commands/spo-set.js +11 -9
- package/dist/m365/spo/commands/storageentity/storageentity-get.js +37 -27
- package/dist/m365/spo/commands/storageentity/storageentity-list.js +36 -38
- package/dist/m365/spo/commands/storageentity/storageentity-remove.js +43 -51
- package/dist/m365/spo/commands/storageentity/storageentity-set.js +33 -36
- package/dist/m365/spo/commands/tenant/tenant-appcatalog-add.js +21 -22
- package/dist/m365/spo/commands/tenant/tenant-appcatalogurl-get.js +32 -22
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-list.js +39 -35
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-remove.js +56 -62
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +24 -22
- package/dist/m365/spo/commands/tenant/tenant-settings-list.js +57 -53
- package/dist/m365/spo/commands/tenant/tenant-settings-set.js +56 -66
- package/dist/m365/spo/commands/term/term-add.js +98 -103
- package/dist/m365/spo/commands/term/term-get.js +49 -53
- package/dist/m365/spo/commands/term/term-group-add.js +74 -81
- package/dist/m365/spo/commands/term/term-group-get.js +36 -39
- package/dist/m365/spo/commands/term/term-group-list.js +43 -39
- package/dist/m365/spo/commands/term/term-list.js +40 -43
- package/dist/m365/spo/commands/term/term-set-add.js +84 -89
- package/dist/m365/spo/commands/term/term-set-get.js +38 -41
- package/dist/m365/spo/commands/term/term-set-list.js +39 -42
- package/dist/m365/spo/commands/theme/theme-apply.js +56 -60
- package/dist/m365/spo/commands/theme/theme-get.js +39 -34
- package/dist/m365/spo/commands/theme/theme-list.js +36 -26
- package/dist/m365/spo/commands/theme/theme-remove.js +47 -39
- package/dist/m365/spo/commands/theme/theme-set.js +33 -34
- package/dist/m365/spo/commands/user/user-get.js +33 -30
- package/dist/m365/spo/commands/user/user-list.js +25 -22
- package/dist/m365/spo/commands/user/user-remove.js +42 -41
- package/dist/m365/spo/commands/userprofile/userprofile-get.js +25 -24
- package/dist/m365/spo/commands/userprofile/userprofile-set.js +42 -34
- package/dist/m365/spo/commands/web/web-add.js +74 -99
- package/dist/m365/spo/commands/web/web-clientsidewebpart-list.js +31 -28
- package/dist/m365/spo/commands/web/web-get.js +23 -20
- package/dist/m365/spo/commands/web/web-installedlanguage-list.js +22 -19
- package/dist/m365/spo/commands/web/web-list.js +26 -23
- package/dist/m365/spo/commands/web/web-reindex.js +44 -55
- package/dist/m365/spo/commands/web/web-remove.js +36 -35
- package/dist/m365/spo/commands/web/web-roleassignment-add.js +30 -31
- package/dist/m365/spo/commands/web/web-roleassignment-remove.js +44 -46
- package/dist/m365/spo/commands/web/web-roleinheritance-reset.js +37 -36
- package/dist/m365/spo/commands/web/web-set.js +53 -48
- package/dist/m365/spo/commands.js +4 -0
- package/dist/m365/teams/commands/app/app-install.js +33 -30
- package/dist/m365/teams/commands/app/app-list.js +19 -15
- package/dist/m365/teams/commands/app/app-publish.js +23 -20
- package/dist/m365/teams/commands/app/app-remove.js +32 -31
- package/dist/m365/teams/commands/app/app-uninstall.js +31 -30
- package/dist/m365/teams/commands/app/app-update.js +23 -20
- package/dist/m365/teams/commands/cache/cache-remove.js +25 -24
- package/dist/m365/teams/commands/channel/channel-add.js +13 -10
- package/dist/m365/teams/commands/channel/channel-get.js +27 -29
- package/dist/m365/teams/commands/channel/channel-list.js +20 -18
- package/dist/m365/teams/commands/channel/channel-member-add.js +21 -26
- package/dist/m365/teams/commands/channel/channel-member-list.js +24 -25
- package/dist/m365/teams/commands/channel/channel-member-remove.js +31 -30
- package/dist/m365/teams/commands/channel/channel-member-set.js +30 -35
- package/dist/m365/teams/commands/channel/channel-remove.js +58 -61
- package/dist/m365/teams/commands/channel/channel-set.js +29 -26
- package/dist/m365/teams/commands/chat/chat-get.js +11 -8
- package/dist/m365/teams/commands/chat/chat-list.js +13 -10
- package/dist/m365/teams/commands/chat/chat-member-list.js +14 -10
- package/dist/m365/teams/commands/chat/chat-message-list.js +30 -26
- package/dist/m365/teams/commands/chat/chat-message-send.js +15 -11
- package/dist/m365/teams/commands/funsettings/funsettings-list.js +19 -16
- package/dist/m365/teams/commands/funsettings/funsettings-set.js +28 -23
- package/dist/m365/teams/commands/guestsettings/guestsettings-list.js +19 -16
- package/dist/m365/teams/commands/guestsettings/guestsettings-set.js +25 -20
- package/dist/m365/teams/commands/membersettings/membersettings-list.js +19 -16
- package/dist/m365/teams/commands/membersettings/membersettings-set.js +25 -20
- package/dist/m365/teams/commands/message/message-get.js +20 -17
- package/dist/m365/teams/commands/message/message-list.js +22 -18
- package/dist/m365/teams/commands/message/message-reply-list.js +19 -15
- package/dist/m365/teams/commands/messagingsettings/messagingsettings-list.js +19 -16
- package/dist/m365/teams/commands/messagingsettings/messagingsettings-set.js +26 -21
- package/dist/m365/teams/commands/report/report-directroutingcalls.js +21 -18
- package/dist/m365/teams/commands/report/report-pstncalls.js +21 -18
- package/dist/m365/teams/commands/tab/tab-add.js +23 -20
- package/dist/m365/teams/commands/tab/tab-get.js +25 -30
- package/dist/m365/teams/commands/tab/tab-list.js +18 -14
- package/dist/m365/teams/commands/tab/tab-remove.js +34 -31
- package/dist/m365/teams/commands/team/team-add.js +53 -55
- package/dist/m365/teams/commands/team/team-archive.js +24 -21
- package/dist/m365/teams/commands/team/team-clone.js +34 -29
- package/dist/m365/teams/commands/team/team-get.js +20 -19
- package/dist/m365/teams/commands/team/team-list.js +29 -19
- package/dist/m365/teams/commands/team/team-remove.js +33 -34
- package/dist/m365/teams/commands/team/team-set.js +24 -19
- package/dist/m365/teams/commands/team/team-unarchive.js +21 -18
- package/dist/m365/teams/commands/user/user-app-add.js +23 -18
- package/dist/m365/teams/commands/user/user-app-list.js +31 -31
- package/dist/m365/teams/commands/user/user-app-remove.js +33 -32
- package/dist/m365/teams/commands/user/user-list.js +21 -22
- package/dist/m365/tenant/commands/id/id-get.js +37 -26
- package/dist/m365/tenant/commands/report/report-office365activationcounts.js +38 -24
- package/dist/m365/tenant/commands/report/report-office365activationsusercounts.js +38 -24
- package/dist/m365/tenant/commands/report/report-office365activationsuserdetail.js +38 -24
- package/dist/m365/tenant/commands/security/security-alerts-list.js +19 -7
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-get.js +19 -7
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-list.js +19 -7
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-get.js +26 -14
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-list.js +24 -12
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-get.js +20 -17
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-list.js +24 -12
- package/dist/m365/todo/commands/list/list-add.js +31 -19
- package/dist/m365/todo/commands/list/list-list.js +20 -8
- package/dist/m365/todo/commands/list/list-remove.js +57 -49
- package/dist/m365/todo/commands/list/list-set.js +34 -22
- package/dist/m365/todo/commands/task/task-add.js +32 -22
- package/dist/m365/todo/commands/task/task-list.js +33 -23
- package/dist/m365/todo/commands/task/task-remove.js +57 -49
- package/dist/m365/todo/commands/task/task-set.js +22 -21
- package/dist/m365/util/commands/accesstoken/accesstoken-get.js +26 -14
- package/dist/m365/viva/commands/connections/connections-app-create.js +104 -106
- package/dist/m365/yammer/commands/group/group-list.js +11 -8
- package/dist/m365/yammer/commands/group/group-user-add.js +21 -16
- package/dist/m365/yammer/commands/group/group-user-remove.js +39 -38
- package/dist/m365/yammer/commands/message/message-add.js +27 -24
- package/dist/m365/yammer/commands/message/message-get.js +18 -15
- package/dist/m365/yammer/commands/message/message-like-set.js +45 -46
- package/dist/m365/yammer/commands/message/message-list.js +24 -21
- package/dist/m365/yammer/commands/message/message-remove.js +31 -30
- package/dist/m365/yammer/commands/network/network-list.js +29 -17
- package/dist/m365/yammer/commands/user/user-get.js +25 -22
- package/dist/m365/yammer/commands/user/user-list.js +11 -8
- package/dist/m365/yammer/commands/yammer-search.js +76 -73
- package/dist/request.js +4 -4
- package/dist/utils/cache.js +81 -0
- package/dist/utils/pid.js +57 -0
- package/dist/utils/spo.js +7 -6
- package/docs/docs/cmd/aad/user/user-signin-list.md +1 -1
- package/docs/docs/cmd/onedrive/report/report-activityusercounts.md +1 -1
- package/docs/docs/cmd/outlook/mail/mail-send.md +25 -10
- package/docs/docs/cmd/planner/task/task-checklistitem-list.md +1 -1
- package/docs/docs/cmd/planner/task/task-reference-add.md +1 -1
- package/docs/docs/cmd/search/externalconnection/externalconnection-remove.md +1 -1
- package/docs/docs/cmd/spo/contenttype/contenttype-set.md +45 -0
- package/docs/docs/cmd/spo/file/file-roleinheritance-reset.md +39 -0
- package/docs/docs/cmd/spo/folder/folder-get.md +13 -4
- package/docs/docs/cmd/spo/folder/folder-roleinheritance-reset.md +36 -0
- package/docs/docs/cmd/spo/list/list-roleassignment-add.md +1 -1
- package/docs/docs/cmd/spo/list/list-roleassignment-remove.md +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-roleassignment-remove.md +1 -1
- package/docs/docs/cmd/spo/roledefinition/roledefinition-add.md +43 -0
- package/docs/docs/cmd/spo/site/site-apppermission-add.md +1 -1
- package/docs/docs/cmd/spo/site/site-apppermission-set.md +1 -1
- package/docs/docs/cmd/spo/web/web-roleassignment-add.md +5 -5
- package/docs/docs/cmd/spo/web/web-roleassignment-remove.md +5 -5
- package/docs/docs/cmd/spo/web/web-roleinheritance-reset.md +1 -1
- package/docs/docs/cmd/teams/cache/cache-remove.md +1 -1
- package/docs/docs/cmd/teams/channel/channel-add.md +1 -1
- package/docs/docs/cmd/teams/channel/channel-list.md +1 -1
- package/docs/docs/cmd/teams/channel/channel-member-add.md +5 -5
- package/docs/docs/cmd/teams/channel/channel-member-remove.md +1 -1
- package/docs/docs/cmd/teams/channel/channel-member-set.md +2 -2
- package/docs/docs/cmd/teams/funsettings/funsettings-set.md +6 -6
- package/docs/docs/cmd/tenant/security/security-alerts-list.md +1 -1
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-get.md +1 -1
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-list.md +1 -1
- package/npm-shrinkwrap.json +342 -357
- package/package.json +24 -18
- package/dist/cli/index.js +0 -21
- package/dist/utils/index.js +0 -31
package/dist/utils/spo.js
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.spo = void 0;
|
|
4
4
|
const url = require("url");
|
|
5
|
-
const
|
|
5
|
+
const urlUtil_1 = require("./urlUtil");
|
|
6
|
+
const validation_1 = require("./validation");
|
|
6
7
|
const Auth_1 = require("../Auth");
|
|
7
8
|
const config_1 = require("../config");
|
|
8
9
|
const base_permissions_1 = require("../m365/spo/base-permissions");
|
|
@@ -20,7 +21,7 @@ exports.spo = {
|
|
|
20
21
|
},
|
|
21
22
|
ensureFormDigest(siteUrl, logger, context, debug) {
|
|
22
23
|
return new Promise((resolve, reject) => {
|
|
23
|
-
if (
|
|
24
|
+
if (validation_1.validation.isValidFormDigest(context)) {
|
|
24
25
|
if (debug) {
|
|
25
26
|
logger.logToStderr('Existing form digest still valid');
|
|
26
27
|
}
|
|
@@ -255,7 +256,7 @@ exports.spo = {
|
|
|
255
256
|
webFullUrl[webFullUrlLastCharPos] === '/') {
|
|
256
257
|
webFullUrl = webFullUrl.substring(0, webFullUrlLastCharPos);
|
|
257
258
|
}
|
|
258
|
-
folderToEnsure =
|
|
259
|
+
folderToEnsure = urlUtil_1.urlUtil.getWebRelativePath(webFullUrl, folderToEnsure);
|
|
259
260
|
if (debug) {
|
|
260
261
|
logger.log(`folderToEnsure`);
|
|
261
262
|
logger.log(folderToEnsure);
|
|
@@ -282,7 +283,7 @@ exports.spo = {
|
|
|
282
283
|
// append the next sub-folder to the folder path and check if it exists
|
|
283
284
|
prevFolder = nextFolder;
|
|
284
285
|
nextFolder += `/${folders[folderIndex]}`;
|
|
285
|
-
const folderServerRelativeUrl =
|
|
286
|
+
const folderServerRelativeUrl = urlUtil_1.urlUtil.getServerRelativePath(webFullUrl, nextFolder);
|
|
286
287
|
const requestOptions = {
|
|
287
288
|
url: `${webFullUrl}/_api/web/GetFolderByServerRelativeUrl('${encodeURIComponent(folderServerRelativeUrl)}')`,
|
|
288
289
|
headers: {
|
|
@@ -296,7 +297,7 @@ exports.spo = {
|
|
|
296
297
|
checkOrAddFolder(resolve, reject);
|
|
297
298
|
})
|
|
298
299
|
.catch(() => {
|
|
299
|
-
const prevFolderServerRelativeUrl =
|
|
300
|
+
const prevFolderServerRelativeUrl = urlUtil_1.urlUtil.getServerRelativePath(webFullUrl, prevFolder);
|
|
300
301
|
const requestOptions = {
|
|
301
302
|
url: `${webFullUrl}/_api/web/GetFolderByServerRelativePath(DecodedUrl=@a1)/AddSubFolderUsingPath(DecodedUrl=@a2)?@a1=%27${encodeURIComponent(prevFolderServerRelativeUrl)}%27&@a2=%27${encodeURIComponent(folders[folderIndex])}%27`,
|
|
302
303
|
headers: {
|
|
@@ -402,7 +403,7 @@ exports.spo = {
|
|
|
402
403
|
* @param formDigestValue formDigestValue
|
|
403
404
|
*/
|
|
404
405
|
getFolderIdentity(webObjectIdentity, webUrl, siteRelativeUrl, formDigestValue) {
|
|
405
|
-
const serverRelativePath =
|
|
406
|
+
const serverRelativePath = urlUtil_1.urlUtil.getServerRelativePath(webUrl, siteRelativeUrl);
|
|
406
407
|
const requestOptions = {
|
|
407
408
|
url: `${webUrl}/_vti_bin/client.svc/ProcessQuery`,
|
|
408
409
|
headers: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# outlook mail send
|
|
2
2
|
|
|
3
|
-
Sends an
|
|
3
|
+
Sends an email
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
@@ -11,10 +11,16 @@ m365 outlook mail send [options]
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
13
|
`-s, --subject <subject>`
|
|
14
|
-
:
|
|
14
|
+
: Email subject
|
|
15
15
|
|
|
16
16
|
`-t, --to <to>`
|
|
17
|
-
: Comma-separated list of
|
|
17
|
+
: Comma-separated list of emails to send the message to.
|
|
18
|
+
|
|
19
|
+
`--cc [cc]`
|
|
20
|
+
: Comma-separated list of CC recipients for the message.
|
|
21
|
+
|
|
22
|
+
`--bcc [bcc]`
|
|
23
|
+
: Comma-separated list of BCC recipients for the message.
|
|
18
24
|
|
|
19
25
|
`--sender [sender]`
|
|
20
26
|
: Optional upn or user id to specify what account to send the message from. Also see the remarks section.
|
|
@@ -23,13 +29,16 @@ m365 outlook mail send [options]
|
|
|
23
29
|
: Specify this option to send the email on behalf of another mailbox, for example a shared mailbox, group or distribution list. The sender needs to be a delegate on the specified mailbox. Also see the remarks section.
|
|
24
30
|
|
|
25
31
|
`--bodyContents <bodyContents>`
|
|
26
|
-
: String containing the body of the
|
|
32
|
+
: String containing the body of the email to send.
|
|
27
33
|
|
|
28
34
|
`--bodyContentType [bodyContentType]`
|
|
29
|
-
: Type of the body content. Available options: `Text,HTML`. Default `Text
|
|
35
|
+
: Type of the body content. Available options: `Text,HTML`. Default `Text`.
|
|
36
|
+
|
|
37
|
+
`--importance [importance]`
|
|
38
|
+
: The importance of the message. Available options: `low`, `normal` or `high`. Default is `normal`.
|
|
30
39
|
|
|
31
40
|
`--saveToSentItems [saveToSentItems]`
|
|
32
|
-
: Save
|
|
41
|
+
: Save email in the sent items folder. Default `true`.
|
|
33
42
|
|
|
34
43
|
--8<-- "docs/cmd/_global.md"
|
|
35
44
|
|
|
@@ -54,25 +63,25 @@ The sent email can optionally be saved in the sent folder of that user account.
|
|
|
54
63
|
|
|
55
64
|
## Examples
|
|
56
65
|
|
|
57
|
-
Send a text
|
|
66
|
+
Send a text email to the specified email address
|
|
58
67
|
|
|
59
68
|
```sh
|
|
60
69
|
m365 outlook mail send --to chris@contoso.com --subject "DG2000 Data Sheets" --bodyContents "The latest data sheets are in the team site"
|
|
61
70
|
```
|
|
62
71
|
|
|
63
|
-
Send an HTML
|
|
72
|
+
Send an HTML email to the specified email addresses
|
|
64
73
|
|
|
65
74
|
```sh
|
|
66
75
|
m365 outlook mail send --to "chris@contoso.com,brian@contoso.com" --subject "DG2000 Data Sheets" --bodyContents "The latest data sheets are in the <a href='https://contoso.sharepoint.com/sites/marketing'>team site</a>" --bodyContentType HTML
|
|
67
76
|
```
|
|
68
77
|
|
|
69
|
-
Send an HTML
|
|
78
|
+
Send an HTML email to the specified email address loading email contents from a file on disk
|
|
70
79
|
|
|
71
80
|
```sh
|
|
72
81
|
m365 outlook mail send --to chris@contoso.com --subject "DG2000 Data Sheets" --bodyContents @email.html --bodyContentType HTML
|
|
73
82
|
```
|
|
74
83
|
|
|
75
|
-
Send a text
|
|
84
|
+
Send a text email to the specified email address. Don't store the email in sent items
|
|
76
85
|
|
|
77
86
|
```sh
|
|
78
87
|
m365 outlook mail send --to chris@contoso.com --subject "DG2000 Data Sheets" --bodyContents "The latest data sheets are in the team site" --saveToSentItems false
|
|
@@ -95,3 +104,9 @@ Send an email as another user, on behalf of a shared mailbox
|
|
|
95
104
|
```sh
|
|
96
105
|
m365 outlook mail send --to chris@contoso.com --subject "DG2000 Data Sheets" --bodyContents "The latest data sheets are in the team site" --sender svc_project@contoso.com --mailbox sales@contoso.com
|
|
97
106
|
```
|
|
107
|
+
|
|
108
|
+
Send an email with cc and bcc recipients marked as important
|
|
109
|
+
|
|
110
|
+
```sh
|
|
111
|
+
m365 outlook mail send --to chris@contoso.com --cc claire@contoso.com --bcc randy@contoso.com --subject "DG2000 Data Sheets" --bodyContents "The latest data sheets are in the team site" --importance high
|
|
112
|
+
```
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# spo contenttype set
|
|
2
|
+
|
|
3
|
+
Update existing content type
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 spo contenttype set [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-u, --webUrl <webUrl>`
|
|
14
|
+
: URL of the site where the content type to update is defined.
|
|
15
|
+
|
|
16
|
+
`-i, --id [id]`
|
|
17
|
+
: ID of the content type to update. Specify `id` or `name` but not both, one is required.
|
|
18
|
+
|
|
19
|
+
`-n, name [name]`
|
|
20
|
+
: Name of the content type to update. Specify the `id` or the `name` but not both, one is required.
|
|
21
|
+
|
|
22
|
+
`--listTitle [listTitle]`
|
|
23
|
+
: Title of the list if you want to update a list content type. Specify either `listTitle`, `listId` or `listUrl`.
|
|
24
|
+
|
|
25
|
+
`--listId [listId]`
|
|
26
|
+
: ID of the list if you want to update a list content type. Specify either `listTitle`, `listId` or `listUrl`.
|
|
27
|
+
|
|
28
|
+
`--listUrl [listUrl]`
|
|
29
|
+
: URL of the list if you want to update a list content type. Specify either `listTitle`, `listId` or `listUrl`.
|
|
30
|
+
|
|
31
|
+
--8<-- "docs/cmd/_global.md"
|
|
32
|
+
|
|
33
|
+
## Examples
|
|
34
|
+
|
|
35
|
+
Move site content type to a different group
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
m365 spo contenttype set --id 0x001001 --webUrl https://contoso.sharepoint.com --Group "My group"
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Rename list content type
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
m365 spo contenttype set --name "My old item" --webUrl https://contoso.sharepoint.com --listTitle "My list" --Name "My item"
|
|
45
|
+
```
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# spo file roleinheritance reset
|
|
2
|
+
|
|
3
|
+
Restores the role inheritance of a file
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 spo file roleinheritance reset [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-u, --webUrl <webUrl>`
|
|
14
|
+
: URL of the site where the file is located
|
|
15
|
+
|
|
16
|
+
`--fileUrl [fileUrl]`
|
|
17
|
+
: The server-relative URL of the file to retrieve. Specify either `fileUrl` or `fileId` but not both
|
|
18
|
+
|
|
19
|
+
`i, --fileId [fileId]`
|
|
20
|
+
: The UniqueId (GUID) of the file to retrieve. Specify either `fileUrl` or `fileId` but not both
|
|
21
|
+
|
|
22
|
+
`--confirm`
|
|
23
|
+
: Don't prompt for confirmation
|
|
24
|
+
|
|
25
|
+
--8<-- "docs/cmd/_global.md"
|
|
26
|
+
|
|
27
|
+
## Examples
|
|
28
|
+
|
|
29
|
+
Reset inheritance of file with id (UniqueId) _b2307a39-e878-458b-bc90-03bc578531d6_ located in site _https://contoso.sharepoint.com/sites/project-x_
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
m365 spo file roleinheritance reset --webUrl "https://contoso.sharepoint.com/sites/project-x" --fileId "b2307a39-e878-458b-bc90-03bc578531d6"
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Reset inheritance of file with server-relative url _/sites/project-x/documents/Test1_.docx located in site _https://contoso.sharepoint.com/sites/project-x_. It will **not** prompt for confirmation before resetting.
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
m365 spo file roleinheritance reset --webUrl "https://contoso.sharepoint.com/sites/project-x" --fileUrl "/sites/project-x/documents/Test1.docx" --confirm
|
|
39
|
+
```
|
|
@@ -13,8 +13,11 @@ m365 spo folder get [options]
|
|
|
13
13
|
`-u, --webUrl <webUrl>`
|
|
14
14
|
: The URL of the site where the folder is located
|
|
15
15
|
|
|
16
|
-
`-f, --url
|
|
17
|
-
:
|
|
16
|
+
`-f, --url [url]`
|
|
17
|
+
: The server-relative URL of the folder to retrieve. Specify either `folderUrl` or `id` but not both
|
|
18
|
+
|
|
19
|
+
`-i, --id [id]`
|
|
20
|
+
: The UniqueId (GUID) of the folder to retrieve. Specify either `url` or `id` but not both
|
|
18
21
|
|
|
19
22
|
--8<-- "docs/cmd/_global.md"
|
|
20
23
|
|
|
@@ -24,8 +27,14 @@ If no folder exists at the specified URL, you will get a `Please check the folde
|
|
|
24
27
|
|
|
25
28
|
## Examples
|
|
26
29
|
|
|
27
|
-
Get folder properties for folder with
|
|
30
|
+
Get folder properties for folder with server-relative url _'/Shared Documents'_ located in site _https://contoso.sharepoint.com/sites/project-x_
|
|
31
|
+
|
|
32
|
+
```sh
|
|
33
|
+
m365 spo folder get --webUrl https://contoso.sharepoint.com/sites/project-x --url "/Shared Documents"
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Get folder properties for folder with id (UniqueId) _b2307a39-e878-458b-bc90-03bc578531d6_ located in site _https://contoso.sharepoint.com/sites/project-x_
|
|
28
37
|
|
|
29
38
|
```sh
|
|
30
|
-
m365 spo folder get --webUrl https://contoso.sharepoint.com/sites/project-x --
|
|
39
|
+
m365 spo folder get --webUrl https://contoso.sharepoint.com/sites/project-x --id "b2307a39-e878-458b-bc90-03bc578531d6"
|
|
31
40
|
```
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# spo folder roleinheritance reset
|
|
2
|
+
|
|
3
|
+
Restores the role inheritance of a folder.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 spo folder roleinheritance reset [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-u, --webUrl <webUrl>`
|
|
14
|
+
: URL of the site where the folder is located.
|
|
15
|
+
|
|
16
|
+
`-f, --folderUrl <folderUrl>`
|
|
17
|
+
: The site-relative URL of the folder.
|
|
18
|
+
|
|
19
|
+
`--confirm`
|
|
20
|
+
: Don't prompt for confirmation to reset role inheritance of the folder.
|
|
21
|
+
|
|
22
|
+
--8<-- "docs/cmd/_global.md"
|
|
23
|
+
|
|
24
|
+
## Examples
|
|
25
|
+
|
|
26
|
+
Reset inheritance of folder with site-relative url _Shared Documents/TestFolder_ located in site _https://contoso.sharepoint.com/sites/project-x_.
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
m365 spo folder roleinheritance reset --webUrl "https://contoso.sharepoint.com/sites/project-x" --folderUrl "Shared Documents/TestFolder"
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Reset inheritance of folder with site-relative url _Shared Documents/TestFolder_ located in site _https://contoso.sharepoint.com/sites/project-x_. It will **not** prompt for confirmation before resetting.
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
m365 spo folder roleinheritance reset --webUrl "https://contoso.sharepoint.com/sites/project-x" --folderUrl "Shared Documents/TestFolder" --confirm
|
|
36
|
+
```
|
|
@@ -75,4 +75,4 @@ add role assignment to list _someList_ located in site _https://contoso.sharepoi
|
|
|
75
75
|
|
|
76
76
|
```sh
|
|
77
77
|
m365 spo list roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "someList" --principalId 11 --roleDefinitionName "Full Control"
|
|
78
|
-
```
|
|
78
|
+
```
|
|
@@ -64,4 +64,4 @@ Remove roleassignment from listitem getting list by url based on principal Id wi
|
|
|
64
64
|
|
|
65
65
|
```sh
|
|
66
66
|
m365 spo listitem roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --listUrl '/sites/contoso-sales/lists/Events' --listItemId 1 --principalId 2 --confirm
|
|
67
|
-
```
|
|
67
|
+
```
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# spo roledefinition add
|
|
2
|
+
|
|
3
|
+
Adds a new roledefinition to web
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 spo roledefinition add [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-u, --webUrl <webUrl>`
|
|
14
|
+
: URL of the site to which role should be added
|
|
15
|
+
|
|
16
|
+
`-n, --name <name>`
|
|
17
|
+
: role definition name
|
|
18
|
+
|
|
19
|
+
`-d, --description [description]`
|
|
20
|
+
: role definition description
|
|
21
|
+
|
|
22
|
+
`--rights [rights]`
|
|
23
|
+
: A case-sensitive string array that contain the permissions needed for the custom action. Allowed values `EmptyMask,ViewListItems,AddListItems,EditListItems,DeleteListItems,ApproveItems,OpenItems,ViewVersions,DeleteVersions,CancelCheckout,ManagePersonalViews,ManageLists,ViewFormPages,AnonymousSearchAccessList,Open,ViewPages,AddAndCustomizePages,ApplyThemeAndBorder,ApplyStyleSheets,ViewUsageData,CreateSSCSite,ManageSubwebs,CreateGroups,ManagePermissions,BrowseDirectories,BrowseUserInfo,AddDelPrivateWebParts,UpdatePersonalWebParts,ManageWeb,AnonymousSearchAccessWebLists,UseClientIntegration,UseRemoteAPIs,ManageAlerts,CreateAlerts,EditMyUserInfo,EnumeratePermissions,FullMask`. Default `EmptyMask`
|
|
24
|
+
|
|
25
|
+
--8<-- "docs/cmd/_global.md"
|
|
26
|
+
|
|
27
|
+
## Remarks
|
|
28
|
+
|
|
29
|
+
The `--rights` option accepts **case-sensitive** values.
|
|
30
|
+
|
|
31
|
+
## Examples
|
|
32
|
+
|
|
33
|
+
Adds the role definition for site _https://contoso.sharepoint.com/sites/project-x_ with name _test_
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
m365 spo roledefinition add --webUrl https://contoso.sharepoint.com/sites/project-x --name test
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Adds the role definition for site _https://contoso.sharepoint.com/sites/project-x_ with name _test_ and description _test description_ and rights _ViewListItems,AddListItems,EditListItems,DeleteListItems_
|
|
40
|
+
|
|
41
|
+
```sh
|
|
42
|
+
m365 spo roledefinition add --webUrl https://contoso.sharepoint.com/sites/project-x --name test --description "test description" --rights "ViewListItems,AddListItems,EditListItems,DeleteListItems"
|
|
43
|
+
```
|
|
@@ -14,7 +14,7 @@ m365 spo site apppermission add [options]
|
|
|
14
14
|
: URL of the site collection to add the permission
|
|
15
15
|
|
|
16
16
|
`-p, --permission <permission>`
|
|
17
|
-
: Permission to site (`read`, `write`, or `
|
|
17
|
+
: Permission to site (`read`, `write`, `manage` or `fullcontrol`)
|
|
18
18
|
|
|
19
19
|
`-i, --appId [appId]`
|
|
20
20
|
: Client ID of the Azure AD app for which to grant permissions
|
|
@@ -23,7 +23,7 @@ m365 spo site apppermission set [options]
|
|
|
23
23
|
: Display name of the Azure AD app for which to update permissions. Specify `id`, `appId` or `appDisplayName`
|
|
24
24
|
|
|
25
25
|
`-p, --permission <permission>`
|
|
26
|
-
: Permission to site (`read`, `write`, or `
|
|
26
|
+
: Permission to site (`read`, `write`, `manage` or `fullcontrol`)
|
|
27
27
|
|
|
28
28
|
--8<-- "docs/cmd/_global.md"
|
|
29
29
|
|
|
@@ -35,23 +35,23 @@ m365 spo web roleassignment add [options]
|
|
|
35
35
|
add role assignment to site _https://contoso.sharepoint.com/sites/project-x_for principal id _11_ and role definition id _1073741829_
|
|
36
36
|
|
|
37
37
|
```sh
|
|
38
|
-
m365 spo
|
|
38
|
+
m365 spo web roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --principalId 11 --roleDefinitionId 1073741829
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
add role assignment to site _https://contoso.sharepoint.com/sites/project-x_for upn _someaccount@tenant.onmicrosoft.com_ and role definition id _1073741829_
|
|
42
42
|
|
|
43
43
|
```sh
|
|
44
|
-
m365 spo
|
|
44
|
+
m365 spo web roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --upn "someaccount@tenant.onmicrosoft.com" --roleDefinitionId 1073741829
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
add role assignment to site _https://contoso.sharepoint.com/sites/project-x_for group _someGroup_ and role definition id _1073741829_
|
|
48
48
|
|
|
49
49
|
```sh
|
|
50
|
-
m365 spo
|
|
50
|
+
m365 spo web roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --groupName "someGroup" --roleDefinitionId 1073741829
|
|
51
51
|
```
|
|
52
52
|
|
|
53
53
|
add role assignment to site _https://contoso.sharepoint.com/sites/project-x_for principal id _11_ and role definition name _Full Control_
|
|
54
54
|
|
|
55
55
|
```sh
|
|
56
|
-
m365 spo
|
|
57
|
-
```
|
|
56
|
+
m365 spo web roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --principalId 11 --roleDefinitionName "Full Control"
|
|
57
|
+
```
|
|
@@ -32,23 +32,23 @@ m365 spo web roleassignment remove [options]
|
|
|
32
32
|
Remove roleassignment from web based on group name
|
|
33
33
|
|
|
34
34
|
```sh
|
|
35
|
-
m365 spo
|
|
35
|
+
m365 spo web roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --groupName "saleGroup"
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
Remove roleassignment from web based on principal Id
|
|
39
39
|
|
|
40
40
|
```sh
|
|
41
|
-
m365 spo
|
|
41
|
+
m365 spo web roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --principalId 2
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
Remove roleassignment from web based on upn
|
|
45
45
|
|
|
46
46
|
```sh
|
|
47
|
-
m365 spo
|
|
47
|
+
m365 spo web roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --upn "someaccount@tenant.onmicrosoft.com"
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
Remove roleassignment from web based on principal Id without prompting for confirmation
|
|
51
51
|
|
|
52
52
|
```sh
|
|
53
|
-
m365 spo
|
|
54
|
-
```
|
|
53
|
+
m365 spo web roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --principalId 2 --confirm
|
|
54
|
+
```
|
|
@@ -43,4 +43,4 @@ m365 teams cache remove
|
|
|
43
43
|
|
|
44
44
|
## More information
|
|
45
45
|
|
|
46
|
-
- [Clear the Teams client cache guidance](https://docs.microsoft.com/microsoftteams/troubleshoot/teams-administration/clear-teams-cache)
|
|
46
|
+
- [Clear the Teams client cache guidance](https://docs.microsoft.com/microsoftteams/troubleshoot/teams-administration/clear-teams-cache)
|
|
@@ -17,7 +17,7 @@ m365 teams channel list [options]
|
|
|
17
17
|
: The display name of the team to list the channels of. Specify either `teamId` or `teamName` but not both
|
|
18
18
|
|
|
19
19
|
`--type [type]`
|
|
20
|
-
: Filter the results to only channels of a given type: `standard
|
|
20
|
+
: Filter the results to only channels of a given type: `standard`, `private`, `shared`. By default all channels are listed.
|
|
21
21
|
|
|
22
22
|
--8<-- "docs/cmd/_global.md"
|
|
23
23
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# teams channel member add
|
|
2
2
|
|
|
3
|
-
Adds a specified member in the specified Microsoft Teams private team channel
|
|
3
|
+
Adds a specified member in the specified Microsoft Teams private or shared team channel
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
@@ -17,10 +17,10 @@ m365 teams channel member add [options]
|
|
|
17
17
|
: The name of the team where the channel is located. Specify either `teamId` or `teamName`, but not both.
|
|
18
18
|
|
|
19
19
|
`-c, --channelId [channelId]`
|
|
20
|
-
: The
|
|
20
|
+
: The Id of the Microsoft Teams team channel. Specify either `channelId` or `channelName`, but not both.
|
|
21
21
|
|
|
22
22
|
`--channelName [channelName]`
|
|
23
|
-
: The
|
|
23
|
+
: The display name of the Microsoft Teams team channel. Specify either `channelId` or `channelName`, but not both.
|
|
24
24
|
|
|
25
25
|
`--userId [userId]`
|
|
26
26
|
: The user's ID or principal name. You can also pass a comma separated list of userIds.
|
|
@@ -35,9 +35,9 @@ m365 teams channel member add [options]
|
|
|
35
35
|
|
|
36
36
|
## Remarks
|
|
37
37
|
|
|
38
|
-
At least one owner must be assigned to a private channel.
|
|
38
|
+
At least one owner must be assigned to a private or shared channel.
|
|
39
39
|
|
|
40
|
-
You can only add members and owners of a
|
|
40
|
+
You can only add members and owners of a team to a private channel.
|
|
41
41
|
|
|
42
42
|
## Examples
|
|
43
43
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# teams channel member set
|
|
2
2
|
|
|
3
|
-
Updates the role of the specified member in the specified Microsoft Teams private team channel
|
|
3
|
+
Updates the role of the specified member in the specified Microsoft Teams private or shared team channel
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
@@ -48,4 +48,4 @@ Updates the role of the user with id 00000000-0000-0000-0000-000000000000 to mem
|
|
|
48
48
|
|
|
49
49
|
```sh
|
|
50
50
|
m365 teams channel member set --teamName "Team Name" --channelName "Channel Name" --userId 00000000-0000-0000-0000-000000000000 --role member
|
|
51
|
-
```
|
|
51
|
+
```
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
#
|
|
1
|
+
# teams funsettings set
|
|
2
2
|
|
|
3
3
|
Updates fun settings of a Microsoft Teams team
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
|
-
m365
|
|
8
|
+
m365 teams funsettings set [options]
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Options
|
|
@@ -32,23 +32,23 @@ m365 graph teams funsettings set [options]
|
|
|
32
32
|
Allow giphy usage within a given Microsoft Teams team, setting the content rating for giphy to Moderate
|
|
33
33
|
|
|
34
34
|
```sh
|
|
35
|
-
m365
|
|
35
|
+
m365 teams funsettings set --teamId 83cece1e-938d-44a1-8b86-918cf6151957 --allowGiphy true --giphyContentRating Moderate
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
Disable usage of giphy within a given Microsoft Teams team
|
|
39
39
|
|
|
40
40
|
```sh
|
|
41
|
-
m365
|
|
41
|
+
m365 teams funsettings set --teamId 83cece1e-938d-44a1-8b86-918cf6151957 --allowGiphy false
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
Allow usage of stickers and memes within a given Microsoft Teams team
|
|
45
45
|
|
|
46
46
|
```sh
|
|
47
|
-
m365
|
|
47
|
+
m365 teams funsettings set --teamId 83cece1e-938d-44a1-8b86-918cf6151957 --allowStickersAndMemes true
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
Disable usage custom memes within a given Microsoft Teams team
|
|
51
51
|
|
|
52
52
|
```sh
|
|
53
|
-
m365
|
|
53
|
+
m365 teams funsettings set --teamId 83cece1e-938d-44a1-8b86-918cf6151957 --allowCustomMemes false
|
|
54
54
|
```
|