@pnp/cli-microsoft365 6.0.0-beta.e7c60af → 6.0.0-beta.eb11cbe
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/LICENSE +1 -3
- package/dist/Command.js +16 -2
- package/dist/cli/Cli.js +7 -10
- package/dist/m365/aad/commands/app/app-add.js +40 -17
- package/dist/m365/aad/commands/app/app-get.js +3 -2
- package/dist/m365/aad/commands/app/app-list.js +38 -0
- package/dist/m365/aad/commands/app/app-remove.js +3 -2
- package/dist/m365/aad/commands/app/app-role-add.js +3 -2
- package/dist/m365/aad/commands/app/app-role-list.js +3 -2
- package/dist/m365/aad/commands/app/app-role-remove.js +3 -2
- package/dist/m365/aad/commands/app/app-set.js +3 -2
- package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +5 -4
- package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +3 -2
- package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +5 -4
- package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +2 -1
- package/dist/m365/aad/commands/o365group/o365group-list.js +3 -2
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-list.js +3 -2
- package/dist/m365/aad/commands/o365group/o365group-teamify.js +3 -2
- package/dist/m365/aad/commands/o365group/o365group-user-add.js +2 -1
- package/dist/m365/aad/commands/o365group/o365group-user-remove.js +2 -1
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-list.js +2 -1
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-remove.js +2 -1
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-set.js +2 -1
- package/dist/m365/aad/commands/sp/sp-add.js +3 -2
- package/dist/m365/aad/commands/sp/sp-get.js +3 -2
- package/dist/m365/aad/commands/user/user-get.js +6 -4
- package/dist/m365/aad/commands/user/user-guest-add.js +103 -0
- package/dist/m365/aad/commands/user/user-hibp.js +2 -1
- package/dist/m365/aad/commands/user/user-list.js +2 -1
- package/dist/m365/aad/commands/user/user-set.js +2 -1
- package/dist/m365/aad/commands/user/user-signin-list.js +5 -4
- package/dist/m365/aad/commands.js +2 -0
- package/dist/m365/adaptivecard/commands/adaptivecard-send.js +4 -4
- package/dist/m365/base/DateAndPeriodBasedReport.js +3 -2
- package/dist/m365/base/PeriodBasedReport.js +2 -1
- package/dist/m365/base/SpoCommand.js +12 -11
- package/dist/m365/booking/commands/business/business-get.js +2 -1
- package/dist/m365/cli/commands/config/config-set.js +1 -0
- package/dist/m365/commands/login.js +6 -1
- package/dist/m365/commands/status.js +6 -1
- package/dist/m365/file/commands/file-list.js +2 -1
- package/dist/m365/flow/commands/environment/environment-get.js +2 -1
- package/dist/m365/flow/commands/flow-disable.js +2 -1
- package/dist/m365/flow/commands/flow-enable.js +2 -1
- package/dist/m365/flow/commands/flow-export.js +5 -4
- package/dist/m365/flow/commands/flow-get.js +2 -1
- package/dist/m365/flow/commands/flow-list.js +2 -1
- package/dist/m365/flow/commands/flow-remove.js +2 -1
- package/dist/m365/flow/commands/run/run-cancel.js +2 -1
- package/dist/m365/flow/commands/run/run-get.js +2 -1
- package/dist/m365/flow/commands/run/run-list.js +2 -1
- package/dist/m365/flow/commands/run/run-resubmit.js +3 -2
- package/dist/m365/outlook/commands/mail/mail-send.js +56 -31
- package/dist/m365/outlook/commands/message/message-get.js +97 -0
- package/dist/m365/outlook/commands/message/message-list.js +2 -1
- package/dist/m365/outlook/commands/message/message-move.js +2 -1
- package/dist/m365/outlook/commands.js +1 -0
- package/dist/m365/pa/commands/app/app-get.js +2 -1
- package/dist/m365/pa/commands/app/app-list.js +2 -1
- package/dist/m365/pa/commands/app/app-remove.js +2 -1
- package/dist/m365/pa/commands/connector/connector-export.js +2 -1
- package/dist/m365/pa/commands/connector/connector-list.js +2 -1
- package/dist/m365/pa/commands/environment/environment-get.js +2 -1
- package/dist/m365/planner/commands/bucket/bucket-get.js +4 -7
- package/dist/m365/planner/commands/plan/plan-get.js +11 -31
- package/dist/m365/planner/commands/task/task-add.js +1 -1
- package/dist/m365/planner/commands/task/task-checklistitem-add.js +3 -2
- package/dist/m365/planner/commands/task/task-checklistitem-list.js +2 -1
- package/dist/m365/planner/commands/task/task-checklistitem-remove.js +2 -1
- package/dist/m365/planner/commands/task/task-get.js +2 -1
- package/dist/m365/planner/commands/task/task-list.js +4 -3
- package/dist/m365/planner/commands/task/task-reference-add.js +2 -2
- package/dist/m365/planner/commands/task/task-reference-list.js +2 -1
- package/dist/m365/planner/commands/task/task-reference-remove.js +1 -1
- package/dist/m365/planner/commands/task/task-set.js +2 -2
- package/dist/m365/pp/commands/card/card-clone.js +122 -0
- package/dist/m365/pp/commands/card/card-get.js +110 -0
- package/dist/m365/pp/commands/card/card-remove.js +130 -0
- package/dist/m365/pp/commands/dataverse/dataverse-table-get.js +77 -0
- package/dist/m365/pp/commands/dataverse/dataverse-table-remove.js +95 -0
- package/dist/m365/pp/commands/gateway/gateway-get.js +71 -0
- package/dist/m365/pp/commands/managementapp/managementapp-add.js +3 -2
- package/dist/m365/pp/commands/solution/solution-get.js +117 -0
- package/dist/m365/pp/commands/solution/solution-list.js +5 -11
- package/dist/m365/pp/commands/solution/solution-publisher-get.js +107 -0
- package/dist/m365/pp/commands/solution/solution-publisher-list.js +78 -0
- package/dist/m365/pp/commands/solution/solution-publisher-remove.js +130 -0
- package/dist/m365/pp/commands/solution/solution-remove.js +130 -0
- package/dist/m365/pp/commands.js +11 -0
- package/dist/m365/search/commands/externalconnection/externalconnection-get.js +3 -2
- package/dist/m365/search/commands/externalconnection/externalconnection-remove.js +3 -2
- package/dist/m365/spfx/commands/project/project-doctor/{doctor-1.16.0-beta.1.js → doctor-1.16.0.js} +6 -6
- package/dist/m365/spfx/commands/project/project-doctor.js +5 -2
- package/dist/m365/spfx/commands/project/project-externalize.js +4 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010001_YORC_version.js +2 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010002_YORC_isCreatingSolution.js +2 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010003_YORC_packageManager.js +2 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010004_YORC_componentType.js +2 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010005_YORC_environment.js +2 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010006_YORC_framework.js +3 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010007_YORC_isDomainIsolated.js +2 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010008_YORC_nodeVersion.js +2 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010009_YORC_sdkVersions_microsoft_graph_client.js +56 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010010_YORC_sdkVersions_teams_js.js +56 -0
- package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.16.0-beta.1.js → upgrade-1.16.0.js} +44 -28
- package/dist/m365/spfx/commands/project/project-upgrade.js +17 -16
- package/dist/m365/spfx/commands/spfx-doctor.js +6 -6
- package/dist/m365/spo/commands/app/app-get.js +2 -1
- package/dist/m365/spo/commands/app/app-install.js +2 -1
- package/dist/m365/spo/commands/app/app-remove.js +2 -1
- package/dist/m365/spo/commands/app/app-retract.js +2 -1
- package/dist/m365/spo/commands/app/app-teamspackage-download.js +2 -1
- package/dist/m365/spo/commands/app/app-uninstall.js +2 -1
- package/dist/m365/spo/commands/app/app-upgrade.js +2 -1
- package/dist/m365/spo/commands/contenttype/contenttype-add.js +82 -43
- package/dist/m365/spo/commands/contenttype/contenttype-field-remove.js +53 -21
- package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +2 -2
- package/dist/m365/spo/commands/contenttype/contenttype-get.js +35 -14
- package/dist/m365/spo/commands/contenttype/contenttype-list.js +2 -1
- package/dist/m365/spo/commands/contenttype/contenttype-remove.js +3 -2
- package/dist/m365/spo/commands/customaction/customaction-get.js +3 -2
- package/dist/m365/spo/commands/customaction/customaction-remove.js +3 -2
- package/dist/m365/spo/commands/customaction/customaction-set.js +2 -1
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-get.js +43 -27
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-list.js +4 -3
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-remove.js +43 -58
- package/dist/m365/spo/commands/field/field-add.js +26 -1
- package/dist/m365/spo/commands/field/field-set.js +23 -13
- package/dist/m365/spo/commands/file/file-add.js +14 -13
- package/dist/m365/spo/commands/file/file-checkin.js +4 -3
- package/dist/m365/spo/commands/file/file-checkout.js +3 -2
- package/dist/m365/spo/commands/file/file-copy.js +2 -1
- package/dist/m365/spo/commands/file/file-get.js +30 -3
- package/dist/m365/spo/commands/file/file-move.js +2 -1
- package/dist/m365/spo/commands/file/file-remove.js +3 -2
- package/dist/m365/spo/commands/file/file-rename.js +3 -2
- package/dist/m365/spo/commands/file/file-roleassignment-add.js +1 -15
- package/dist/m365/spo/commands/file/file-sharinginfo-get.js +1 -1
- package/dist/m365/spo/commands/file/file-version-clear.js +114 -0
- package/dist/m365/spo/commands/file/file-version-get.js +104 -0
- package/dist/m365/spo/commands/file/file-version-list.js +96 -0
- package/dist/m365/spo/commands/file/file-version-remove.js +119 -0
- package/dist/m365/spo/commands/file/file-version-restore.js +119 -0
- package/dist/m365/spo/commands/folder/folder-get.js +30 -4
- package/dist/m365/spo/commands/folder/folder-list.js +35 -12
- package/dist/m365/spo/commands/folder/folder-remove.js +2 -1
- package/dist/m365/spo/commands/folder/folder-roleassignment-add.js +215 -0
- package/dist/m365/spo/commands/folder/folder-roleassignment-remove.js +2 -1
- package/dist/m365/spo/commands/folder/folder-roleinheritance-break.js +11 -1
- package/dist/m365/spo/commands/folder/folder-roleinheritance-reset.js +12 -1
- package/dist/m365/spo/commands/group/group-get.js +3 -2
- package/dist/m365/spo/commands/group/{group-user-add.js → group-member-add.js} +17 -16
- package/dist/m365/spo/commands/group/{group-user-list.js → group-member-list.js} +19 -18
- package/dist/m365/spo/commands/group/{group-user-remove.js → group-member-remove.js} +18 -17
- package/dist/m365/spo/commands/hubsite/hubsite-connect.js +93 -18
- package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +69 -13
- package/dist/m365/spo/commands/list/list-contenttype-remove.js +1 -1
- package/dist/m365/spo/commands/list/list-get.js +14 -6
- package/dist/m365/spo/commands/list/list-label-get.js +34 -22
- package/dist/m365/spo/commands/list/list-roleassignment-add.js +5 -23
- package/dist/m365/spo/commands/list/list-roleassignment-remove.js +4 -15
- package/dist/m365/spo/commands/list/list-roleinheritance-break.js +14 -6
- package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +14 -6
- package/dist/m365/spo/commands/list/list-set.js +31 -8
- package/dist/m365/spo/commands/list/list-sitescript-get.js +35 -24
- package/dist/m365/spo/commands/list/list-view-field-add.js +20 -6
- package/dist/m365/spo/commands/list/list-view-field-remove.js +19 -5
- package/dist/m365/spo/commands/list/list-view-field-set.js +19 -5
- package/dist/m365/spo/commands/list/list-view-list.js +14 -10
- package/dist/m365/spo/commands/list/list-view-remove.js +17 -8
- package/dist/m365/spo/commands/list/list-view-set.js +19 -7
- package/dist/m365/spo/commands/list/list-webhook-get.js +2 -3
- package/dist/m365/spo/commands/list/list-webhook-list.js +4 -28
- package/dist/m365/spo/commands/list/list-webhook-set.js +11 -12
- package/dist/m365/spo/commands/listitem/listitem-add.js +24 -14
- package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +18 -8
- package/dist/m365/spo/commands/listitem/listitem-get.js +44 -11
- package/dist/m365/spo/commands/listitem/listitem-isrecord.js +20 -10
- package/dist/m365/spo/commands/listitem/listitem-list.js +24 -17
- package/dist/m365/spo/commands/listitem/listitem-record-declare.js +19 -12
- package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +24 -21
- package/dist/m365/spo/commands/listitem/listitem-remove.js +19 -11
- package/dist/m365/spo/commands/listitem/listitem-roleassignment-add.js +239 -0
- package/dist/m365/spo/commands/listitem/listitem-roleassignment-remove.js +4 -15
- package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +13 -5
- package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +13 -5
- package/dist/m365/spo/commands/listitem/listitem-set.js +52 -44
- package/dist/m365/spo/commands/page/Page.js +3 -2
- package/dist/m365/spo/commands/page/page-add.js +2 -1
- package/dist/m365/spo/commands/page/page-clientsidewebpart-add.js +8 -10
- package/dist/m365/spo/commands/page/page-control-get.js +2 -1
- package/dist/m365/spo/commands/page/page-control-list.js +2 -1
- package/dist/m365/spo/commands/page/page-control-set.js +3 -2
- package/dist/m365/spo/commands/page/page-get.js +2 -1
- package/dist/m365/spo/commands/page/page-header-set.js +6 -5
- package/dist/m365/spo/commands/page/page-section-add.js +4 -3
- package/dist/m365/spo/commands/page/page-set.js +38 -4
- package/dist/m365/spo/commands/roledefinition/roledefinition-list.js +15 -2
- package/dist/m365/spo/commands/site/site-add.js +4 -11
- package/dist/m365/spo/commands/site/site-apppermission-add.js +3 -2
- package/dist/m365/spo/commands/site/site-hubsite-connect.js +76 -0
- package/dist/m365/spo/commands/site/site-hubsite-disconnect.js +93 -0
- package/dist/m365/spo/commands/{hubsite/hubsite-theme-sync.js → site/site-hubsite-theme-sync.js} +11 -11
- package/dist/m365/spo/commands/site/site-rename.js +2 -1
- package/dist/m365/spo/commands/site/site-set.js +1 -1
- package/dist/m365/spo/commands/sitedesign/sitedesign-get.js +4 -7
- package/dist/m365/spo/commands/sitescript/sitescript-add.js +2 -1
- package/dist/m365/spo/commands/spo-search.js +3 -2
- package/dist/m365/spo/commands/storageentity/storageentity-get.js +2 -1
- package/dist/m365/spo/commands/user/user-get.js +4 -3
- package/dist/m365/spo/commands/user/user-remove.js +2 -1
- package/dist/m365/spo/commands/userprofile/userprofile-get.js +2 -1
- package/dist/m365/spo/commands/web/web-add.js +2 -1
- package/dist/m365/spo/commands/web/web-get.js +24 -1
- package/dist/m365/spo/commands/web/web-roleassignment-add.js +4 -15
- package/dist/m365/spo/commands/web/web-roleassignment-remove.js +4 -8
- package/dist/m365/spo/commands/web/web-roleinheritance-break.js +100 -0
- package/dist/m365/spo/commands.js +14 -4
- package/dist/m365/teams/commands/Meeting.js +3 -0
- package/dist/m365/teams/commands/app/app-install.js +3 -2
- package/dist/m365/teams/commands/app/app-list.js +2 -1
- package/dist/m365/teams/commands/app/app-publish.js +14 -15
- package/dist/m365/teams/commands/app/app-update.js +2 -1
- package/dist/m365/teams/commands/cache/cache-remove.js +41 -10
- package/dist/m365/teams/commands/channel/channel-get.js +6 -5
- package/dist/m365/teams/commands/channel/channel-member-add.js +4 -3
- package/dist/m365/teams/commands/channel/channel-member-list.js +2 -1
- package/dist/m365/teams/commands/channel/channel-member-remove.js +2 -1
- package/dist/m365/teams/commands/channel/channel-member-set.js +2 -1
- package/dist/m365/teams/commands/channel/channel-remove.js +57 -39
- package/dist/m365/teams/commands/channel/channel-set.js +58 -19
- package/dist/m365/teams/commands/chat/chat-get.js +2 -1
- package/dist/m365/teams/commands/chat/chatUtil.js +2 -1
- package/dist/m365/teams/commands/funsettings/funsettings-list.js +2 -1
- package/dist/m365/teams/commands/funsettings/funsettings-set.js +2 -1
- package/dist/m365/teams/commands/guestsettings/guestsettings-list.js +2 -1
- package/dist/m365/teams/commands/guestsettings/guestsettings-set.js +2 -1
- package/dist/m365/teams/commands/meeting/meeting-list.js +153 -0
- package/dist/m365/teams/commands/membersettings/membersettings-list.js +2 -1
- package/dist/m365/teams/commands/membersettings/membersettings-set.js +2 -1
- package/dist/m365/teams/commands/messagingsettings/messagingsettings-list.js +2 -1
- package/dist/m365/teams/commands/messagingsettings/messagingsettings-set.js +2 -1
- package/dist/m365/teams/commands/report/report-directroutingcalls.js +3 -2
- package/dist/m365/teams/commands/report/report-pstncalls.js +3 -2
- package/dist/m365/teams/commands/tab/tab-add.js +2 -1
- package/dist/m365/teams/commands/tab/tab-get.js +4 -3
- package/dist/m365/teams/commands/tab/tab-list.js +2 -1
- package/dist/m365/teams/commands/tab/tab-remove.js +2 -1
- package/dist/m365/teams/commands/team/team-archive.js +6 -8
- package/dist/m365/teams/commands/team/team-clone.js +2 -1
- package/dist/m365/teams/commands/team/team-get.js +2 -1
- package/dist/m365/teams/commands/team/team-remove.js +5 -4
- package/dist/m365/teams/commands/team/team-set.js +2 -8
- package/dist/m365/teams/commands/team/team-unarchive.js +5 -4
- package/dist/m365/teams/commands/user/user-app-list.js +3 -2
- package/dist/m365/teams/commands.js +1 -0
- package/dist/m365/tenant/commands/security/security-alerts-list.js +2 -1
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-get.js +2 -1
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-list.js +2 -1
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-list.js +2 -1
- package/dist/m365/todo/commands/list/list-get.js +89 -0
- package/dist/m365/todo/commands/task/task-add.js +55 -3
- package/dist/m365/todo/commands/task/task-get.js +108 -0
- package/dist/m365/todo/commands/task/task-set.js +2 -1
- package/dist/m365/todo/commands.js +2 -0
- package/dist/m365/yammer/commands/group/group-list.js +12 -27
- package/dist/m365/yammer/commands/user/user-get.js +3 -2
- package/dist/m365/yammer/commands/yammer-search.js +6 -2
- package/dist/utils/aadGroup.js +2 -1
- package/dist/utils/md.js +8 -1
- package/dist/utils/powerPlatform.js +3 -2
- package/dist/utils/spo.js +3 -2
- package/docs/docs/_clisettings.md +18 -0
- package/docs/docs/cmd/aad/app/app-add.md +19 -19
- package/docs/docs/cmd/aad/app/app-list.md +149 -0
- package/docs/docs/cmd/aad/user/user-guest-add.md +107 -0
- package/docs/docs/cmd/adaptivecard/adaptivecard-send.md +12 -5
- package/docs/docs/cmd/app/app-get.md +156 -0
- package/docs/docs/cmd/app/app-open.md +21 -1
- package/docs/docs/cmd/app/permission/permission-list.md +43 -0
- package/docs/docs/cmd/booking/business/business-get.md +107 -0
- package/docs/docs/cmd/booking/business/business-list.md +34 -0
- package/docs/docs/cmd/flow/environment/environment-get.md +100 -0
- package/docs/docs/cmd/flow/environment/environment-list.md +97 -0
- package/docs/docs/cmd/flow/flow-disable.md +7 -3
- package/docs/docs/cmd/flow/flow-enable.md +4 -0
- package/docs/docs/cmd/flow/flow-export.md +20 -0
- package/docs/docs/cmd/flow/flow-get.md +373 -1
- package/docs/docs/cmd/flow/flow-list.md +107 -0
- package/docs/docs/cmd/flow/flow-remove.md +4 -0
- package/docs/docs/cmd/flow/run/run-cancel.md +4 -0
- package/docs/docs/cmd/flow/run/run-get.md +72 -0
- package/docs/docs/cmd/flow/run/run-list.md +68 -0
- package/docs/docs/cmd/flow/run/run-resubmit.md +4 -0
- package/docs/docs/cmd/graph/schemaextension/schemaextension-add.md +4 -11
- package/docs/docs/cmd/graph/schemaextension/schemaextension-set.md +4 -10
- package/docs/docs/cmd/outlook/mail/mail-send.md +13 -0
- package/docs/docs/cmd/outlook/message/message-get.md +48 -0
- package/docs/docs/cmd/pa/app/app-get.md +184 -0
- package/docs/docs/cmd/pa/app/app-list.md +181 -0
- package/docs/docs/cmd/pa/app/app-remove.md +4 -0
- package/docs/docs/cmd/pa/connector/connector-export.md +4 -0
- package/docs/docs/cmd/pa/connector/connector-list.md +89 -0
- package/docs/docs/cmd/pa/environment/environment-get.md +113 -0
- package/docs/docs/cmd/pa/environment/environment-list.md +109 -0
- package/docs/docs/cmd/pa/pcf/pcf-init.md +4 -0
- package/docs/docs/cmd/pa/solution/solution-init.md +5 -0
- package/docs/docs/cmd/pa/solution/solution-reference-add.md +4 -0
- package/docs/docs/cmd/planner/bucket/bucket-add.md +29 -0
- package/docs/docs/cmd/planner/bucket/bucket-get.md +29 -0
- package/docs/docs/cmd/planner/bucket/bucket-list.md +30 -0
- package/docs/docs/cmd/planner/bucket/bucket-remove.md +4 -0
- package/docs/docs/cmd/planner/bucket/bucket-set.md +4 -0
- package/docs/docs/cmd/planner/plan/plan-add.md +123 -0
- package/docs/docs/cmd/planner/plan/plan-get.md +77 -8
- package/docs/docs/cmd/planner/plan/plan-list.md +45 -0
- package/docs/docs/cmd/planner/plan/plan-remove.md +4 -0
- package/docs/docs/cmd/planner/task/task-get.md +0 -3
- package/docs/docs/cmd/pp/card/card-clone.md +77 -0
- package/docs/docs/cmd/pp/card/card-get.md +122 -0
- package/docs/docs/cmd/pp/card/card-list.md +71 -0
- package/docs/docs/cmd/pp/card/card-remove.md +82 -0
- package/docs/docs/cmd/pp/dataverse/dataverse-table-get.md +120 -0
- package/docs/docs/cmd/pp/dataverse/dataverse-table-list.md +85 -0
- package/docs/docs/cmd/pp/dataverse/dataverse-table-remove.md +49 -0
- package/docs/docs/cmd/pp/environment/environment-get.md +308 -0
- package/docs/docs/cmd/pp/environment/environment-list.md +312 -0
- package/docs/docs/cmd/pp/gateway/gateway-get.md +56 -0
- package/docs/docs/cmd/pp/gateway/gateway-list.md +35 -0
- package/docs/docs/cmd/pp/managementapp/managementapp-add.md +23 -0
- package/docs/docs/cmd/pp/managementapp/managementapp-list.md +27 -0
- package/docs/docs/cmd/pp/solution/solution-get.md +86 -0
- package/docs/docs/cmd/pp/solution/solution-list.md +37 -0
- package/docs/docs/cmd/pp/solution/solution-publisher-get.md +83 -0
- package/docs/docs/cmd/pp/solution/solution-publisher-list.md +71 -0
- package/docs/docs/cmd/pp/solution/solution-publisher-remove.md +58 -0
- package/docs/docs/cmd/pp/solution/solution-remove.md +82 -0
- package/docs/docs/cmd/pp/tenant/tenant-settings-list.md +62 -0
- package/docs/docs/cmd/spfx/package/package-generate.md +4 -0
- package/docs/docs/cmd/spfx/project/project-doctor.md +92 -0
- package/docs/docs/cmd/spfx/project/project-externalize.md +116 -0
- package/docs/docs/cmd/spfx/project/project-rename.md +6 -15
- package/docs/docs/cmd/spfx/project/project-upgrade.md +101 -1
- package/docs/docs/cmd/spfx/spfx-doctor.md +38 -0
- package/docs/docs/cmd/spo/contenttype/contenttype-add.md +20 -2
- package/docs/docs/cmd/spo/contenttype/contenttype-field-remove.md +22 -4
- package/docs/docs/cmd/spo/contenttype/contenttype-get.md +21 -3
- package/docs/docs/cmd/spo/customaction/customaction-add.md +3 -0
- package/docs/docs/cmd/spo/customaction/customaction-set.md +3 -2
- package/docs/docs/cmd/spo/eventreceiver/eventreceiver-get.md +42 -2
- package/docs/docs/cmd/spo/eventreceiver/eventreceiver-remove.md +6 -1
- package/docs/docs/cmd/spo/field/field-add.md +20 -2
- package/docs/docs/cmd/spo/field/field-set.md +15 -3
- package/docs/docs/cmd/spo/file/file-get.md +219 -8
- package/docs/docs/cmd/spo/file/file-roleassignment-add.md +9 -9
- package/docs/docs/cmd/spo/file/file-roleassignment-remove.md +3 -3
- package/docs/docs/cmd/spo/file/file-version-clear.md +55 -0
- package/docs/docs/cmd/spo/file/file-version-get.md +76 -0
- package/docs/docs/cmd/spo/file/file-version-list.md +76 -0
- package/docs/docs/cmd/spo/file/file-version-remove.md +58 -0
- package/docs/docs/cmd/spo/file/file-version-restore.md +58 -0
- package/docs/docs/cmd/spo/folder/folder-get.md +11 -0
- package/docs/docs/cmd/spo/folder/folder-list.md +45 -0
- package/docs/docs/cmd/spo/folder/folder-roleassignment-add.md +59 -0
- package/docs/docs/cmd/spo/folder/folder-roleinheritance-break.md +6 -0
- package/docs/docs/cmd/spo/folder/folder-roleinheritance-reset.md +6 -0
- package/docs/docs/cmd/spo/group/{group-user-add.md → group-member-add.md} +11 -11
- package/docs/docs/cmd/spo/group/{group-user-list.md → group-member-list.md} +5 -5
- package/docs/docs/cmd/spo/group/group-member-remove.md +39 -0
- package/docs/docs/cmd/spo/homesite/homesite-get.md +31 -0
- package/docs/docs/cmd/spo/homesite/homesite-remove.md +20 -0
- package/docs/docs/cmd/spo/homesite/homesite-set.md +20 -0
- package/docs/docs/cmd/spo/hubsite/hubsite-connect.md +36 -14
- package/docs/docs/cmd/spo/hubsite/hubsite-data-get.md +57 -3
- package/docs/docs/cmd/spo/hubsite/hubsite-disconnect.md +28 -12
- package/docs/docs/cmd/spo/hubsite/hubsite-get.md +89 -0
- package/docs/docs/cmd/spo/hubsite/hubsite-list.md +94 -0
- package/docs/docs/cmd/spo/hubsite/hubsite-register.md +55 -2
- package/docs/docs/cmd/spo/hubsite/hubsite-rights-grant.md +6 -5
- package/docs/docs/cmd/spo/hubsite/hubsite-rights-revoke.md +6 -5
- package/docs/docs/cmd/spo/hubsite/hubsite-set.md +47 -5
- package/docs/docs/cmd/spo/hubsite/hubsite-unregister.md +6 -2
- package/docs/docs/cmd/spo/knowledgehub/knowledgehub-get.md +20 -0
- package/docs/docs/cmd/spo/knowledgehub/knowledgehub-remove.md +20 -0
- package/docs/docs/cmd/spo/knowledgehub/knowledgehub-set.md +20 -0
- package/docs/docs/cmd/spo/list/list-add.md +133 -0
- package/docs/docs/cmd/spo/list/list-contenttype-add.md +88 -1
- package/docs/docs/cmd/spo/list/list-contenttype-default-set.md +4 -0
- package/docs/docs/cmd/spo/list/list-contenttype-list.md +60 -0
- package/docs/docs/cmd/spo/list/list-contenttype-remove.md +4 -0
- package/docs/docs/cmd/spo/list/list-get.md +154 -6
- package/docs/docs/cmd/spo/list/list-label-get.md +83 -7
- package/docs/docs/cmd/spo/list/list-label-set.md +4 -0
- package/docs/docs/cmd/spo/list/list-list.md +89 -0
- package/docs/docs/cmd/spo/list/list-remove.md +4 -0
- package/docs/docs/cmd/spo/list/list-roleassignment-add.md +13 -9
- package/docs/docs/cmd/spo/list/list-roleassignment-remove.md +12 -8
- package/docs/docs/cmd/spo/list/list-roleinheritance-break.md +15 -8
- package/docs/docs/cmd/spo/list/list-roleinheritance-reset.md +20 -7
- package/docs/docs/cmd/spo/list/list-set.md +22 -6
- package/docs/docs/cmd/spo/list/list-sitescript-get.md +94 -8
- package/docs/docs/cmd/spo/list/list-view-add.md +121 -0
- package/docs/docs/cmd/spo/list/list-view-field-add.md +17 -4
- package/docs/docs/cmd/spo/list/list-view-field-remove.md +15 -2
- package/docs/docs/cmd/spo/list/list-view-field-set.md +21 -2
- package/docs/docs/cmd/spo/list/list-view-get.md +121 -0
- package/docs/docs/cmd/spo/list/list-view-list.md +94 -7
- package/docs/docs/cmd/spo/list/list-view-remove.md +16 -3
- package/docs/docs/cmd/spo/list/list-view-set.md +24 -6
- package/docs/docs/cmd/spo/list/list-webhook-add.md +33 -0
- package/docs/docs/cmd/spo/list/list-webhook-get.md +34 -1
- package/docs/docs/cmd/spo/list/list-webhook-list.md +35 -9
- package/docs/docs/cmd/spo/list/list-webhook-remove.md +4 -0
- package/docs/docs/cmd/spo/list/list-webhook-set.md +11 -4
- package/docs/docs/cmd/spo/listitem/listitem-add.md +70 -2
- package/docs/docs/cmd/spo/listitem/listitem-attachment-list.md +45 -2
- package/docs/docs/cmd/spo/listitem/listitem-get.md +198 -5
- package/docs/docs/cmd/spo/listitem/listitem-isrecord.md +31 -2
- package/docs/docs/cmd/spo/listitem/listitem-list.md +58 -8
- package/docs/docs/cmd/spo/listitem/listitem-record-declare.md +36 -4
- package/docs/docs/cmd/spo/listitem/listitem-record-undeclare.md +15 -2
- package/docs/docs/cmd/spo/listitem/listitem-remove.md +15 -2
- package/docs/docs/cmd/spo/listitem/listitem-roleassignment-add.md +85 -0
- package/docs/docs/cmd/spo/listitem/listitem-roleassignment-remove.md +12 -8
- package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-break.md +12 -5
- package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-reset.md +12 -5
- package/docs/docs/cmd/spo/listitem/listitem-set.md +66 -4
- package/docs/docs/cmd/spo/mail/mail-send.md +4 -0
- package/docs/docs/cmd/spo/navigation/navigation-node-add.md +39 -0
- package/docs/docs/cmd/spo/navigation/navigation-node-list.md +29 -0
- package/docs/docs/cmd/spo/navigation/navigation-node-remove.md +4 -0
- package/docs/docs/cmd/spo/page/page-add.md +2 -2
- package/docs/docs/cmd/spo/page/page-clientsidewebpart-add.md +14 -19
- package/docs/docs/cmd/spo/page/page-control-set.md +2 -1
- package/docs/docs/cmd/spo/page/page-set.md +15 -2
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-add.md +3 -1
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-list.md +3 -1
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-revoke.md +3 -3
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-approve.md +3 -3
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-deny.md +3 -3
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-list.md +3 -1
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-set.md +3 -3
- package/docs/docs/cmd/spo/site/site-add.md +0 -3
- package/docs/docs/cmd/spo/site/site-hubsite-connect.md +37 -0
- package/docs/docs/cmd/spo/site/site-hubsite-disconnect.md +37 -0
- package/docs/docs/cmd/spo/site/site-hubsite-theme-sync.md +28 -0
- package/docs/docs/cmd/spo/sitedesign/sitedesign-get.md +2 -2
- package/docs/docs/cmd/spo/spo-get.md +23 -0
- package/docs/docs/cmd/spo/spo-search.md +29 -0
- package/docs/docs/cmd/spo/spo-set.md +4 -0
- package/docs/docs/cmd/spo/term/term-add.md +5 -0
- package/docs/docs/cmd/spo/term/term-set-add.md +6 -1
- package/docs/docs/cmd/spo/user/user-get.md +49 -2
- package/docs/docs/cmd/spo/user/user-list.md +41 -0
- package/docs/docs/cmd/spo/user/user-remove.md +4 -0
- package/docs/docs/cmd/spo/userprofile/userprofile-get.md +586 -0
- package/docs/docs/cmd/spo/userprofile/userprofile-set.md +4 -0
- package/docs/docs/cmd/spo/web/web-add.md +43 -0
- package/docs/docs/cmd/spo/web/web-clientsidewebpart-list.md +29 -0
- package/docs/docs/cmd/spo/web/web-get.md +385 -2
- package/docs/docs/cmd/spo/web/web-installedlanguage-list.md +29 -0
- package/docs/docs/cmd/spo/web/web-list.md +81 -0
- package/docs/docs/cmd/spo/web/web-reindex.md +4 -0
- package/docs/docs/cmd/spo/web/web-remove.md +4 -0
- package/docs/docs/cmd/spo/web/web-roleassignment-add.md +10 -6
- package/docs/docs/cmd/spo/web/web-roleassignment-remove.md +8 -4
- package/docs/docs/cmd/spo/web/web-roleinheritance-break.md +44 -0
- package/docs/docs/cmd/spo/web/web-roleinheritance-reset.md +4 -0
- package/docs/docs/cmd/spo/web/web-set.md +4 -0
- package/docs/docs/cmd/teams/app/app-install.md +4 -0
- package/docs/docs/cmd/teams/app/app-list.md +30 -0
- package/docs/docs/cmd/teams/app/app-publish.md +31 -1
- package/docs/docs/cmd/teams/app/app-remove.md +4 -0
- package/docs/docs/cmd/teams/app/app-uninstall.md +4 -0
- package/docs/docs/cmd/teams/app/app-update.md +4 -0
- package/docs/docs/cmd/teams/cache/cache-remove.md +4 -0
- package/docs/docs/cmd/teams/channel/channel-add.md +37 -0
- package/docs/docs/cmd/teams/channel/channel-get.md +46 -7
- package/docs/docs/cmd/teams/channel/channel-list.md +35 -0
- package/docs/docs/cmd/teams/channel/channel-member-add.md +4 -0
- package/docs/docs/cmd/teams/channel/channel-member-list.md +37 -0
- package/docs/docs/cmd/teams/channel/channel-member-remove.md +4 -0
- package/docs/docs/cmd/teams/channel/channel-member-set.md +35 -0
- package/docs/docs/cmd/teams/channel/channel-remove.md +16 -9
- package/docs/docs/cmd/teams/channel/channel-set.md +16 -6
- package/docs/docs/cmd/teams/chat/chat-get.md +42 -0
- package/docs/docs/cmd/teams/chat/chat-list.md +38 -0
- package/docs/docs/cmd/teams/chat/chat-member-list.md +35 -0
- package/docs/docs/cmd/teams/chat/chat-message-list.md +60 -0
- package/docs/docs/cmd/teams/chat/chat-message-send.md +4 -0
- package/docs/docs/cmd/teams/funsettings/funsettings-list.md +29 -0
- package/docs/docs/cmd/teams/funsettings/funsettings-set.md +4 -0
- package/docs/docs/cmd/teams/guestsettings/guestsettings-list.md +25 -0
- package/docs/docs/cmd/teams/guestsettings/guestsettings-set.md +4 -0
- package/docs/docs/cmd/teams/meeting/meeting-list.md +149 -0
- package/docs/docs/cmd/teams/membersettings/membersettings-list.md +33 -0
- package/docs/docs/cmd/teams/membersettings/membersettings-set.md +4 -0
- package/docs/docs/cmd/teams/message/message-get.md +80 -0
- package/docs/docs/cmd/teams/message/message-list.md +63 -0
- package/docs/docs/cmd/teams/message/message-reply-list.md +63 -0
- package/docs/docs/cmd/teams/messagingsettings/messagingsettings-list.md +31 -0
- package/docs/docs/cmd/teams/messagingsettings/messagingsettings-set.md +4 -0
- package/docs/docs/cmd/teams/report/report-deviceusagedistributionusercounts.md +35 -0
- package/docs/docs/cmd/teams/report/report-deviceusageusercounts.md +36 -0
- package/docs/docs/cmd/teams/report/report-deviceusageuserdetail.md +41 -0
- package/docs/docs/cmd/teams/report/report-directroutingcalls.md +49 -0
- package/docs/docs/cmd/teams/report/report-pstncalls.md +49 -0
- package/docs/docs/cmd/teams/report/report-useractivitycounts.md +39 -0
- package/docs/docs/cmd/teams/report/report-useractivityusercounts.md +33 -0
- package/docs/docs/cmd/teams/report/report-useractivityuserdetail.md +58 -0
- package/docs/docs/cmd/teams/tab/tab-add.md +35 -0
- package/docs/docs/cmd/teams/tab/tab-get.md +35 -0
- package/docs/docs/cmd/teams/tab/tab-list.md +43 -0
- package/docs/docs/cmd/teams/tab/tab-remove.md +4 -0
- package/docs/docs/cmd/teams/team/team-add.md +145 -0
- package/docs/docs/cmd/teams/team/team-archive.md +7 -3
- package/docs/docs/cmd/teams/team/team-clone.md +4 -3
- package/docs/docs/cmd/teams/team/team-get.md +78 -0
- package/docs/docs/cmd/teams/team/team-list.md +30 -0
- package/docs/docs/cmd/teams/team/team-remove.md +7 -3
- package/docs/docs/cmd/teams/team/team-set.md +4 -3
- package/docs/docs/cmd/teams/team/team-unarchive.md +5 -2
- package/docs/docs/cmd/teams/user/user-app-add.md +4 -0
- package/docs/docs/cmd/teams/user/user-app-list.md +40 -0
- package/docs/docs/cmd/teams/user/user-app-remove.md +4 -0
- package/docs/docs/cmd/teams/user/user-list.md +31 -0
- package/docs/docs/cmd/tenant/id/id-get.md +20 -0
- package/docs/docs/cmd/tenant/report/report-activeusercounts.md +35 -0
- package/docs/docs/cmd/tenant/report/report-activeuserdetail.md +49 -0
- package/docs/docs/cmd/tenant/report/report-office365activationcounts.md +32 -0
- package/docs/docs/cmd/tenant/report/report-office365activationsusercounts.md +30 -0
- package/docs/docs/cmd/tenant/report/report-office365activationsuserdetail.md +36 -0
- package/docs/docs/cmd/tenant/report/report-servicesusercounts.md +41 -0
- package/docs/docs/cmd/tenant/security/security-alerts-list.md +105 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-get.md +87 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-list.md +91 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-get.md +62 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-list.md +51 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-get.md +64 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-list.md +52 -0
- package/docs/docs/cmd/todo/list/list-add.md +32 -1
- package/docs/docs/cmd/todo/list/list-get.md +61 -0
- package/docs/docs/cmd/todo/list/list-list.md +31 -0
- package/docs/docs/cmd/todo/list/list-remove.md +10 -6
- package/docs/docs/cmd/todo/list/list-set.md +9 -5
- package/docs/docs/cmd/todo/task/task-add.md +88 -5
- package/docs/docs/cmd/todo/task/task-get.md +75 -0
- package/docs/docs/cmd/todo/task/task-list.md +47 -0
- package/docs/docs/cmd/todo/task/task-remove.md +9 -4
- package/docs/docs/cmd/todo/task/task-set.md +59 -5
- package/docs/docs/cmd/util/accesstoken/accesstoken-get.md +20 -0
- package/docs/docs/cmd/viva/connections/connections-app-create.md +4 -0
- package/docs/docs/cmd/yammer/group/group-list.md +65 -0
- package/docs/docs/cmd/yammer/group/group-user-add.md +4 -0
- package/docs/docs/cmd/yammer/group/group-user-remove.md +4 -0
- package/docs/docs/cmd/yammer/message/message-add.md +55 -0
- package/docs/docs/cmd/yammer/message/message-get.md +64 -0
- package/docs/docs/cmd/yammer/message/message-like-set.md +4 -0
- package/docs/docs/cmd/yammer/message/message-list.md +60 -0
- package/docs/docs/cmd/yammer/message/message-remove.md +4 -0
- package/docs/docs/cmd/yammer/network/network-list.md +96 -0
- package/docs/docs/cmd/yammer/report/report-activitycounts.md +31 -0
- package/docs/docs/cmd/yammer/report/report-activityusercounts.md +31 -0
- package/docs/docs/cmd/yammer/report/report-activityuserdetail.md +36 -0
- package/docs/docs/cmd/yammer/report/report-deviceusagedistributionusercounts.md +33 -0
- package/docs/docs/cmd/yammer/report/report-deviceusageusercounts.md +34 -0
- package/docs/docs/cmd/yammer/report/report-deviceusageuserdetail.md +38 -0
- package/docs/docs/cmd/yammer/report/report-groupsactivitycounts.md +31 -0
- package/docs/docs/cmd/yammer/report/report-groupsactivitydetail.md +37 -0
- package/docs/docs/cmd/yammer/report/report-groupsactivitygroupcounts.md +30 -0
- package/docs/docs/cmd/yammer/user/user-get.md +99 -0
- package/docs/docs/cmd/yammer/user/user-list.md +97 -0
- package/docs/docs/cmd/yammer/yammer-search.md +77 -0
- package/npm-shrinkwrap.json +235 -257
- package/package.json +27 -18
- package/docs/docs/cmd/spo/group/group-user-remove.md +0 -39
- package/docs/docs/cmd/spo/hubsite/hubsite-theme-sync.md +0 -33
|
@@ -14,10 +14,13 @@ m365 spo listitem attachment list [options]
|
|
|
14
14
|
URL of the site from which the item should be retrieved
|
|
15
15
|
|
|
16
16
|
`--listId [listId]`
|
|
17
|
-
: ID of the list
|
|
17
|
+
: ID of the list where the item should be added. Specify either `listTitle`, `listId` or `listUrl`
|
|
18
18
|
|
|
19
19
|
`--listTitle [listTitle]`
|
|
20
|
-
: Title of the list
|
|
20
|
+
: Title of the list where the item should be added. Specify either `listTitle`, `listId` or `listUrl`
|
|
21
|
+
|
|
22
|
+
`--listUrl [listUrl]`
|
|
23
|
+
: Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl`
|
|
21
24
|
|
|
22
25
|
`--itemId <itemId>`
|
|
23
26
|
ID of the list item to in question
|
|
@@ -37,3 +40,43 @@ Gets the attachments from list item with itemId _147_ in list with id _0cd891ef-
|
|
|
37
40
|
```sh
|
|
38
41
|
m365 spo listitem attachment list --webUrl https://contoso.sharepoint.com/sites/project-x --listId 0cd891ef-afce-4e55-b836-fce03286cccf --itemId 147
|
|
39
42
|
```
|
|
43
|
+
|
|
44
|
+
Gets the attachments from a specific list item in a specific list obtained by server-relative URL in a specific site
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
m365 spo listitem attachment list --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl /sites/project-x/Documents --itemId 147
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Response
|
|
51
|
+
|
|
52
|
+
=== "JSON"
|
|
53
|
+
|
|
54
|
+
```json
|
|
55
|
+
[
|
|
56
|
+
{
|
|
57
|
+
"FileName": "DummyDocument.docx",
|
|
58
|
+
"FileNameAsPath": {
|
|
59
|
+
"DecodedUrl": "DummyDocument.docx"
|
|
60
|
+
},
|
|
61
|
+
"ServerRelativePath": {
|
|
62
|
+
"DecodedUrl": "/Lists/Test/Attachments/236/DummyDocument.docx"
|
|
63
|
+
},
|
|
64
|
+
"ServerRelativeUrl": "/Lists/Test/Attachments/236/DummyDocument.docx"
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
=== "Text"
|
|
70
|
+
|
|
71
|
+
```text
|
|
72
|
+
FileName ServerRelativeUrl
|
|
73
|
+
------------------ ----------------------------------------------
|
|
74
|
+
DummyDocument.docx /Lists/Test/Attachments/236/DummyDocument.docx
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
=== "CSV"
|
|
78
|
+
|
|
79
|
+
```csv
|
|
80
|
+
FileName,ServerRelativeUrl
|
|
81
|
+
DummyDocument.docx,/Lists/Test/Attachments/236/DummyDocument.docx
|
|
82
|
+
```
|
|
@@ -17,14 +17,20 @@ m365 spo listitem get [options]
|
|
|
17
17
|
: ID of the item to retrieve.
|
|
18
18
|
|
|
19
19
|
`-l, --listId [listId]`
|
|
20
|
-
: ID of the list
|
|
20
|
+
: ID of the list where the item should be added. Specify either `listTitle`, `listId` or `listUrl`
|
|
21
21
|
|
|
22
22
|
`-t, --listTitle [listTitle]`
|
|
23
|
-
: Title of the list
|
|
23
|
+
: Title of the list where the item should be added. Specify either `listTitle`, `listId` or `listUrl`
|
|
24
|
+
|
|
25
|
+
`--listUrl [listUrl]`
|
|
26
|
+
: Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl`
|
|
24
27
|
|
|
25
28
|
`-p, --properties [properties]`
|
|
26
29
|
: Comma-separated list of properties to retrieve. Will retrieve all properties if not specified and json output is requested
|
|
27
30
|
|
|
31
|
+
`--withPermissions`
|
|
32
|
+
: Set if you want to return associated roles and permissions
|
|
33
|
+
|
|
28
34
|
--8<-- "docs/cmd/_global.md"
|
|
29
35
|
|
|
30
36
|
## Remarks
|
|
@@ -33,20 +39,207 @@ If you want to specify a lookup type in the `properties` option, define which co
|
|
|
33
39
|
|
|
34
40
|
## Examples
|
|
35
41
|
|
|
36
|
-
Get an item with ID
|
|
42
|
+
Get an item with the ID parameter from a given list in a given site
|
|
37
43
|
|
|
38
44
|
```sh
|
|
39
45
|
m365 spo listitem get --listTitle "Demo List" --id 147 --webUrl https://contoso.sharepoint.com/sites/project-x
|
|
40
46
|
```
|
|
41
47
|
|
|
42
|
-
Get an
|
|
48
|
+
Get an item columns with the ID parameter from a given list in a given site
|
|
43
49
|
|
|
44
50
|
```sh
|
|
45
51
|
m365 spo listitem get --listTitle "Demo List" --id 147 --webUrl https://contoso.sharepoint.com/sites/project-x --properties "Title,Created"
|
|
46
52
|
```
|
|
47
53
|
|
|
48
|
-
Get an
|
|
54
|
+
Get an item columns and lookup column with the ID parameter from a given list in a given site
|
|
49
55
|
|
|
50
56
|
```sh
|
|
51
57
|
m365 spo listitem get --listTitle "Demo List" --id 147 --webUrl https://contoso.sharepoint.com/sites/project-x --properties "Title,Created,Company/Title"
|
|
52
58
|
```
|
|
59
|
+
|
|
60
|
+
Get an item with specific properties from a given list based on the server-relative URL in a specific site
|
|
61
|
+
|
|
62
|
+
```sh
|
|
63
|
+
m365 spo listitem get --listUrl /sites/project-x/documents --id 147 --webUrl https://contoso.sharepoint.com/sites/project-x --properties "Title,Created,Company/Title"
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Get an item with ID parameter from a given list based on the server-relative URL in a specific site with permissions
|
|
67
|
+
|
|
68
|
+
```sh
|
|
69
|
+
m365 spo listitem get --listTitle "Demo List" --id 147 --webUrl https://contoso.sharepoint.com/sites/project-x --withPermissions
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
## Response
|
|
74
|
+
|
|
75
|
+
=== "JSON"
|
|
76
|
+
|
|
77
|
+
```json
|
|
78
|
+
{
|
|
79
|
+
"FileSystemObjectType": 0,
|
|
80
|
+
"Id": 147,
|
|
81
|
+
"ServerRedirectedEmbedUri": null,
|
|
82
|
+
"ServerRedirectedEmbedUrl": "",
|
|
83
|
+
"ContentTypeId": "0x010078BC2C6F12F0DB41BA554210A2BFA81600A320A11ABE6E90468525ECC747660126",
|
|
84
|
+
"Title": "Demo Item",
|
|
85
|
+
"Modified": "2022-10-30T10:55:37Z",
|
|
86
|
+
"Created": "2022-10-30T10:55:22Z",
|
|
87
|
+
"AuthorId": 10,
|
|
88
|
+
"EditorId": 10,
|
|
89
|
+
"OData__UIVersionString": "3.0",
|
|
90
|
+
"Attachments": false,
|
|
91
|
+
"GUID": "87f3138d-fac3-4126-97c0-543e55672261",
|
|
92
|
+
"ComplianceAssetId": null
|
|
93
|
+
}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
=== "Text"
|
|
97
|
+
|
|
98
|
+
```text
|
|
99
|
+
Attachments : false
|
|
100
|
+
AuthorId : 10
|
|
101
|
+
ComplianceAssetId : null
|
|
102
|
+
ContentTypeId : 0x010078BC2C6F12F0DB41BA554210A2BFA81600A320A11ABE6E90468525ECC747660126
|
|
103
|
+
Created : 2022-10-30T10:55:22Z
|
|
104
|
+
EditorId : 10
|
|
105
|
+
FileSystemObjectType : 0
|
|
106
|
+
GUID : 87f3138d-fac3-4126-97c0-543e55672261
|
|
107
|
+
Id : 147
|
|
108
|
+
Modified : 2022-10-30T10:55:37Z
|
|
109
|
+
OData__UIVersionString : 3.0
|
|
110
|
+
ServerRedirectedEmbedUri: null
|
|
111
|
+
ServerRedirectedEmbedUrl:
|
|
112
|
+
Title : Demo Item
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
=== "CSV"
|
|
116
|
+
|
|
117
|
+
```csv
|
|
118
|
+
FileSystemObjectType,Id,ServerRedirectedEmbedUri,ServerRedirectedEmbedUrl,ContentTypeId,Title,Modified,Created,AuthorId,EditorId,OData__UIVersionString,Attachments,GUID,ComplianceAssetId
|
|
119
|
+
0,147,,,0x010078BC2C6F12F0DB41BA554210A2BFA81600A320A11ABE6E90468525ECC747660126,Demo Item,2022-10-30T10:55:37Z,2022-10-30T10:55:22Z,10,10,3.0,,87f3138d-fac3-4126-97c0-543e55672261,
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### `withPermissions` response
|
|
123
|
+
|
|
124
|
+
When we make use of the option `withPermissions` the response will differ.
|
|
125
|
+
|
|
126
|
+
## Response
|
|
127
|
+
|
|
128
|
+
=== "JSON"
|
|
129
|
+
|
|
130
|
+
```json
|
|
131
|
+
{
|
|
132
|
+
"FileSystemObjectType": 0,
|
|
133
|
+
"Id": 147,
|
|
134
|
+
"ServerRedirectedEmbedUri": null,
|
|
135
|
+
"ServerRedirectedEmbedUrl": "",
|
|
136
|
+
"ContentTypeId": "0x010078BC2C6F12F0DB41BA554210A2BFA81600A320A11ABE6E90468525ECC747660126",
|
|
137
|
+
"Title": "Demo Item",
|
|
138
|
+
"Modified": "2022-10-30T10:55:37Z",
|
|
139
|
+
"Created": "2022-10-30T10:55:22Z",
|
|
140
|
+
"AuthorId": 10,
|
|
141
|
+
"EditorId": 10,
|
|
142
|
+
"OData__UIVersionString": "3.0",
|
|
143
|
+
"Attachments": false,
|
|
144
|
+
"GUID": "87f3138d-fac3-4126-97c0-543e55672261",
|
|
145
|
+
"ComplianceAssetId": null,
|
|
146
|
+
"RoleAssignments": [
|
|
147
|
+
{
|
|
148
|
+
"Member": {
|
|
149
|
+
"Id": 3,
|
|
150
|
+
"IsHiddenInUI": false,
|
|
151
|
+
"LoginName": "Communication site Owners",
|
|
152
|
+
"Title": "Communication site Owners",
|
|
153
|
+
"PrincipalType": 8,
|
|
154
|
+
"AllowMembersEditMembership": false,
|
|
155
|
+
"AllowRequestToJoinLeave": false,
|
|
156
|
+
"AutoAcceptRequestToJoinLeave": false,
|
|
157
|
+
"Description": null,
|
|
158
|
+
"OnlyAllowMembersViewMembership": false,
|
|
159
|
+
"OwnerTitle": "Communication site Owners",
|
|
160
|
+
"RequestToJoinLeaveEmailSetting": ""
|
|
161
|
+
},
|
|
162
|
+
"RoleDefinitionBindings": [
|
|
163
|
+
{
|
|
164
|
+
"BasePermissions": {
|
|
165
|
+
"High": "2147483647",
|
|
166
|
+
"Low": "4294967295"
|
|
167
|
+
},
|
|
168
|
+
"Description": "Has full control.",
|
|
169
|
+
"Hidden": false,
|
|
170
|
+
"Id": 1073741829,
|
|
171
|
+
"Name": "Full Control",
|
|
172
|
+
"Order": 1,
|
|
173
|
+
"RoleTypeKind": 5,
|
|
174
|
+
"BasePermissionsValue": [
|
|
175
|
+
"ViewListItems",
|
|
176
|
+
"AddListItems",
|
|
177
|
+
"EditListItems",
|
|
178
|
+
"DeleteListItems",
|
|
179
|
+
"ApproveItems",
|
|
180
|
+
"OpenItems",
|
|
181
|
+
"ViewVersions",
|
|
182
|
+
"DeleteVersions",
|
|
183
|
+
"CancelCheckout",
|
|
184
|
+
"ManagePersonalViews",
|
|
185
|
+
"ManageLists",
|
|
186
|
+
"ViewFormPages",
|
|
187
|
+
"AnonymousSearchAccessList",
|
|
188
|
+
"Open",
|
|
189
|
+
"ViewPages",
|
|
190
|
+
"AddAndCustomizePages",
|
|
191
|
+
"ApplyThemeAndBorder",
|
|
192
|
+
"ApplyStyleSheets",
|
|
193
|
+
"ViewUsageData",
|
|
194
|
+
"CreateSSCSite",
|
|
195
|
+
"ManageSubwebs",
|
|
196
|
+
"CreateGroups",
|
|
197
|
+
"ManagePermissions",
|
|
198
|
+
"BrowseDirectories",
|
|
199
|
+
"BrowseUserInfo",
|
|
200
|
+
"AddDelPrivateWebParts",
|
|
201
|
+
"UpdatePersonalWebParts",
|
|
202
|
+
"ManageWeb",
|
|
203
|
+
"AnonymousSearchAccessWebLists",
|
|
204
|
+
"UseClientIntegration",
|
|
205
|
+
"UseRemoteAPIs",
|
|
206
|
+
"ManageAlerts",
|
|
207
|
+
"CreateAlerts",
|
|
208
|
+
"EditMyUserInfo",
|
|
209
|
+
"EnumeratePermissions"
|
|
210
|
+
],
|
|
211
|
+
"RoleTypeKindValue": "Administrator"
|
|
212
|
+
}
|
|
213
|
+
],
|
|
214
|
+
"PrincipalId": 3
|
|
215
|
+
}
|
|
216
|
+
]
|
|
217
|
+
}
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
=== "Text"
|
|
221
|
+
|
|
222
|
+
```text
|
|
223
|
+
Attachments : false
|
|
224
|
+
AuthorId : 10
|
|
225
|
+
ComplianceAssetId : null
|
|
226
|
+
ContentTypeId : 0x010078BC2C6F12F0DB41BA554210A2BFA81600A320A11ABE6E90468525ECC747660126
|
|
227
|
+
Created : 2022-10-30T10:55:22Z
|
|
228
|
+
EditorId : 10
|
|
229
|
+
FileSystemObjectType : 0
|
|
230
|
+
GUID : 87f3138d-fac3-4126-97c0-543e55672261
|
|
231
|
+
Id : 147
|
|
232
|
+
Modified : 2022-10-30T10:55:37Z
|
|
233
|
+
OData__UIVersionString : 3.0
|
|
234
|
+
RoleAssignments : [{"Member":{"Id":3,"IsHiddenInUI":false,"LoginName":"Communication site Owners","Title":"Communication site Owners","PrincipalType":8,"AllowMembersEditMembership":false,"AllowRequestToJoinLeave":false,"AutoAcceptRequestToJoinLeave":false,"Description":null,"OnlyAllowMembersViewMembership":false,"OwnerTitle":"Communication site Owners","RequestToJoinLeaveEmailSetting":""},"RoleDefinitionBindings":[{"BasePermissions":{"High":"2147483647","Low":"4294967295"},"Description":"Has full control.","Hidden":false,"Id":1073741829,"Name":"Full Control","Order":1,"RoleTypeKind":5,"BasePermissionsValue":["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"],"RoleTypeKindValue":"Administrator"}],"PrincipalId":3}]
|
|
235
|
+
ServerRedirectedEmbedUri: null
|
|
236
|
+
ServerRedirectedEmbedUrl:
|
|
237
|
+
Title : Demo Item
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
=== "CSV"
|
|
241
|
+
|
|
242
|
+
```csv
|
|
243
|
+
FileSystemObjectType,Id,ServerRedirectedEmbedUri,ServerRedirectedEmbedUrl,ContentTypeId,Title,Modified,Created,AuthorId,EditorId,OData__UIVersionString,Attachments,GUID,ComplianceAssetId,RoleAssignments
|
|
244
|
+
0,147,,,0x010078BC2C6F12F0DB41BA554210A2BFA81600A320A11ABE6E90468525ECC747660126,Demo Item,2022-10-30T10:55:37Z,2022-10-30T10:55:22Z,10,10,3.0,,87f3138d-fac3-4126-97c0-543e55672261,"[{""Member"":{""Id"":3,""IsHiddenInUI"":false,""LoginName"":""Communication site Owners"",""Title"":""Communication site Owners"",""PrincipalType"":8,""AllowMembersEditMembership"":false,""AllowRequestToJoinLeave"":false,""AutoAcceptRequestToJoinLeave"":false,""Description"":null,""OnlyAllowMembersViewMembership"":false,""OwnerTitle"":""Communication site Owners"",""RequestToJoinLeaveEmailSetting"":""""},""RoleDefinitionBindings"":[{""BasePermissions"":{""High"":""2147483647"",""Low"":""4294967295""},""Description"":""Has full control."",""Hidden"":false,""Id"":1073741829,""Name"":""Full Control"",""Order"":1,""RoleTypeKind"":5,""BasePermissionsValue"":[""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""],""RoleTypeKindValue"":""Administrator""}],""PrincipalId"":3}]"
|
|
245
|
+
```
|
|
@@ -17,10 +17,13 @@ m365 spo listitem isrecord [options]
|
|
|
17
17
|
: The ID of the list item to check if it is a record
|
|
18
18
|
|
|
19
19
|
`-l, --listId [listId]`
|
|
20
|
-
:
|
|
20
|
+
: ID of the list where the item should be added. Specify either `listTitle`, `listId` or `listUrl`
|
|
21
21
|
|
|
22
22
|
`-t, --listTitle [listTitle]`
|
|
23
|
-
:
|
|
23
|
+
: Title of the list where the item should be added. Specify either `listTitle`, `listId` or `listUrl`
|
|
24
|
+
|
|
25
|
+
`--listUrl [listUrl]`
|
|
26
|
+
: Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl`
|
|
24
27
|
|
|
25
28
|
--8<-- "docs/cmd/_global.md"
|
|
26
29
|
|
|
@@ -37,3 +40,29 @@ Check whether the document with id _1_ in list with id _0cd891ef-afce-4e55-b836-
|
|
|
37
40
|
```sh
|
|
38
41
|
m365 spo listitem isrecord --webUrl https://contoso.sharepoint.com/sites/project-x --listId 0cd891ef-afce-4e55-b836-fce03286cccf --id 1
|
|
39
42
|
```
|
|
43
|
+
|
|
44
|
+
Check whether a document with a specific id in a list retrieved by server-relative URL in a specific site is a record
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
m365 spo listitem isrecord --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl /sites/project-x/documents --id 1
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Response
|
|
51
|
+
|
|
52
|
+
=== "JSON"
|
|
53
|
+
|
|
54
|
+
```json
|
|
55
|
+
false
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
=== "Text"
|
|
59
|
+
|
|
60
|
+
```text
|
|
61
|
+
false
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
=== "CSV"
|
|
65
|
+
|
|
66
|
+
```csv
|
|
67
|
+
false
|
|
68
|
+
```
|
|
@@ -11,28 +11,31 @@ m365 spo listitem list [options]
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
13
|
`-u, --webUrl <webUrl>`
|
|
14
|
-
: URL of the site from which the item should be retrieved
|
|
14
|
+
: URL of the site from which the item should be retrieved.
|
|
15
15
|
|
|
16
16
|
`-i, --listId [listId]`
|
|
17
|
-
: ID of the list to retrieve items from. Specify `listId` or `listTitle` but not both
|
|
17
|
+
: ID of the list to retrieve items from. Specify `listId` or `listTitle` but not both.
|
|
18
|
+
|
|
19
|
+
`-l, --listId [listId]`
|
|
20
|
+
: ID of the list where the item should be added. Specify either `listTitle`, `listId`, or `listUrl` but not multiple.
|
|
18
21
|
|
|
19
22
|
`-t, --listTitle [listTitle]`
|
|
20
|
-
: Title of the list
|
|
23
|
+
: Title of the list where the item should be added. Specify either `listTitle`, `listId`, or `listUrl` but not multiple.
|
|
21
24
|
|
|
22
25
|
`-q, --camlQuery [camlQuery]`
|
|
23
|
-
: CAML query to use to query the list of items with
|
|
26
|
+
: CAML query to use to query the list of items with.
|
|
24
27
|
|
|
25
28
|
`-f, --fields [fields]`
|
|
26
|
-
: Comma-separated list of fields to retrieve. Will retrieve all fields if not specified and json output is requested. Specify `camlQuery` or `fields` but not both
|
|
29
|
+
: Comma-separated list of fields to retrieve. Will retrieve all fields if not specified and json output is requested. Specify `camlQuery` or `fields` but not both.
|
|
27
30
|
|
|
28
31
|
`-l, --filter [filter]`
|
|
29
|
-
: OData filter to use to query the list of items with. Specify `camlQuery` or `filter` but not both
|
|
32
|
+
: OData filter to use to query the list of items with. Specify `camlQuery` or `filter` but not both.
|
|
30
33
|
|
|
31
34
|
`-p, --pageSize [pageSize]`
|
|
32
|
-
: Number of list items to return. Specify `camlQuery` or `pageSize` but not both
|
|
35
|
+
: Number of list items to return. Specify `camlQuery` or `pageSize` but not both.
|
|
33
36
|
|
|
34
37
|
`-n, --pageNumber [pageNumber]`
|
|
35
|
-
: Page number to return if `pageSize` is specified (first page is indexed as value of 0)
|
|
38
|
+
: Page number to return if `pageSize` is specified (first page is indexed as value of 0).
|
|
36
39
|
|
|
37
40
|
--8<-- "docs/cmd/_global.md"
|
|
38
41
|
|
|
@@ -85,3 +88,50 @@ From a list named _Demo List_ get the second batch of 10 items
|
|
|
85
88
|
```sh
|
|
86
89
|
m365 spo listitem list --listTitle "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x --pageSize 10 --pageNumber 2
|
|
87
90
|
```
|
|
91
|
+
|
|
92
|
+
Get all items from a list by server-relative URL
|
|
93
|
+
|
|
94
|
+
```sh
|
|
95
|
+
m365 spo listitem list --listUrl /sites/project-x/documents --webUrl https://contoso.sharepoint.com/sites/project-x
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Response
|
|
99
|
+
|
|
100
|
+
=== "JSON"
|
|
101
|
+
|
|
102
|
+
```json
|
|
103
|
+
[
|
|
104
|
+
{
|
|
105
|
+
"FileSystemObjectType": 0,
|
|
106
|
+
"Id": 236,
|
|
107
|
+
"ServerRedirectedEmbedUri": null,
|
|
108
|
+
"ServerRedirectedEmbedUrl": "",
|
|
109
|
+
"ContentTypeId": "0x01003CDBEB7138618C47A98D56499135D6EE0004C0F5794DEBCC4BAC981AC4AE1BD803",
|
|
110
|
+
"Title": "Test",
|
|
111
|
+
"Modified": "2022-11-16T21:00:03Z",
|
|
112
|
+
"Created": "2022-11-16T20:56:31Z",
|
|
113
|
+
"AuthorId": 10,
|
|
114
|
+
"EditorId": 10,
|
|
115
|
+
"OData__UIVersionString": "6.0",
|
|
116
|
+
"Attachments": true,
|
|
117
|
+
"GUID": "cac57513-e870-4e7a-9f23-f4ea10e14f4e",
|
|
118
|
+
"ComplianceAssetId": null,
|
|
119
|
+
"OData__vti_ItemDeclaredRecord": null
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
=== "Text"
|
|
125
|
+
|
|
126
|
+
```text
|
|
127
|
+
Id Title
|
|
128
|
+
--- -----
|
|
129
|
+
236 Test
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
=== "CSV"
|
|
133
|
+
|
|
134
|
+
```csv
|
|
135
|
+
FileSystemObjectType,Id,ServerRedirectedEmbedUri,ServerRedirectedEmbedUrl,ContentTypeId,Title,Modified,Created,AuthorId,EditorId,OData__UIVersionString,Attachments,GUID,ComplianceAssetId,OData__vti_ItemDeclaredRecord
|
|
136
|
+
0,236,,,0x01003CDBEB7138618C47A98D56499135D6EE0004C0F5794DEBCC4BAC981AC4AE1BD803,Test,2022-11-16T21:00:03Z,2022-11-16T20:56:31Z,10,10,6.0,1,cac57513-e870-4e7a-9f23-f4ea10e14f4e,,
|
|
137
|
+
```
|
|
@@ -14,10 +14,13 @@ m365 spo listitem record declare [options]
|
|
|
14
14
|
: URL of the site where the list is located
|
|
15
15
|
|
|
16
16
|
`-l, --listId [listId]`
|
|
17
|
-
: The ID of the list where the item is located. Specify `listId` or `
|
|
17
|
+
: The ID of the list where the item is located. Specify either `listTitle`, `listId` or `listUrl`
|
|
18
18
|
|
|
19
19
|
`-t, --listTitle [listTitle]`
|
|
20
|
-
: The title of the list where the item is located. Specify `listId` or `
|
|
20
|
+
: The title of the list where the item is located. Specify either `listTitle`, `listId` or `listUrl`
|
|
21
|
+
|
|
22
|
+
`--listUrl [listUrl]`
|
|
23
|
+
: Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl`
|
|
21
24
|
|
|
22
25
|
`-i, --listItemId <listItemId>`
|
|
23
26
|
: The ID of the list item to declare as record
|
|
@@ -47,8 +50,37 @@ Declare a document with id _1_ as a record with record declaration date _March 1
|
|
|
47
50
|
m365 spo listitem record declare --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle "Demo List" --listItemId 1 --date 2012-03-14
|
|
48
51
|
```
|
|
49
52
|
|
|
50
|
-
Declare a document with id
|
|
53
|
+
Declare a document with a specific id as a record with a record declaration date a list retrieved by server-relative URL located in a specific site
|
|
51
54
|
|
|
52
55
|
```sh
|
|
53
|
-
m365 spo listitem record declare --webUrl https://contoso.sharepoint.com/sites/project-x --
|
|
56
|
+
m365 spo listitem record declare --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl '/sites/project-x/Lists/Demo List' --listItemId 1 --date 2013-09-03
|
|
54
57
|
```
|
|
58
|
+
|
|
59
|
+
## Response
|
|
60
|
+
|
|
61
|
+
=== "JSON"
|
|
62
|
+
|
|
63
|
+
```json
|
|
64
|
+
{
|
|
65
|
+
"SchemaVersion": "15.0.0.0",
|
|
66
|
+
"LibraryVersion": "16.0.23102.12004",
|
|
67
|
+
"ErrorInfo": null,
|
|
68
|
+
"TraceCorrelationId": "064779a0-d05b-5000-843d-c36803e58f12"
|
|
69
|
+
}
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
=== "Text"
|
|
73
|
+
|
|
74
|
+
```text
|
|
75
|
+
ErrorInfo : null
|
|
76
|
+
LibraryVersion : 16.0.23102.12004
|
|
77
|
+
SchemaVersion : 15.0.0.0
|
|
78
|
+
TraceCorrelationId: 0a4779a0-c0ca-5000-d29d-4321a1739425
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
=== "CSV"
|
|
82
|
+
|
|
83
|
+
```csv
|
|
84
|
+
SchemaVersion,LibraryVersion,ErrorInfo,TraceCorrelationId
|
|
85
|
+
15.0.0.0,16.0.23102.12004,,0d4779a0-609c-5000-843d-c98e4764c937
|
|
86
|
+
```
|
|
@@ -17,10 +17,13 @@ m365 spo listitem record undeclare [options]
|
|
|
17
17
|
: ID of the list item to be undeclared as a record.
|
|
18
18
|
|
|
19
19
|
`-l, --listId [listId]`
|
|
20
|
-
: The ID of the list where the item is located. Specify `listId` or `
|
|
20
|
+
: The ID of the list where the item is located. Specify either `listTitle`, `listId` or `listUrl`
|
|
21
21
|
|
|
22
22
|
`-t, --listTitle [listTitle]`
|
|
23
|
-
: The title of the list where the item is located. Specify `listId` or `
|
|
23
|
+
: The title of the list where the item is located. Specify either `listTitle`, `listId` or `listUrl`
|
|
24
|
+
|
|
25
|
+
`--listUrl [listUrl]`
|
|
26
|
+
: Server- or site-relative URL of the list where the item is located. Specify either `listTitle`, `listId` or `listUrl`
|
|
24
27
|
|
|
25
28
|
--8<-- "docs/cmd/_global.md"
|
|
26
29
|
|
|
@@ -37,3 +40,13 @@ Undeclare the list item as a record with ID _1_ from list with title _List 1_ lo
|
|
|
37
40
|
```sh
|
|
38
41
|
m365 spo listitem record undeclare --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle 'List 1' --listItemId 1
|
|
39
42
|
```
|
|
43
|
+
|
|
44
|
+
Undeclare a list item with a specific id as a record from a list retrieved by server-relative URL located in a specific site
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
m365 spo listitem record undeclare --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl '/sites/project-x/Lists/Lists 1' --id 1
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Response
|
|
51
|
+
|
|
52
|
+
The command won't return a response on success.
|
|
@@ -17,10 +17,13 @@ m365 spo listitem remove [options]
|
|
|
17
17
|
: The ID of the list item to remove.
|
|
18
18
|
|
|
19
19
|
`-l, --listId [listId]`
|
|
20
|
-
:
|
|
20
|
+
: ID of the list where the item should be added. Specify either `listTitle`, `listId` or `listUrl`
|
|
21
21
|
|
|
22
22
|
`-t, --listTitle [listTitle]`
|
|
23
|
-
: Title of the list
|
|
23
|
+
: Title of the list where the item should be added. Specify either `listTitle`, `listId` or `listUrl`
|
|
24
|
+
|
|
25
|
+
`--listUrl [listUrl]`
|
|
26
|
+
: Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl`
|
|
24
27
|
|
|
25
28
|
`--recycle`
|
|
26
29
|
: Recycle the list item
|
|
@@ -43,3 +46,13 @@ Remove the list item with ID _1_ from list with title _List 1_ located in site _
|
|
|
43
46
|
```sh
|
|
44
47
|
m365 spo listitem remove --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle 'List 1' --id 1
|
|
45
48
|
```
|
|
49
|
+
|
|
50
|
+
Remove the list item with a specific ID from a list retrieved by server-relative URL located in a specific site
|
|
51
|
+
|
|
52
|
+
```sh
|
|
53
|
+
m365 spo listitem remove --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl /sites/project-x/lists/TestList --id 1
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Response
|
|
57
|
+
|
|
58
|
+
The command won't return a response on success.
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# spo listitem roleassignment add
|
|
2
|
+
|
|
3
|
+
Adds a role assignment to a listitem.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 spo listitem roleassignment add [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-u, --webUrl <webUrl>`
|
|
14
|
+
: URL of the site where the listitem is located
|
|
15
|
+
|
|
16
|
+
`--listId [listId]`
|
|
17
|
+
: ID of the list. Specify either listId, listTitle or listUrl but not multiple.
|
|
18
|
+
|
|
19
|
+
`--listTitle [listTitle]`
|
|
20
|
+
: Title of the list. Specify either listId, listTitle or listUrl but not multiple.
|
|
21
|
+
|
|
22
|
+
`--listUrl [listUrl]`
|
|
23
|
+
: Relative URL of the list. Specify either listId, listTitle or listUrl but not multiple.
|
|
24
|
+
|
|
25
|
+
`--listItemId <listItemId>`
|
|
26
|
+
: Id of the listitem to assign the role to.
|
|
27
|
+
|
|
28
|
+
`--principalId [principalId]`
|
|
29
|
+
: The SharePoint Id of the principal. It may be either a user id or group id to add a role assignment for. Specify either upn, groupName or principalId.
|
|
30
|
+
|
|
31
|
+
`--upn [upn]`
|
|
32
|
+
: upn/email of user to assign role to. Specify either upn, groupName or principalId.
|
|
33
|
+
|
|
34
|
+
`--groupName [groupName]`
|
|
35
|
+
: The group name of Azure AD or SharePoint group. Specify either upn, groupName or principalId.
|
|
36
|
+
|
|
37
|
+
`--roleDefinitionId [roleDefinitionId]`
|
|
38
|
+
: ID of role definition. Specify either roleDefinitionId or roleDefinitionName but not both
|
|
39
|
+
|
|
40
|
+
`--roleDefinitionName [roleDefinitionName]`
|
|
41
|
+
: Enter the name of a role definition, like 'Contribute', 'Read', etc. Specify either roleDefinitionId or roleDefinitionName but not both
|
|
42
|
+
|
|
43
|
+
--8<-- "docs/cmd/_global.md"
|
|
44
|
+
|
|
45
|
+
## Examples
|
|
46
|
+
|
|
47
|
+
Add role assignment to specified listitem in specified list located in specified site for specified principal id and specified role definition id.
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
m365 spo listitem roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "someList" --listItemId 1 --principalId 11 --roleDefinitionId 1073741829
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Add role assignment to specified listitem in specified list located in specified site for specified principal id and specified role definition id.
|
|
54
|
+
|
|
55
|
+
```sh
|
|
56
|
+
m365 spo listitem roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --listId "0CD891EF-AFCE-4E55-B836-FCE03286CCCF" --listItemId 1 --principalId 11 --roleDefinitionId 1073741829
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Add role assignment to specified listitem in specified list located in specified site for specified principal id and specified role definition id.
|
|
60
|
+
|
|
61
|
+
```sh
|
|
62
|
+
m365 spo listitem roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --listUrl "sites/documents" --listItemId 1 --principalId 11 --roleDefinitionId 1073741829
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Add role assignment to specified listitem in specified list located in specified site for specified upn and specified role definition id.
|
|
66
|
+
|
|
67
|
+
```sh
|
|
68
|
+
m365 spo listitem roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "someList" --listItemId 1 --upn "someaccount@tenant.onmicrosoft.com" --roleDefinitionId 1073741829
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Add role assignment to specified listitem in specified list located in specified site for specified group and specified role definition id.
|
|
72
|
+
|
|
73
|
+
```sh
|
|
74
|
+
m365 spo listitem roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "someList" --listItemId 1 --groupName "someGroup" --roleDefinitionId 1073741829
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Add role assignment to specified listitem in specified list located in specified site for specified principal id and specified role definition name.
|
|
78
|
+
|
|
79
|
+
```sh
|
|
80
|
+
m365 spo listitem roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "someList" --listItemId 1 --principalId 11 --roleDefinitionName "Full Control"
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Response
|
|
84
|
+
|
|
85
|
+
The command won't return a response on success.
|