spo sitedesign rights grant¶
Grants access to a site design for one or more principals
Usage¶
spo sitedesign rights grant [options]
Options¶
Option | Description |
---|---|
--help |
output usage information |
-i, --id <id> |
The ID of the site design to grant rights on |
-p, --principals <principals> |
Comma-separated list of principals to grant view rights. Principals can be users or mail-enabled security groups in the form of alias or alias@<domain name>.com |
-r, --rights <rights> |
Rights to grant to principals. Available values View |
-o, --output [output] |
Output type. json|text . Default text |
--verbose |
Runs command with verbose logging |
--debug |
Runs command with debug logging |
Examples¶
Grant user with alias PattiF view permission to the specified site design
spo sitedesign rights grant --id 9b142c22-037f-4a7f-9017-e9d8c0e34b98 --principals PattiF --rights View
Grant users with aliases PattiF and AdeleV view permission to the specified site design
spo sitedesign rights grant --id 9b142c22-037f-4a7f-9017-e9d8c0e34b98 --principals PattiF,AdeleV --rights View
Grant user with email PattiF@contoso.com view permission to the specified site design
spo sitedesign rights grant --id 9b142c22-037f-4a7f-9017-e9d8c0e34b98 --principals PattiF@contoso.com --rights View
More information¶
- SharePoint site design and site script overview: https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-overview