spo sitedesign rights grant¶
Grants access to a site design for one or more principals
Usage¶
m365 spo sitedesign rights grant [options]
Options¶
-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
oralias@<domain name>.com
-r, --rights <rights>
- Rights to grant to principals. Available values
View
-h, --help
- output usage information
--query [query]
- JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
- Output type.
json,text
. Defaulttext
--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
m365 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
m365 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
m365 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