Skip to content

Commit 3f76616

Browse files
authored
Adds minimal permissions for 'spo list webhook' commands. Closes #7483
1 parent 928bcdf commit 3f76616

5 files changed

Lines changed: 99 additions & 0 deletions

File tree

docs/docs/cmd/spo/list/list-webhook-add.mdx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,25 @@ m365 spo list webhook add [options]
3939

4040
<Global />
4141

42+
## Permissions
43+
44+
<Tabs>
45+
<TabItem value="Delegated">
46+
47+
| Resource | Permissions |
48+
|------------|----------------|
49+
| SharePoint | AllSites.Write |
50+
51+
</TabItem>
52+
<TabItem value="Application">
53+
54+
| Resource | Permissions |
55+
|------------|---------------------|
56+
| SharePoint | Sites.ReadWrite.All |
57+
58+
</TabItem>
59+
</Tabs>
60+
4261
## Examples
4362

4463
Add a web hook to the list retrieved by Title located in a specific site with a specific notification url and the default expiration date

docs/docs/cmd/spo/list/list-webhook-get.mdx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,25 @@ m365 spo list webhook get [options]
3737

3838
If the specified `id` doesn't refer to an existing webhook, you will get a `404 - "404 FILE NOT FOUND"` error.
3939

40+
## Permissions
41+
42+
<Tabs>
43+
<TabItem value="Delegated">
44+
45+
| Resource | Permissions |
46+
|------------|----------------|
47+
| SharePoint | AllSites.Write |
48+
49+
</TabItem>
50+
<TabItem value="Application">
51+
52+
| Resource | Permissions |
53+
|------------|---------------------|
54+
| SharePoint | Sites.ReadWrite.All |
55+
56+
</TabItem>
57+
</Tabs>
58+
4059
## Examples
4160

4261
Return information about a specific webhook which belongs to a list retrieved by ID in a specific site

docs/docs/cmd/spo/list/list-webhook-list.mdx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,25 @@ m365 spo list webhook list [options]
3030

3131
<Global />
3232

33+
## Permissions
34+
35+
<Tabs>
36+
<TabItem value="Delegated">
37+
38+
| Resource | Permissions |
39+
|------------|----------------------|
40+
| SharePoint | AllSites.FullControl |
41+
42+
</TabItem>
43+
<TabItem value="Application">
44+
45+
| Resource | Permissions |
46+
|------------|-----------------------|
47+
| SharePoint | Sites.FullControl.All |
48+
49+
</TabItem>
50+
</Tabs>
51+
3352
## Examples
3453

3554
List all webhooks for a list with a specific ID in a specific site

docs/docs/cmd/spo/list/list-webhook-remove.mdx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import Global from '../../_global.mdx';
2+
import Tabs from '@theme/Tabs';
3+
import TabItem from '@theme/TabItem';
24

35
# spo list webhook remove
46

@@ -38,6 +40,25 @@ m365 spo list webhook remove [options]
3840

3941
If the specified id doesn't refer to an existing webhook, you will get a `404 - "404 FILE NOT FOUND"` error.
4042

43+
## Permissions
44+
45+
<Tabs>
46+
<TabItem value="Delegated">
47+
48+
| Resource | Permissions |
49+
|------------|----------------|
50+
| SharePoint | AllSites.Write |
51+
52+
</TabItem>
53+
<TabItem value="Application">
54+
55+
| Resource | Permissions |
56+
|------------|---------------------|
57+
| SharePoint | Sites.ReadWrite.All |
58+
59+
</TabItem>
60+
</Tabs>
61+
4162
## Examples
4263

4364
Remove webhook with a specific ID from a list retrieved by ID in a specific site

docs/docs/cmd/spo/list/list-webhook-set.mdx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import Global from '../../_global.mdx';
2+
import Tabs from '@theme/Tabs';
3+
import TabItem from '@theme/TabItem';
24

35
# spo list webhook set
46

@@ -44,6 +46,25 @@ m365 spo list webhook set [options]
4446

4547
If the specified `id` doesn't refer to an existing webhook, you will get a `404 - "404 FILE NOT FOUND"` error.
4648

49+
## Permissions
50+
51+
<Tabs>
52+
<TabItem value="Delegated">
53+
54+
| Resource | Permissions |
55+
|------------|----------------|
56+
| SharePoint | AllSites.Write |
57+
58+
</TabItem>
59+
<TabItem value="Application">
60+
61+
| Resource | Permissions |
62+
|------------|---------------------|
63+
| SharePoint | Sites.ReadWrite.All |
64+
65+
</TabItem>
66+
</Tabs>
67+
4768
## Examples
4869

4970
Update the notification url of a webhook with a specific ID attached to a list with a specific ID in a specific site to a specific URL

0 commit comments

Comments
 (0)