Skip to main content

spo sitedesign rights grant

Grants access to a site design for one or more principals

Usage

m365 spo sitedesign rights grant [options]

Options

-i, --siteDesignId <siteDesignId>

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

-h, --help [help]

Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are options, examples, remarks, response, full. Default is options.

--query [query]

JMESPath query string. See http://jmespath.org/ for more information and examples.

-o, --output [output]

Output type. json, text, csv, md, none. Default json.

--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 --siteDesignId 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 --siteDesignId 9b142c22-037f-4a7f-9017-e9d8c0e34b98 --principals "PattiF,AdeleV" --rights View

Grant user by email view permission to the specified site design

m365 spo sitedesign rights grant --siteDesignId 9b142c22-037f-4a7f-9017-e9d8c0e34b98 --principals PattiF@contoso.com --rights View

Response

The command won't return a response on success.

More information

CTRL + M