Skip to content

Commit e614c89

Browse files
committed
Updated readme to include PnP Powershell method of adding permission scopes
1 parent 6a13779 commit e614c89

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,19 @@ Version|Date|Comments
5050
- `gulp bundle --ship`
5151
- `gulp package-solution --ship`
5252
- Add to AppCatalog and deploy
53-
- Assign 'User.Read.All' delegated permissions to the 'SharePoint Online Client Extensibility Web Application Principal', easiest way is with [CLI for Microsoft 365](https://pnp.github.io/cli-microsoft365/):
53+
- Assign 'User.Read.All' delegated permissions to the 'SharePoint Online Client Extensibility Web Application Principal', with [CLI for Microsoft 365](https://pnp.github.io/cli-microsoft365/) or [PnP PowerShell](https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/grant-pnptenantserviceprincipalpermission?view=sharepoint-ps)
54+
55+
### CLI for Microsoft 365
5456
```
5557
m365 login
5658
m365 spo serviceprincipal grant add --resource 'Microsoft Graph' --scope 'User.Read.All'
5759
```
5860

61+
### PnP PowerShell
62+
```
63+
Grant-PnPTenantServicePrincipalPermission -Scope "User.Read.All" -Resource "Microsoft Graph"
64+
```
65+
5966
---
6067

6168
## Acknowledgements / Inspiration

0 commit comments

Comments
 (0)