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 id or title but not both
-t, --listTitle [listTitle]
- Title of the list. Specify either id or title but not both
-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,csv
. Defaultjson
--verbose
- Runs command with verbose logging
--debug
- Runs command with debug logging
Examples¶
Restore role inheritance of list with ID 0cd891ef-afce-4e55-b836-fce03286cccf located in site https://contoso.sharepoint.com/sites/project-x
m365 spo list roleinheritance reset --webUrl https://contoso.sharepoint.com/sites/project-x --listId 0cd891ef-afce-4e55-b836-fce03286cccf
Restore role inheritance of list with title test located in site https://contoso.sharepoint.com/sites/project-x
m365 spo list roleinheritance reset --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle test