spo file sharinginfo get
Generates a sharing information report for the specified file
Usage
m365 spo file sharinginfo get [options]
Options
-u, --webUrl <webUrl>The URL of the site where the file is located
-f, --fileUrl [fileUrl]The server- or site-relative URL of the file for which to build the report. Specify either
fileUrlorfileIdbut not both-i, --fileId [fileId]The UniqueId (GUID) of the file for which to build the report. Specify either
fileUrlorfileIdbut not both
-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 isfull.--query [query]JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]Output type.
json,text,csv,md. Defaultjson.--verboseRuns command with verbose logging.
--debugRuns command with debug logging.
Examples
Get file sharing information report for the file with server-relative url /sites/M365CLI/Shared Documents/SharedFile.docx located in site https://contoso.sharepoint.com/sites/project-x
m365 spo file sharinginfo get --webUrl https://contoso.sharepoint.com/sites/project-x --fileUrl "/sites/M365CLI/Shared Documents/SharedFile.docx"
Get file sharing information report for file with id (UniqueId) b2307a39-e878-458b-bc90-03bc578531d6 located in site https://contoso.sharepoint.com/sites/project-x
m365 spo file sharinginfo get --webUrl https://contoso.sharepoint.com/sites/project-x --fileId "b2307a39-e878-458b-bc90-03bc578531d6"