@pnp/cli-microsoft365 10.5.0-beta.395d550 → 10.5.0-beta.b872a3f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.cjs +1 -0
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/m365/graph/commands/directoryextension/directoryextension-add.js +85 -0
- package/dist/m365/graph/commands/directoryextension/directoryextension-get.js +82 -0
- package/dist/m365/graph/commands/directoryextension/directoryextension-remove.js +93 -0
- package/dist/m365/graph/commands.js +3 -0
- package/dist/m365/spo/commands/page/page-section-remove.js +81 -0
- package/dist/m365/spo/commands.js +1 -0
- package/dist/request.js +5 -0
- package/dist/utils/directoryExtension.js +25 -0
- package/dist/utils/entraApp.js +28 -0
- package/docs/docs/cmd/graph/directoryextension/directoryextension-add.mdx +123 -0
- package/docs/docs/cmd/graph/directoryextension/directoryextension-get.mdx +118 -0
- package/docs/docs/cmd/graph/directoryextension/directoryextension-remove.mdx +57 -0
- package/docs/docs/cmd/spo/page/page-section-remove.mdx +47 -0
- package/package.json +1 -1
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# graph directoryextension get
|
|
6
|
+
|
|
7
|
+
Retrieves the definition of a directory extension
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 graph directoryextension get [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
```md definition-list
|
|
18
|
+
`-i, --id [id]`
|
|
19
|
+
: The ID of the directory extension. Specify either `id` or `name`, but not both.
|
|
20
|
+
|
|
21
|
+
`-n, --name [name]`
|
|
22
|
+
: The name of the directory extension. Specify either `id` or `name`, but not both.
|
|
23
|
+
|
|
24
|
+
`--appId [appId]`
|
|
25
|
+
: Application (client) ID of the Entra application where the directory extension is registered. Specify either `appId`, `appObjectId` or `appName`, but not multiple.
|
|
26
|
+
|
|
27
|
+
`--appObjectId [appObjectId]`
|
|
28
|
+
: Object ID of the Entra application where the directory extension is registered. Specify either `appId`, `appObjectId` or `appName`, but not multiple.
|
|
29
|
+
|
|
30
|
+
`--appName [appName]`
|
|
31
|
+
: The name of Entra application where the directory extension is registered. Specify either `appId`, `appObjectId` or `appName`, but not multiple.
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
<Global />
|
|
35
|
+
|
|
36
|
+
## Examples
|
|
37
|
+
|
|
38
|
+
Get directory extension by id registered for an application specified by app id.
|
|
39
|
+
|
|
40
|
+
```sh
|
|
41
|
+
m365 directoryextension get --id 1f0f15e3-925d-40f0-8fc8-9d3ad135bce0 --appId fd918e4b-c821-4efb-b50a-5eddd23afc6f
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Get directory extension by name registered for an application specified by name.
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
m365 directoryextension get --name extension_105be60b603845fea385e58772d9d630_GitHubWorkAccount --appName ContosoApp
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
## Response
|
|
52
|
+
|
|
53
|
+
<Tabs>
|
|
54
|
+
<TabItem value="JSON">
|
|
55
|
+
|
|
56
|
+
```json
|
|
57
|
+
{
|
|
58
|
+
"id": "522817ae-5c95-4243-96c1-f85231fcbc1f",
|
|
59
|
+
"deletedDateTime": null,
|
|
60
|
+
"appDisplayName": "ContosoApp",
|
|
61
|
+
"dataType": "String",
|
|
62
|
+
"isMultiValued": false,
|
|
63
|
+
"isSyncedFromOnPremises": false,
|
|
64
|
+
"name": "extension_105be60b603845fea385e58772d9d630_githubworkaccount",
|
|
65
|
+
"targetObjects": [
|
|
66
|
+
"User"
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
</TabItem>
|
|
72
|
+
<TabItem value="Text">
|
|
73
|
+
|
|
74
|
+
```text
|
|
75
|
+
appDisplayName : ContosoApp
|
|
76
|
+
dataType : String
|
|
77
|
+
deletedDateTime : null
|
|
78
|
+
id : 01e77f60-3dde-4fa3-825b-cac8048994a8
|
|
79
|
+
isMultiValued : false
|
|
80
|
+
isSyncedFromOnPremises: false
|
|
81
|
+
name : extension_105be60b603845fea385e58772d9d630_githubworkaccount
|
|
82
|
+
targetObjects : ["User"]
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
</TabItem>
|
|
86
|
+
<TabItem value="CSV">
|
|
87
|
+
|
|
88
|
+
```csv
|
|
89
|
+
id,deletedDateTime,appDisplayName,dataType,isMultiValued,isSyncedFromOnPremises,name
|
|
90
|
+
b0937b01-49ce-45c7-a52a-727954f092ea,,ContosoApp,String,,,extension_105be60b603845fea385e58772d9d630_githubworkaccount
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
</TabItem>
|
|
94
|
+
<TabItem value="Markdown">
|
|
95
|
+
|
|
96
|
+
```md
|
|
97
|
+
# graph directoryextension add --debug "false" --verbose "false" --name "githubworkaccount" --appName "ContosoApp" --dataType "String" --targetObjects "User"
|
|
98
|
+
|
|
99
|
+
Date: 3/2/2025
|
|
100
|
+
|
|
101
|
+
## extension_105be60b603845fea385e58772d9d630_githubworkaccount (cec3c38e-3f4a-4ca8-9523-afa47016f51b)
|
|
102
|
+
|
|
103
|
+
Property | Value|
|
|
104
|
+
---------|-------|
|
|
105
|
+
id | cec3c38e-3f4a-4ca8-9523-afa47016f51b
|
|
106
|
+
appDisplayName | ContosoApp
|
|
107
|
+
dataType | String
|
|
108
|
+
isMultiValued | false
|
|
109
|
+
isSyncedFromOnPremises | false
|
|
110
|
+
name | extension\_105be60b603845fea385e58772d9d630\_githubworkaccount
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
</TabItem>
|
|
114
|
+
</Tabs>
|
|
115
|
+
|
|
116
|
+
## More information
|
|
117
|
+
|
|
118
|
+
- Directory extensions: https://learn.microsoft.com/graph/extensibility-overview#directory-microsoft-entra-id-extensions
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
|
|
3
|
+
# graph directoryextension remove
|
|
4
|
+
|
|
5
|
+
Removes a directory extension
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
m365 graph directoryextension remove [options]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Options
|
|
14
|
+
|
|
15
|
+
```md definition-list
|
|
16
|
+
`-i, --id [id]`
|
|
17
|
+
: The ID of the directory extension to remove. Specify either `id` or `name`, but not both.
|
|
18
|
+
|
|
19
|
+
`-n, --name [name]`
|
|
20
|
+
: The name of the directory extension to remove. Specify either `id` or `name`, but not both.
|
|
21
|
+
|
|
22
|
+
`--appId [appId]`
|
|
23
|
+
: Application (client) ID of the Entra application where the directory extension is registered. Specify either `appId`, `appObjectId` or `appName`, but not multiple.
|
|
24
|
+
|
|
25
|
+
`--appObjectId [appObjectId]`
|
|
26
|
+
: Object ID of the Entra application where the directory extension is registered. Specify either `appId`, `appObjectId` or `appName`, but not multiple.
|
|
27
|
+
|
|
28
|
+
`--appName [appName]`
|
|
29
|
+
: The name of Entra application where the directory extension is registered. Specify either `appId`, `appObjectId` or `appName`, but not multiple.
|
|
30
|
+
|
|
31
|
+
`-f, --force`
|
|
32
|
+
: Don't prompt for confirmation before removing the directory extension
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
<Global />
|
|
36
|
+
|
|
37
|
+
## Examples
|
|
38
|
+
|
|
39
|
+
Remove a directory extension specified by name from an application specified by app object id and don't prompt for confirmation
|
|
40
|
+
|
|
41
|
+
```sh
|
|
42
|
+
m365 graph directoryextension remove --name extension_105be60b603845fea385e58772d9d630_githubworkaccount --appObjectId 1caf7dcd-7e83-4c3a-94f7-932a1299c844 --force
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Remove a directory extension specified by id from an application specified by app name and don't prompt for confirmation
|
|
46
|
+
|
|
47
|
+
```sh
|
|
48
|
+
m365 graph directoryextension remove --id 522817ae-5c95-4243-96c1-f85231fcbc1f --appName ContosoApp
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Response
|
|
52
|
+
|
|
53
|
+
The command won't return a response on success.
|
|
54
|
+
|
|
55
|
+
## More information
|
|
56
|
+
|
|
57
|
+
- Directory extensions: https://learn.microsoft.com/graph/extensibility-overview#directory-microsoft-entra-id-extensions
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# spo page section remove
|
|
6
|
+
|
|
7
|
+
Removes the specified section from a modern page
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 spo page section remove [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
```md definition-list
|
|
18
|
+
`-u, --webUrl <webUrl>`
|
|
19
|
+
: URL of the site where the page is located.
|
|
20
|
+
|
|
21
|
+
`-n, --pageName <pageName>`
|
|
22
|
+
: Name of the page from which to remove a section.
|
|
23
|
+
|
|
24
|
+
`-s, --section <section>`
|
|
25
|
+
: ID of the section to be removed.
|
|
26
|
+
|
|
27
|
+
`-f, --force`
|
|
28
|
+
: Don't prompt for confirmation.
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
<Global />
|
|
32
|
+
|
|
33
|
+
## Remarks
|
|
34
|
+
|
|
35
|
+
If the specified `pageName` doesn't refer to an existing modern page, you will get a _File doesn't exists_ error.
|
|
36
|
+
|
|
37
|
+
## Examples
|
|
38
|
+
|
|
39
|
+
Remove section of a modern page
|
|
40
|
+
|
|
41
|
+
```sh
|
|
42
|
+
m365 spo page section remove --webUrl https://contoso.sharepoint.com/sites/team-a --pageName home.aspx --section 1
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Response
|
|
46
|
+
|
|
47
|
+
The command won't return a response on success.
|
package/package.json
CHANGED