Skip to content

spo list roleinheritance reset

Restores role inheritance on list or library

Usage

m365 spo list roleinheritance reset [options]

Options

-u, --webUrl <webUrl>
URL of the site where the list is located.
-i, --listId [listId]
ID of the list. Specify either listTitle, listId, or listUrl.
-t, --listTitle [listTitle]
Title of the list. Specify either listTitle, listId, or listUrl.
--listUrl [listUrl]
Server- or site-relative URL of the list. Specify either listTitle, listId, or listUrl.
--confirm
Do not prompt for confirmation before resetting role inheritance.
-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 full.
--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
Output type. json,text,csv,md. Default json
--verbose
Runs command with verbose logging
--debug
Runs command with debug logging

Examples

Restores role inheritance of a specific list by id in a specific site.

m365 spo list roleinheritance reset --webUrl https://contoso.sharepoint.com/sites/project-x --listId 0cd891ef-afce-4e55-b836-fce03286cccf

Restores role inheritance of a specific list by title in a specific site.

m365 spo list roleinheritance reset --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle test

Restores role inheritance of a specific list by url in a specific site.

m365 spo list roleinheritance reset --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl '/sites/project-x/lists/events'

Restores role inheritance of list a specific list by title without prompting for confirmation.

m365 spo list roleinheritance reset --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle test --confirm

Response

The command won't return a response on success.