@pnp/cli-microsoft365 9.0.0-beta.f2c5f82 → 9.1.0-beta.2d61838
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/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/Auth.js +17 -16
- package/dist/AuthServer.js +7 -7
- package/dist/Command.js +5 -4
- package/dist/api.js +1 -1
- package/dist/cli/cli.js +57 -8
- package/dist/config.js +61 -5
- package/dist/m365/app/commands/permission/permission-add.js +9 -9
- package/dist/m365/base/PowerAutomateCommand.js +1 -1
- package/dist/m365/base/SpoCommand.js +1 -1
- package/dist/m365/cli/commands/cli-consent.js +9 -5
- package/dist/m365/cli/commands/cli-doctor.js +2 -2
- package/dist/m365/cli/commands/cli-reconsent.js +2 -3
- package/dist/m365/cli/commands/config/config-set.js +12 -3
- package/dist/m365/commands/login.js +38 -14
- package/dist/m365/commands/setup.js +256 -33
- package/dist/m365/commands/status.js +2 -2
- package/dist/m365/connection/commands/connection-list.js +4 -4
- package/dist/m365/entra/commands/app/app-add.js +52 -288
- package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-add.js +13 -13
- package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-get.js +18 -18
- package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-list.js +1 -1
- package/dist/m365/entra/commands/group/group-user-list.js +4 -4
- package/dist/m365/entra/commands/m365group/m365group-conversation-post-list.js +4 -4
- package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-list.js +3 -3
- package/dist/m365/entra/commands/m365group/m365group-user-list.js +9 -6
- package/dist/m365/external/commands/item/item-add.js +2 -5
- package/dist/m365/file/commands/file-move.js +135 -0
- package/dist/m365/file/commands.js +2 -1
- package/dist/m365/flow/commands/environment/environment-get.js +1 -1
- package/dist/m365/flow/commands/environment/environment-list.js +1 -1
- package/dist/m365/flow/commands/flow-disable.js +1 -1
- package/dist/m365/flow/commands/flow-enable.js +1 -1
- package/dist/m365/flow/commands/flow-export.js +17 -16
- package/dist/m365/flow/commands/flow-get.js +1 -1
- package/dist/m365/flow/commands/flow-list.js +1 -1
- package/dist/m365/flow/commands/flow-remove.js +1 -1
- package/dist/m365/flow/commands/owner/owner-ensure.js +1 -1
- package/dist/m365/flow/commands/owner/owner-list.js +1 -1
- package/dist/m365/flow/commands/owner/owner-remove.js +1 -1
- package/dist/m365/flow/commands/recyclebinitem/recyclebinitem-list.js +47 -0
- package/dist/m365/flow/commands/recyclebinitem/recyclebinitem-restore.js +48 -0
- package/dist/m365/flow/commands/run/run-cancel.js +1 -1
- package/dist/m365/flow/commands/run/run-get.js +1 -1
- package/dist/m365/flow/commands/run/run-list.js +1 -1
- package/dist/m365/flow/commands/run/run-resubmit.js +2 -2
- package/dist/m365/flow/commands.js +2 -0
- package/dist/m365/onenote/commands/notebook/notebook-add.js +132 -0
- package/dist/m365/onenote/commands.js +1 -0
- package/dist/m365/outlook/commands/message/message-get.js +11 -11
- package/dist/m365/spfx/commands/project/DeployWorkflow.js +1 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.20.0-rc.1.js +25 -0
- package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
- package/dist/m365/spfx/commands/project/project-github-workflow-add.js +10 -1
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.20.0-rc.1.js +57 -0
- package/dist/m365/spfx/commands/project/project-upgrade.js +16 -13
- package/dist/m365/spfx/commands/spfx-doctor.js +15 -0
- package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-get.js +1 -0
- package/dist/m365/spo/commands/file/file-copy.js +34 -55
- package/dist/m365/spo/commands/file/file-roleassignment-add.js +17 -54
- package/dist/m365/spo/commands/file/file-roleassignment-remove.js +13 -40
- package/dist/m365/spo/commands/file/file-roleinheritance-break.js +5 -13
- package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +5 -13
- package/dist/m365/spo/commands/folder/folder-set.js +4 -0
- package/dist/m365/spo/commands/folder/folder-sharinglink-add.js +143 -0
- package/dist/m365/spo/commands/folder/folder-sharinglink-clear.js +111 -0
- package/dist/m365/spo/commands/folder/folder-sharinglink-remove.js +95 -0
- package/dist/m365/spo/commands/list/list-get.js +17 -4
- package/dist/m365/spo/commands/list/list-list.js +4 -1
- package/dist/m365/spo/commands/page/page-remove.js +37 -16
- package/dist/m365/spo/commands/page/page-section-add.js +185 -34
- package/dist/m365/spo/commands/site/SiteAdmin.js +2 -0
- package/dist/m365/spo/commands/site/site-admin-add.js +252 -0
- package/dist/m365/spo/commands/site/site-admin-list.js +10 -36
- package/dist/m365/spo/commands/site/site-admin-remove.js +194 -0
- package/dist/m365/spo/commands/site/site-appcatalog-remove.js +24 -48
- package/dist/m365/spo/commands/site/site-get.js +12 -16
- package/dist/m365/spo/commands/site/site-remove.js +7 -1
- package/dist/m365/spo/commands/site/site-sharingpermission-set.js +68 -0
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +22 -2
- package/dist/m365/spo/commands/user/user-get.js +67 -9
- package/dist/m365/spo/commands.js +7 -0
- package/dist/m365/spp/commands/contentcenter/contentcenter-list.js +56 -0
- package/dist/m365/spp/commands.js +5 -0
- package/dist/m365/teams/MeetingTranscript.js +2 -0
- package/dist/m365/teams/commands/meeting/meeting-transcript-get.js +152 -0
- package/dist/m365/teams/commands.js +1 -0
- package/dist/m365/viva/commands/engage/Community.js +2 -0
- package/dist/m365/viva/commands/engage/engage-community-list.js +28 -0
- package/dist/m365/viva/commands/engage/engage-group-list.js +5 -0
- package/dist/m365/viva/commands/engage/engage-group-user-add.js +5 -0
- package/dist/m365/viva/commands/engage/engage-group-user-remove.js +5 -0
- package/dist/m365/viva/commands/engage/engage-message-add.js +5 -0
- package/dist/m365/viva/commands/engage/engage-message-get.js +5 -0
- package/dist/m365/viva/commands/engage/engage-message-like-set.js +5 -0
- package/dist/m365/viva/commands/engage/engage-message-list.js +5 -0
- package/dist/m365/viva/commands/engage/engage-message-remove.js +5 -0
- package/dist/m365/viva/commands/engage/engage-network-list.js +5 -0
- package/dist/m365/viva/commands/engage/engage-report-activitycounts.js +8 -0
- package/dist/m365/viva/commands/engage/engage-report-activityusercounts.js +8 -0
- package/dist/m365/viva/commands/engage/engage-report-activityuserdetail.js +8 -0
- package/dist/m365/viva/commands/engage/engage-report-deviceusagedistributionusercounts.js +8 -0
- package/dist/m365/viva/commands/engage/engage-report-deviceusageusercounts.js +8 -0
- package/dist/m365/viva/commands/engage/engage-report-deviceusageuserdetail.js +8 -0
- package/dist/m365/viva/commands/engage/engage-report-groupsactivitycounts.js +8 -0
- package/dist/m365/viva/commands/engage/engage-report-groupsactivitydetail.js +8 -0
- package/dist/m365/viva/commands/engage/engage-report-groupsactivitygroupcounts.js +8 -0
- package/dist/m365/viva/commands/engage/engage-search.js +5 -0
- package/dist/m365/viva/commands/engage/engage-user-get.js +5 -0
- package/dist/m365/viva/commands/engage/engage-user-list.js +5 -0
- package/dist/m365/viva/commands/engage/yammerCommands.js +25 -0
- package/dist/m365/viva/commands.js +1 -0
- package/dist/request.js +46 -61
- package/dist/settingsNames.js +7 -1
- package/dist/utils/driveUtil.js +51 -0
- package/dist/utils/entraApp.js +283 -0
- package/dist/utils/spo.js +58 -66
- package/dist/utils/timersUtil.js +12 -0
- package/dist/utils/urlUtil.js +8 -0
- package/dist/utils/zod.js +1 -1
- package/docs/docs/_clisettings.mdx +6 -0
- package/docs/docs/cmd/app/permission/permission-add.mdx +5 -5
- package/docs/docs/cmd/cli/cli-consent.mdx +1 -1
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-add.mdx +12 -12
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-get.mdx +14 -14
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-list.mdx +5 -5
- package/docs/docs/cmd/entra/group/group-user-list.mdx +7 -7
- package/docs/docs/cmd/entra/m365group/m365group-conversation-post-list.mdx +5 -5
- package/docs/docs/cmd/entra/m365group/m365group-recyclebinitem-list.mdx +3 -3
- package/docs/docs/cmd/entra/m365group/m365group-report-activitystorage.mdx +2 -2
- package/docs/docs/cmd/entra/m365group/m365group-user-list.mdx +1 -1
- package/docs/docs/cmd/external/item/item-add.mdx +3 -3
- package/docs/docs/cmd/file/file-move.mdx +79 -0
- package/docs/docs/cmd/flow/recyclebinitem/recyclebinitem-list.mdx +132 -0
- package/docs/docs/cmd/flow/recyclebinitem/recyclebinitem-restore.mdx +55 -0
- package/docs/docs/cmd/onenote/notebook/notebook-add.mdx +169 -0
- package/docs/docs/cmd/outlook/message/message-get.mdx +5 -5
- package/docs/docs/cmd/setup.mdx +16 -3
- package/docs/docs/cmd/spfx/project/project-github-workflow-add.mdx +12 -11
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-get.mdx +5 -6
- package/docs/docs/cmd/spo/cdn/cdn-get.mdx +1 -1
- package/docs/docs/cmd/spo/cdn/cdn-origin-add.mdx +1 -1
- package/docs/docs/cmd/spo/cdn/cdn-origin-list.mdx +1 -1
- package/docs/docs/cmd/spo/cdn/cdn-origin-remove.mdx +1 -1
- package/docs/docs/cmd/spo/cdn/cdn-policy-list.mdx +1 -1
- package/docs/docs/cmd/spo/cdn/cdn-policy-set.mdx +1 -1
- package/docs/docs/cmd/spo/externaluser/externaluser-list.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-copy.mdx +12 -119
- package/docs/docs/cmd/spo/folder/folder-set.mdx +6 -0
- package/docs/docs/cmd/spo/folder/folder-sharinglink-add.mdx +125 -0
- package/docs/docs/cmd/spo/folder/folder-sharinglink-clear.mdx +50 -0
- package/docs/docs/cmd/spo/folder/folder-sharinglink-remove.mdx +50 -0
- package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-get.mdx +1 -1
- package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-set.mdx +1 -1
- package/docs/docs/cmd/spo/homesite/homesite-remove.mdx +1 -1
- package/docs/docs/cmd/spo/knowledgehub/knowledgehub-get.mdx +1 -1
- package/docs/docs/cmd/spo/knowledgehub/knowledgehub-remove.mdx +1 -1
- package/docs/docs/cmd/spo/knowledgehub/knowledgehub-set.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-list.mdx +7 -5
- package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-add.mdx +1 -1
- package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-list.mdx +1 -1
- package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-remove.mdx +1 -1
- package/docs/docs/cmd/spo/orgnewssite/orgnewssite-list.mdx +1 -1
- package/docs/docs/cmd/spo/orgnewssite/orgnewssite-remove.mdx +1 -1
- package/docs/docs/cmd/spo/orgnewssite/orgnewssite-set.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-remove.mdx +30 -12
- package/docs/docs/cmd/spo/page/page-section-add.mdx +57 -2
- package/docs/docs/cmd/spo/site/site-admin-add.mdx +67 -0
- package/docs/docs/cmd/spo/site/site-admin-list.mdx +64 -12
- package/docs/docs/cmd/spo/site/site-admin-remove.mdx +67 -0
- package/docs/docs/cmd/spo/site/site-appcatalog-add.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-appcatalog-remove.mdx +3 -12
- package/docs/docs/cmd/spo/site/site-commsite-enable.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-list.mdx +6 -4
- package/docs/docs/cmd/spo/site/site-remove.mdx +3 -0
- package/docs/docs/cmd/spo/site/site-set.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-sharingpermission-set.mdx +58 -0
- package/docs/docs/cmd/spo/storageentity/storageentity-remove.mdx +1 -1
- package/docs/docs/cmd/spo/storageentity/storageentity-set.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-appcatalog-add.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-appcatalogurl-get.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-list.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-remove.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-restore.mdx +49 -2
- package/docs/docs/cmd/spo/tenant/tenant-settings-list.mdx +1 -1
- package/docs/docs/cmd/spo/theme/theme-apply.mdx +1 -1
- package/docs/docs/cmd/spo/theme/theme-get.mdx +1 -1
- package/docs/docs/cmd/spo/theme/theme-list.mdx +1 -1
- package/docs/docs/cmd/spo/theme/theme-remove.mdx +1 -1
- package/docs/docs/cmd/spo/theme/theme-set.mdx +1 -1
- package/docs/docs/cmd/spo/user/user-get.mdx +35 -9
- package/docs/docs/cmd/spp/contentcenter/contentcenter-list.mdx +287 -0
- package/docs/docs/cmd/teams/meeting/meeting-transcript-get.mdx +132 -0
- package/docs/docs/cmd/viva/engage/engage-community-list.mdx +81 -0
- package/npm-shrinkwrap.json +205 -377
- package/package.json +16 -17
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# flow recyclebinitem restore
|
|
6
|
+
|
|
7
|
+
Restores a soft-deleted Power Automate flow
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 flow recyclebinitem restore [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
```md definition-list
|
|
18
|
+
`-e, --environmentName <environmentName>`
|
|
19
|
+
: The name of the environment where the flow is located.
|
|
20
|
+
|
|
21
|
+
`-n, --flowName <flowName>`
|
|
22
|
+
: The name of the Power Automate flow.
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
<Global />
|
|
26
|
+
|
|
27
|
+
## Remarks
|
|
28
|
+
|
|
29
|
+
:::warning
|
|
30
|
+
|
|
31
|
+
This command is based on an API that is currently in preview and is subject to change once the API reaches general availability.
|
|
32
|
+
|
|
33
|
+
:::
|
|
34
|
+
|
|
35
|
+
:::info
|
|
36
|
+
|
|
37
|
+
To use this command, you must be a Global or Power Platform administrator.
|
|
38
|
+
|
|
39
|
+
:::
|
|
40
|
+
|
|
41
|
+
When a Power Automate flow is restored, it will be automatically disabled. To make it operational again, you must [enable](../flow-enable.mdx) it.
|
|
42
|
+
|
|
43
|
+
If the environment with the name you specified doesn't exist, you will get the `Access to the environment 'xyz' is denied.` error.
|
|
44
|
+
|
|
45
|
+
## Examples
|
|
46
|
+
|
|
47
|
+
Restores a soft-deleted flow within a specific environment
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
m365 flow recyclebinitem restore --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --flowName 5923cb07-ce1a-4a5c-ab81-257ce820109a
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Response
|
|
54
|
+
|
|
55
|
+
The command won't return a response on success.
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# onenote notebook add
|
|
6
|
+
|
|
7
|
+
Create a new OneNote notebook.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 onenote notebook add [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
```md definition-list
|
|
18
|
+
`-n, --name <name>`
|
|
19
|
+
: Name of the notebook. Notebook names must be unique. The name cannot contain more than 128 characters or contain the following characters: `?*/:<>`
|
|
20
|
+
|
|
21
|
+
`--userId [userId]`
|
|
22
|
+
: Id of the user. Specify either `userId`, `userName`, `groupId`, `groupName` or `webUrl`, but not multiple.
|
|
23
|
+
|
|
24
|
+
`--userName [userName]`
|
|
25
|
+
: Name of the user. Specify either `userId`, `userName`, `groupId`, `groupName` or `webUrl`, but not multiple.
|
|
26
|
+
|
|
27
|
+
`--groupId [groupId]`
|
|
28
|
+
: Id of the SharePoint group. Specify either `userId`, `userName`, `groupId`, `groupName` or `webUrl`, but not multiple.
|
|
29
|
+
|
|
30
|
+
`--groupName [groupName]`
|
|
31
|
+
: Name of the SharePoint group. Specify either `userId`, `userName`, `groupId`, `groupName` or `webUrl`, but not multiple.
|
|
32
|
+
|
|
33
|
+
`-u, --webUrl [webUrl]`
|
|
34
|
+
: URL of the SharePoint site. Specify either `userId`, `userName`, `groupId`, `groupName` or `webUrl`, but not multiple.
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
<Global />
|
|
38
|
+
|
|
39
|
+
## Examples
|
|
40
|
+
|
|
41
|
+
Create a Microsoft OneNote notebook for the currently logged in user
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
m365 onenote notebook add --name "Private Notebook"
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Create a Microsoft OneNote notebook in a group specified by id.
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
m365 onenote notebook add --name "Private Notebook" --groupId 233e43d0-dc6a-482e-9b4e-0de7a7bce9b4
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Create a Microsoft OneNote notebook in a group specified by displayName.
|
|
54
|
+
|
|
55
|
+
```sh
|
|
56
|
+
m365 onenote notebook add --name "Private Notebook" --groupName "MyGroup"
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Create a Microsoft OneNote notebook for a user specified by name
|
|
60
|
+
|
|
61
|
+
```sh
|
|
62
|
+
m365 onenote notebook add --name "Private Notebook" --userName user1@contoso.onmicrosoft.com
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Create a Microsoft OneNote notebook for a user specified by id
|
|
66
|
+
|
|
67
|
+
```sh
|
|
68
|
+
m365 onenote notebook add --name "Private Notebook" --userId 2609af39-7775-4f94-a3dc-0dd67657e900
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Creates a Microsoft OneNote notebooks for a site
|
|
72
|
+
|
|
73
|
+
```sh
|
|
74
|
+
m365 onenote notebook add --name "Private Notebook" --webUrl https://contoso.sharepoint.com/sites/testsite
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Response
|
|
78
|
+
|
|
79
|
+
<Tabs>
|
|
80
|
+
<TabItem value="JSON">
|
|
81
|
+
|
|
82
|
+
```json
|
|
83
|
+
{
|
|
84
|
+
"id": "1-08554ffd-b769-4a4a-9563-faaa3191f253",
|
|
85
|
+
"self": "https://graph.microsoft.com/v1.0/users/fe36f75e-c103-410b-a18a-2bf6df06ac3a/onenote/notebooks/1-08554ffd-b769-4a4a-9563-faaa3191f253",
|
|
86
|
+
"createdDateTime": "2024-04-05T17:58:27Z",
|
|
87
|
+
"displayName": "Private Notebook",
|
|
88
|
+
"lastModifiedDateTime": "2024-04-05T17:58:27Z",
|
|
89
|
+
"isDefault": false,
|
|
90
|
+
"userRole": "Owner",
|
|
91
|
+
"isShared": false,
|
|
92
|
+
"sectionsUrl": "https://graph.microsoft.com/v1.0/users/fe36f75e-c103-410b-a18a-2bf6df06ac3a/onenote/notebooks/1-08554ffd-b769-4a4a-9563-faaa3191f253/sections",
|
|
93
|
+
"sectionGroupsUrl": "https://graph.microsoft.com/v1.0/users/fe36f75e-c103-410b-a18a-2bf6df06ac3a/onenote/notebooks/1-08554ffd-b769-4a4a-9563-faaa3191f253/sectionGroups",
|
|
94
|
+
"createdBy": {
|
|
95
|
+
"user": {
|
|
96
|
+
"id": "fe36f75e-c103-410b-a18a-2bf6df06ac3a",
|
|
97
|
+
"displayName": "John Doe"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"lastModifiedBy": {
|
|
101
|
+
"user": {
|
|
102
|
+
"id": "fe36f75e-c103-410b-a18a-2bf6df06ac3a",
|
|
103
|
+
"displayName": "John Doe"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"links": {
|
|
107
|
+
"oneNoteClientUrl": {
|
|
108
|
+
"href": "onenote:https://contoso-my.sharepoint.com/personal/john_contoso_onmicrosoft_com/Documents/Notebooks/Private Notebook"
|
|
109
|
+
},
|
|
110
|
+
"oneNoteWebUrl": {
|
|
111
|
+
"href": "https://contoso-my.sharepoint.com/personal/john_contoso_onmicrosoft_com/Documents/Notebooks/Private Notebook"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
</TabItem>
|
|
118
|
+
<TabItem value="Text">
|
|
119
|
+
|
|
120
|
+
```text
|
|
121
|
+
createdBy : {"user":{"id":"fe36f75e-c103-410b-a18a-2bf6df06ac3a","displayName":"John Doe"}}
|
|
122
|
+
createdDateTime : 2024-04-05T17:58:36Z
|
|
123
|
+
displayName : Private Notebook
|
|
124
|
+
id : 1-f4bba32b-9b3e-4892-8df4-931a15f7eb6f
|
|
125
|
+
isDefault : false
|
|
126
|
+
isShared : false
|
|
127
|
+
lastModifiedBy : {"user":{"id":"fe36f75e-c103-410b-a18a-2bf6df06ac3a","displayName":"John Doe"}}
|
|
128
|
+
lastModifiedDateTime: 2024-04-05T17:58:36Z
|
|
129
|
+
links : {"oneNoteClientUrl":{"href":"onenote:https://contoso-my.sharepoint.com/personal/john_contoso_onmicrosoft_com/Documents/Notebooks/Private Notebook"},"oneNoteWebUrl":{"href":"https://contoso-my.sharepoint.com/personal/john_contoso_onmicrosoft_com/Documents/Notebooks/Private Notebook"}}
|
|
130
|
+
sectionGroupsUrl : https://graph.microsoft.com/v1.0/users/fe36f75e-c103-410b-a18a-2bf6df06ac3a/onenote/notebooks/1-f4bba32b-9b3e-4892-8df4-931a15f7eb6f/sectionGroups
|
|
131
|
+
sectionsUrl : https://graph.microsoft.com/v1.0/users/fe36f75e-c103-410b-a18a-2bf6df06ac3a/onenote/notebooks/1-f4bba32b-9b3e-4892-8df4-931a15f7eb6f/sections
|
|
132
|
+
self : https://graph.microsoft.com/v1.0/users/fe36f75e-c103-410b-a18a-2bf6df06ac3a/onenote/notebooks/1-f4bba32b-9b3e-4892-8df4-931a15f7eb6f
|
|
133
|
+
userRole : Owner
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
</TabItem>
|
|
137
|
+
<TabItem value="CSV">
|
|
138
|
+
|
|
139
|
+
```csv
|
|
140
|
+
id,self,createdDateTime,displayName,lastModifiedDateTime,isDefault,userRole,isShared,sectionsUrl,sectionGroupsUrl
|
|
141
|
+
1-272a5791-2c95-45cf-b27d-7f68e07f6149,https://graph.microsoft.com/v1.0/users/fe36f75e-c103-410b-a18a-2bf6df06ac3a/onenote/notebooks/1-272a5791-2c95-45cf-b27d-7f68e07f6149,2024-04-05T18:00:28Z,Private Notebook,2024-04-05T18:00:28Z,,Owner,,https://graph.microsoft.com/v1.0/users/fe36f75e-c103-410b-a18a-2bf6df06ac3a/onenote/notebooks/1-272a5791-2c95-45cf-b27d-7f68e07f6149/sections,https://graph.microsoft.com/v1.0/users/fe36f75e-c103-410b-a18a-2bf6df06ac3a/onenote/notebooks/1-272a5791-2c95-45cf-b27d-7f68e07f6149/sectionGroups
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
</TabItem>
|
|
145
|
+
<TabItem value="Markdown">
|
|
146
|
+
|
|
147
|
+
```md
|
|
148
|
+
# onenote notebook add --name "Private Notebook"
|
|
149
|
+
|
|
150
|
+
Date: 05/04/2024
|
|
151
|
+
|
|
152
|
+
## Private Notebook (1-fa279d79-4701-43a2-9593-c2abfbe6999f)
|
|
153
|
+
|
|
154
|
+
Property | Value
|
|
155
|
+
---------|-------
|
|
156
|
+
id | 1-fa279d79-4701-43a2-9593-c2abfbe6999f
|
|
157
|
+
self | https://graph.microsoft.com/v1.0/users/fe36f75e-c103-410b-a18a-2bf6df06ac3a/onenote/notebooks/1-fa279d79-4701-43a2-9593-c2abfbe6999f
|
|
158
|
+
createdDateTime | 2024-04-05T18:00:58Z
|
|
159
|
+
displayName | Private Notebook
|
|
160
|
+
lastModifiedDateTime | 2024-04-05T18:00:58Z
|
|
161
|
+
isDefault | false
|
|
162
|
+
userRole | Owner
|
|
163
|
+
isShared | false
|
|
164
|
+
sectionsUrl | https://graph.microsoft.com/v1.0/users/fe36f75e-c103-410b-a18a-2bf6df06ac3a/onenote/notebooks/1-fa279d79-4701-43a2-9593-c2abfbe6999f/sections
|
|
165
|
+
sectionGroupsUrl | https://graph.microsoft.com/v1.0/users/fe36f75e-c103-410b-a18a-2bf6df06ac3a/onenote/notebooks/1-fa279d79-4701-43a2-9593-c2abfbe6999f/sectionGroups
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
</TabItem>
|
|
169
|
+
</Tabs>
|
|
@@ -19,10 +19,10 @@ m365 outlook message get [options]
|
|
|
19
19
|
: ID of the message.
|
|
20
20
|
|
|
21
21
|
`--userId [userId]`
|
|
22
|
-
: ID of the user from which to retrieve the message. Specify either `userId` or `
|
|
22
|
+
: ID of the user from which to retrieve the message. Specify either `userId` or `userPrincipalName`, but not both. This option is required when using application permissions.
|
|
23
23
|
|
|
24
|
-
`--
|
|
25
|
-
: UPN of the user from which to retrieve the message Specify either `userId` or `
|
|
24
|
+
`--userPrincipalName [userPrincipalName]`
|
|
25
|
+
: UPN of the user from which to retrieve the message Specify either `userId` or `userPrincipalName`, but not both. This option is required when using application permissions.
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
<Global />
|
|
@@ -38,7 +38,7 @@ m365 outlook message get --id AAMkAGVmMDEzMTM4LTZmYWUtNDdkNC1hMDZiLTU1OGY5OTZhYm
|
|
|
38
38
|
Get a specific message using delegated permissions from a shared mailbox.
|
|
39
39
|
|
|
40
40
|
```sh
|
|
41
|
-
m365 outlook message get --id AAMkAGVmMDEzMTM4LTZmYWUtNDdkNC1hMDZiLTU1OGY5OTZhYmY4OABGAAAAAAAiQ8W967B7TKBjgx9rVEURBwAiIsqMbYjsT5e-T7KzowPTAAAAAAEMAAAiIsqMbYjsT5e-T7KzowPTAALvuv07AAA= --
|
|
41
|
+
m365 outlook message get --id AAMkAGVmMDEzMTM4LTZmYWUtNDdkNC1hMDZiLTU1OGY5OTZhYmY4OABGAAAAAAAiQ8W967B7TKBjgx9rVEURBwAiIsqMbYjsT5e-T7KzowPTAAAAAAEMAAAiIsqMbYjsT5e-T7KzowPTAALvuv07AAA= --userPrincipalName sharedmailbox@tenant.com
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
Get a specific message from a specific user retrieved by user ID using application permissions.
|
|
@@ -50,7 +50,7 @@ m365 outlook message get --id AAMkAGVmMDEzMTM4LTZmYWUtNDdkNC1hMDZiLTU1OGY5OTZhYm
|
|
|
50
50
|
Get a specific message from a specific user retrieved by user principal name using application permissions.
|
|
51
51
|
|
|
52
52
|
```sh
|
|
53
|
-
m365 outlook message get --id AAMkAGVmMDEzMTM4LTZmYWUtNDdkNC1hMDZiLTU1OGY5OTZhYmY4OABGAAAAAAAiQ8W967B7TKBjgx9rVEURBwAiIsqMbYjsT5e-T7KzowPTAAAAAAEMAAAiIsqMbYjsT5e-T7KzowPTAALvuv07AAA= --
|
|
53
|
+
m365 outlook message get --id AAMkAGVmMDEzMTM4LTZmYWUtNDdkNC1hMDZiLTU1OGY5OTZhYmY4OABGAAAAAAAiQ8W967B7TKBjgx9rVEURBwAiIsqMbYjsT5e-T7KzowPTAAAAAAEMAAAiIsqMbYjsT5e-T7KzowPTAALvuv07AAA= --userPrincipalName user@tenant.com
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
## Response
|
package/docs/docs/cmd/setup.mdx
CHANGED
|
@@ -18,6 +18,9 @@ m365 setup [options]
|
|
|
18
18
|
|
|
19
19
|
`--scripting`
|
|
20
20
|
: Configure CLI for Microsoft 365 for use in scripts without prompting for additional information.
|
|
21
|
+
|
|
22
|
+
`--skipApp`
|
|
23
|
+
: Skip configuring an Entra app for use with CLI for Microsoft 365.
|
|
21
24
|
```
|
|
22
25
|
|
|
23
26
|
<Global />
|
|
@@ -28,6 +31,10 @@ The `m365 setup` command is a wizard that helps you configure the CLI for Micros
|
|
|
28
31
|
|
|
29
32
|
The command will ask you the following questions:
|
|
30
33
|
|
|
34
|
+
- _CLI for Microsoft 365 requires a Microsoft Entra app. Do you want to create a new app registration or use an existing one?_
|
|
35
|
+
|
|
36
|
+
You can choose between using an existing Entra app or creating a new one. If you choose to create a new app, the CLI will ask you to choose between a minimal and a full set of permissions. It then signs in as Azure CLI to your tenant, creates a new app registration, and stores its information in the CLI configuration.
|
|
37
|
+
|
|
31
38
|
- _How do you plan to use the CLI?_
|
|
32
39
|
|
|
33
40
|
You can choose between **interactive** and **scripting** use. In interactive mode, the CLI for Microsoft 365 will prompt you for additional information when needed, automatically open links browser, automatically show help on errors and show spinners. In **scripting** mode, the CLI will not use interactivity to prevent blocking your scripts.
|
|
@@ -71,24 +78,30 @@ The `m365 setup` command uses the following presets:
|
|
|
71
78
|
|
|
72
79
|
## Examples
|
|
73
80
|
|
|
74
|
-
Configure CLI for Microsoft based on your preferences interactively
|
|
81
|
+
Configure CLI for Microsoft 365 based on your preferences interactively
|
|
75
82
|
|
|
76
83
|
```sh
|
|
77
84
|
m365 setup
|
|
78
85
|
```
|
|
79
86
|
|
|
80
|
-
Configure CLI for Microsoft for interactive use without prompting for additional information
|
|
87
|
+
Configure CLI for Microsoft 365 for interactive use without prompting for additional information
|
|
81
88
|
|
|
82
89
|
```sh
|
|
83
90
|
m365 setup --interactive
|
|
84
91
|
```
|
|
85
92
|
|
|
86
|
-
Configure CLI for Microsoft for use in scripts without prompting for additional information
|
|
93
|
+
Configure CLI for Microsoft 365 for use in scripts without prompting for additional information
|
|
87
94
|
|
|
88
95
|
```sh
|
|
89
96
|
m365 setup --scripting
|
|
90
97
|
```
|
|
91
98
|
|
|
99
|
+
Configure CLI for Microsoft 365 without setting up an Entra app
|
|
100
|
+
|
|
101
|
+
```sh
|
|
102
|
+
m365 setup --skipApp
|
|
103
|
+
```
|
|
104
|
+
|
|
92
105
|
## Response
|
|
93
106
|
|
|
94
107
|
The command won't return a response on success.
|
|
@@ -14,25 +14,28 @@ m365 spfx project github workflow add [options]
|
|
|
14
14
|
|
|
15
15
|
```md definition-list
|
|
16
16
|
`-n, --name [name]`
|
|
17
|
-
: Name of the workflow that will be created. If none is specified a default name will be used 'Deploy Solution ${name of sppkg file}'
|
|
17
|
+
: Name of the workflow that will be created. If none is specified a default name will be used 'Deploy Solution ${name of sppkg file}'
|
|
18
18
|
|
|
19
19
|
`-b, --branchName [branchName]`
|
|
20
|
-
: Specify the branch name which should trigger the workflow on push. If none is specified a default will be used which is 'main'
|
|
20
|
+
: Specify the branch name which should trigger the workflow on push. If none is specified a default will be used which is 'main'
|
|
21
21
|
|
|
22
22
|
`-m, --manuallyTrigger`
|
|
23
|
-
: When specified a manual trigger option will be added to the workflow: `workflow_dispatch
|
|
23
|
+
: When specified a manual trigger option will be added to the workflow: `workflow_dispatch`
|
|
24
24
|
|
|
25
25
|
`-l, --loginMethod [loginMethod]`
|
|
26
|
-
: Specify the login method used for the login action. Possible options are: `user`, `application`. Default `application
|
|
26
|
+
: Specify the login method used for the login action. Possible options are: `user`, `application`. Default `application`'
|
|
27
27
|
|
|
28
28
|
`-s, --scope [scope]`
|
|
29
|
-
: Scope of the app catalog: `tenant`, `sitecollection`. Default is `tenant
|
|
29
|
+
: Scope of the app catalog: `tenant`, `sitecollection`. Default is `tenant`
|
|
30
30
|
|
|
31
31
|
`-u, --siteUrl [siteUrl]`
|
|
32
|
-
: The URL of the site collection where the solution package will be added. Required if scope is set to `sitecollection
|
|
32
|
+
: The URL of the site collection where the solution package will be added. Required if scope is set to `sitecollection`
|
|
33
33
|
|
|
34
34
|
`--skipFeatureDeployment`
|
|
35
|
-
: When specified and the app supports tenant-wide deployment, deploy it to the whole tenant
|
|
35
|
+
: When specified and the app supports tenant-wide deployment, deploy it to the whole tenant
|
|
36
|
+
|
|
37
|
+
`--overwrite`
|
|
38
|
+
: When specified the workflow will overwrite the existing .sppkg if it is already deployed in the app catalog.
|
|
36
39
|
```
|
|
37
40
|
|
|
38
41
|
<Global />
|
|
@@ -56,8 +59,6 @@ For the `user` login method you will need to create the following secrets in Git
|
|
|
56
59
|
|
|
57
60
|
This method is perfect to test your workflow, in a dev context, for personal usage. It will not work for accounts with MFA.
|
|
58
61
|
|
|
59
|
-
The workflow will overwrite the existing .sppkg if it is already deployed in the app catalog. Overwriting your sppkg file on every deployment is required to make continuous delivery of the latest version of your app which is the aim of the continuous delivery pipeline.
|
|
60
|
-
|
|
61
62
|
:::info
|
|
62
63
|
|
|
63
64
|
Run this command in the SPFx solution folder.
|
|
@@ -66,7 +67,7 @@ Run this command in the SPFx solution folder.
|
|
|
66
67
|
|
|
67
68
|
## Examples
|
|
68
69
|
|
|
69
|
-
Adds a GitHub workflow for a SharePoint Framework project with `application` login method triggered on push to main
|
|
70
|
+
Adds a GitHub workflow for a SharePoint Framework project with `application` login method triggered on push to main
|
|
70
71
|
|
|
71
72
|
```sh
|
|
72
73
|
m365 spfx project github workflow add
|
|
@@ -78,7 +79,7 @@ Adds a GitHub workflow for a SharePoint Framework project with `user` login meth
|
|
|
78
79
|
m365 spfx project github workflow add --manuallyTrigger --loginMethod "user"
|
|
79
80
|
```
|
|
80
81
|
|
|
81
|
-
Adds a GitHub workflow for a SharePoint Framework project with deployment to a site collection app catalog
|
|
82
|
+
Adds a GitHub workflow for a SharePoint Framework project with deployment to a site collection app catalog
|
|
82
83
|
|
|
83
84
|
```sh
|
|
84
85
|
m365 spfx project github workflow add --scope "sitecollection" --siteUrl "https://some.sharepoint.com/sites/someSite"
|
|
@@ -93,10 +93,7 @@ m365 spo applicationcustomizer get --id 14125658-a9bc-4ddf-9c75-1b5767c9a337 --w
|
|
|
93
93
|
"Name": "{4a428b32-08cf-45c7-9986-17585af38806}",
|
|
94
94
|
"RegistrationId": null,
|
|
95
95
|
"RegistrationType": 0,
|
|
96
|
-
"Rights": {
|
|
97
|
-
"High": 0,
|
|
98
|
-
"Low": 0
|
|
99
|
-
},
|
|
96
|
+
"Rights": "{\"High\":\"0\",\"Low\":\"0\"}",
|
|
100
97
|
"Scope": "Web",
|
|
101
98
|
"ScriptBlock": null,
|
|
102
99
|
"ScriptSrc": null,
|
|
@@ -123,6 +120,7 @@ m365 spo applicationcustomizer get --id 14125658-a9bc-4ddf-9c75-1b5767c9a337 --w
|
|
|
123
120
|
Name : {4a428b32-08cf-45c7-9986-17585af38806}
|
|
124
121
|
RegistrationId : null
|
|
125
122
|
RegistrationType : 0
|
|
123
|
+
Rights : {"High":"0","Low":"0"}
|
|
126
124
|
Scope : Web
|
|
127
125
|
ScriptBlock : null
|
|
128
126
|
ScriptSrc : null
|
|
@@ -136,8 +134,8 @@ m365 spo applicationcustomizer get --id 14125658-a9bc-4ddf-9c75-1b5767c9a337 --w
|
|
|
136
134
|
<TabItem value="CSV">
|
|
137
135
|
|
|
138
136
|
```csv
|
|
139
|
-
ClientSideComponentId,ClientSideComponentProperties,CommandUIExtension,Description,Group,Id,ImageUrl,Location,Name,RegistrationId,RegistrationType,Scope,ScriptBlock,ScriptSrc,Sequence,Title,Url,VersionOfUserCustomAction
|
|
140
|
-
9a8b100c-246b-4592-9454-67826523e159,"{""testMessage"":""Test message""}"
|
|
137
|
+
ClientSideComponentId,ClientSideComponentProperties,CommandUIExtension,Description,Group,HostProperties,Id,ImageUrl,Location,Name,RegistrationId,RegistrationType,Rights,Scope,ScriptBlock,ScriptSrc,Sequence,Title,Url,VersionOfUserCustomAction
|
|
138
|
+
9a8b100c-246b-4592-9454-67826523e159,"{""testMessage"":""Test message""}",,,,,4a428b32-08cf-45c7-9986-17585af38806,,ClientSideExtension.ApplicationCustomizer,{4a428b32-08cf-45c7-9986-17585af38806},,0,"{""High"":""0"",""Low"":""0""}",Web,,,65536,HelloWorld,,1.0.1.0
|
|
141
139
|
```
|
|
142
140
|
|
|
143
141
|
</TabItem>
|
|
@@ -159,6 +157,7 @@ m365 spo applicationcustomizer get --id 14125658-a9bc-4ddf-9c75-1b5767c9a337 --w
|
|
|
159
157
|
Location | ClientSideExtension.ApplicationCustomizer
|
|
160
158
|
Name | {4a428b32-08cf-45c7-9986-17585af38806}
|
|
161
159
|
RegistrationType | 0
|
|
160
|
+
Rights | {"High":"0","Low":"0"}
|
|
162
161
|
Scope | Web
|
|
163
162
|
Sequence | 65536
|
|
164
163
|
Title | HelloWorld
|
|
@@ -27,7 +27,7 @@ Using the `-t, --type` option you can choose whether you want to manage the sett
|
|
|
27
27
|
|
|
28
28
|
:::info
|
|
29
29
|
|
|
30
|
-
To use this command you
|
|
30
|
+
To use this command you must be either **SharePoint Administrator** or **Global Administrator**.
|
|
31
31
|
|
|
32
32
|
:::
|
|
33
33
|
|
|
@@ -28,7 +28,7 @@ Using the `-t, --type` option you can choose whether you want to manage the sett
|
|
|
28
28
|
|
|
29
29
|
:::info
|
|
30
30
|
|
|
31
|
-
To use this command you
|
|
31
|
+
To use this command you must be either **SharePoint Administrator** or **Global Administrator**.
|
|
32
32
|
|
|
33
33
|
:::
|
|
34
34
|
|
|
@@ -27,7 +27,7 @@ Using the `-t, --type` option you can choose whether you want to manage the sett
|
|
|
27
27
|
|
|
28
28
|
:::info
|
|
29
29
|
|
|
30
|
-
To use this command you
|
|
30
|
+
To use this command you must be either **SharePoint Administrator** or **Global Administrator**.
|
|
31
31
|
|
|
32
32
|
:::
|
|
33
33
|
|
|
@@ -31,7 +31,7 @@ Using the `-t, --type` option you can choose whether you want to manage the sett
|
|
|
31
31
|
|
|
32
32
|
:::info
|
|
33
33
|
|
|
34
|
-
To use this command you
|
|
34
|
+
To use this command you must be either **SharePoint Administrator** or **Global Administrator**.
|
|
35
35
|
|
|
36
36
|
:::
|
|
37
37
|
|
|
@@ -27,7 +27,7 @@ Using the `-t, --cdnType` option you can choose whether you want to manage the s
|
|
|
27
27
|
|
|
28
28
|
:::info
|
|
29
29
|
|
|
30
|
-
To use this command you
|
|
30
|
+
To use this command you must be either **SharePoint Administrator** or **Global Administrator**.
|
|
31
31
|
|
|
32
32
|
:::
|
|
33
33
|
|
|
@@ -31,7 +31,7 @@ Using the `-t, --cdnType` option you can choose whether you want to manage the s
|
|
|
31
31
|
|
|
32
32
|
:::info
|
|
33
33
|
|
|
34
|
-
To use this command you
|
|
34
|
+
To use this command you must be either **SharePoint Administrator** or **Global Administrator**.
|
|
35
35
|
|
|
36
36
|
:::
|
|
37
37
|
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
-
import Tabs from '@theme/Tabs';
|
|
3
|
-
import TabItem from '@theme/TabItem';
|
|
4
2
|
|
|
5
3
|
# spo file copy
|
|
6
4
|
|
|
@@ -33,14 +31,11 @@ m365 spo file copy [options]
|
|
|
33
31
|
`--nameConflictBehavior [nameConflictBehavior]`
|
|
34
32
|
: Behavior when a document with the same name is already present at the destination. Allowed values: `fail`, `replace`, `rename`. Defaults to `fail`.
|
|
35
33
|
|
|
34
|
+
`--resetAuthorAndCreated`
|
|
35
|
+
: Use this option to clear the author and created date. When not specified, the values from the source file are used.
|
|
36
|
+
|
|
36
37
|
`--bypassSharedLock`
|
|
37
38
|
: This indicates whether a file with a share lock can still be copied. Use this option to copy a file that is locked.
|
|
38
|
-
|
|
39
|
-
`--ignoreVersionHistory`
|
|
40
|
-
: Only copy the most recent version of the file and ignore the version history.
|
|
41
|
-
|
|
42
|
-
`--skipWait`
|
|
43
|
-
: Don't wait for the copy operation to complete.
|
|
44
39
|
```
|
|
45
40
|
|
|
46
41
|
<Global />
|
|
@@ -48,6 +43,7 @@ m365 spo file copy [options]
|
|
|
48
43
|
## Remarks
|
|
49
44
|
|
|
50
45
|
When you specify a value for `nameConflictBehavior`, consider the following:
|
|
46
|
+
|
|
51
47
|
- `fail` will throw an error when the destination file already exists.
|
|
52
48
|
- `replace` will replace the destination file if it already exists.
|
|
53
49
|
- `rename` will add a suffix (e.g. Document1.pdf) when the destination file already exists.
|
|
@@ -60,16 +56,16 @@ Copy a file by server-relative URL to a document library in another site collect
|
|
|
60
56
|
m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourceUrl "/sites/project/Shared Documents/Document.pdf" --targetUrl "/sites/IT/Shared Documents"
|
|
61
57
|
```
|
|
62
58
|
|
|
63
|
-
Copy a file by site-relative URL to a document library in another site collection and
|
|
59
|
+
Copy a file by site-relative URL to a document library in another site collection and clear the author and created date.
|
|
64
60
|
|
|
65
61
|
```sh
|
|
66
|
-
m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourceUrl "/Shared Documents/Document.pdf" --targetUrl "/sites/IT/Shared Documents" --
|
|
62
|
+
m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourceUrl "/Shared Documents/Document.pdf" --targetUrl "/sites/IT/Shared Documents" --resetAuthorAndCreated
|
|
67
63
|
```
|
|
68
64
|
|
|
69
|
-
Copy file by sourceId (UniqueId) to a document library in another site collection and rename the file
|
|
65
|
+
Copy file by sourceId (UniqueId) to a document library in another site collection and rename the file.
|
|
70
66
|
|
|
71
67
|
```sh
|
|
72
|
-
m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourceId "b2307a39-e878-458b-bc90-03bc578531d6" --targetUrl "/sites/IT/Shared Documents" --newName "Report"
|
|
68
|
+
m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourceId "b2307a39-e878-458b-bc90-03bc578531d6" --targetUrl "/sites/IT/Shared Documents" --newName "Report.pdf"
|
|
73
69
|
```
|
|
74
70
|
|
|
75
71
|
Copy file by sourceId (UniqueId) to a document library in another site collection with a new name, rename the file if it already exists.
|
|
@@ -80,111 +76,8 @@ m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourc
|
|
|
80
76
|
|
|
81
77
|
## Response
|
|
82
78
|
|
|
83
|
-
### Standard Response
|
|
84
|
-
|
|
85
|
-
<Tabs>
|
|
86
|
-
<TabItem value="JSON">
|
|
87
|
-
|
|
88
|
-
```json
|
|
89
|
-
{
|
|
90
|
-
"CheckInComment": "",
|
|
91
|
-
"CheckOutType": 2,
|
|
92
|
-
"ContentTag": "{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1,1",
|
|
93
|
-
"CustomizedPageStatus": 0,
|
|
94
|
-
"ETag": "\"{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1\"",
|
|
95
|
-
"Exists": true,
|
|
96
|
-
"IrmEnabled": false,
|
|
97
|
-
"Length": "5987",
|
|
98
|
-
"Level": 1,
|
|
99
|
-
"LinkingUri": null,
|
|
100
|
-
"LinkingUrl": "",
|
|
101
|
-
"MajorVersion": 1,
|
|
102
|
-
"MinorVersion": 0,
|
|
103
|
-
"Name": "Test1.docx",
|
|
104
|
-
"ServerRelativeUrl": "/sites/project-x/documents/Test1.docx",
|
|
105
|
-
"TimeCreated": "2022-10-30T10:16:18Z",
|
|
106
|
-
"TimeLastModified": "2022-10-30T10:16:18Z",
|
|
107
|
-
"Title": null,
|
|
108
|
-
"UIVersion": 512,
|
|
109
|
-
"UIVersionLabel": "1.0",
|
|
110
|
-
"UniqueId": "b2307a39-e878-458b-bc90-03bc578531d6"
|
|
111
|
-
}
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
</TabItem>
|
|
115
|
-
<TabItem value="Text">
|
|
116
|
-
|
|
117
|
-
```text
|
|
118
|
-
CheckInComment :
|
|
119
|
-
CheckOutType : 2
|
|
120
|
-
ContentTag : {03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1,1
|
|
121
|
-
CustomizedPageStatus: 0
|
|
122
|
-
ETag : "{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1"
|
|
123
|
-
Exists : true
|
|
124
|
-
IrmEnabled : false
|
|
125
|
-
Length : 5987
|
|
126
|
-
Level : 1
|
|
127
|
-
LinkingUri : null
|
|
128
|
-
LinkingUrl :
|
|
129
|
-
MajorVersion : 1
|
|
130
|
-
MinorVersion : 0
|
|
131
|
-
Name : Test1.docx
|
|
132
|
-
ServerRelativeUrl : /sites/project-x/documents/Test1.docx
|
|
133
|
-
TimeCreated : 2022-10-30T10:16:18Z
|
|
134
|
-
TimeLastModified : 2022-10-30T10:16:18Z
|
|
135
|
-
Title : null
|
|
136
|
-
UIVersion : 512
|
|
137
|
-
UIVersionLabel : 1.0
|
|
138
|
-
UniqueId : b2307a39-e878-458b-bc90-03bc578531d6
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
</TabItem>
|
|
142
|
-
<TabItem value="CSV">
|
|
143
|
-
|
|
144
|
-
```csv
|
|
145
|
-
CheckInComment,CheckOutType,ContentTag,CustomizedPageStatus,ETag,Exists,IrmEnabled,Length,Level,LinkingUri,LinkingUrl,MajorVersion,MinorVersion,Name,ServerRelativeUrl,TimeCreated,TimeLastModified,Title,UIVersion,UIVersionLabel,UniqueId
|
|
146
|
-
,2,"{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1,1",0,"""{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1""",1,,5987,1,,,1,0,Test1.docx,/sites/project-x/documents/Test1.docx,2022-10-30T10:16:18Z,2022-10-30T10:16:18Z,,512,1.0,b2307a39-e878-458b-bc90-03bc578531d6
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
</TabItem>
|
|
150
|
-
<TabItem value="Markdown">
|
|
151
|
-
|
|
152
|
-
```md
|
|
153
|
-
# spo file copy --webUrl "https://contoso.sharepoint.com/sites/IT" --sourceUrl "/Shared Documents/Document.docx" --targetUrl "/sites/project-x/Shared Documents"
|
|
154
|
-
|
|
155
|
-
Date: 10/3/2023
|
|
156
|
-
|
|
157
|
-
## b2307a39-e878-458b-bc90-03bc578531d6
|
|
158
|
-
|
|
159
|
-
Property | Value
|
|
160
|
-
---------|-------
|
|
161
|
-
CheckInComment |
|
|
162
|
-
CheckOutType | 2
|
|
163
|
-
ContentTag | {03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1,1
|
|
164
|
-
CustomizedPageStatus | 0
|
|
165
|
-
ETag | "{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1"
|
|
166
|
-
Exists | true
|
|
167
|
-
ExistsAllowThrowForPolicyFailures | true
|
|
168
|
-
IrmEnabled | false
|
|
169
|
-
Length | 5987
|
|
170
|
-
Level | 1
|
|
171
|
-
LinkingUri | https://contoso.sharepoint.com/sites/project-x/shared%20documents/Document.docx?d=w59d4e6fcf6f94ce78bea0273cedb1a19
|
|
172
|
-
LinkingUrl | https://contoso.sharepoint.com/sites/project-x/shared documents/Document.docx?d=w59d4e6fcf6f94ce78bea0273cedb1a19
|
|
173
|
-
MajorVersion | 1
|
|
174
|
-
MinorVersion | 0
|
|
175
|
-
Name | Document.docx
|
|
176
|
-
ServerRelativeUrl | /sites/project-x/shared documents/Document.docx
|
|
177
|
-
TimeCreated | 2023-05-23T09:51:34Z
|
|
178
|
-
TimeLastModified | 2023-05-23T10:13:01Z
|
|
179
|
-
Title |
|
|
180
|
-
UIVersion | 1536
|
|
181
|
-
UIVersionLabel | 1.0
|
|
182
|
-
UniqueId | b2307a39-e878-458b-bc90-03bc578531d6
|
|
183
|
-
```
|
|
184
|
-
|
|
185
|
-
</TabItem>
|
|
186
|
-
</Tabs>
|
|
187
|
-
|
|
188
|
-
### `skipWait` response
|
|
189
|
-
|
|
190
79
|
The command won't return a response on success.
|
|
80
|
+
|
|
81
|
+
## More information
|
|
82
|
+
|
|
83
|
+
- Copy items from a SharePoint document library: [https://support.office.com/en-us/article/move-or-copy-items-from-a-sharepoint-document-library-00e2f483-4df3-46be-a861-1f5f0c1a87bc](https://support.office.com/en-us/article/move-or-copy-items-from-a-sharepoint-document-library-00e2f483-4df3-46be-a861-1f5f0c1a87bc)
|