Skip to content

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

Important

Before using this command, log in to a SharePoint Online site, using the spo login command.

Remarks

To grant access to a site design, you have to first log in to a SharePoint site using the spo login command, eg. spo login https://contoso.sharepoint.com.

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