onedrive report usageaccountdetail
Gets details about OneDrive usage by account
Usage
m365 onedrive report usageaccountdetail [options]
Options
-p, --period [period]
The length of time over which the report is aggregated. Supported values
D7
,D30
,D90
,D180
.-d, --date [date]
The date for which you would like to view the users who performed any activity. Supported date format is YYYY-MM-DD. Specify the date or period, but 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 isoptions
.--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]
Output type.
json
,text
,csv
,md
,none
. Defaultjson
.--verbose
Runs command with verbose logging.
--debug
Runs command with debug logging.
Remarks
This command supports only csv and json output.
Examples
Gets details about OneDrive usage by account for the last week
m365 onedrive report usageaccountdetail --period D7
Gets details about OneDrive usage by account for May 1, 2019
m365 onedrive report usageaccountdetail --date 2019-05-01
Gets details about OneDrive usage by account for the last week and exports the report data in the specified path in text format
m365 onedrive report usageaccountdetail --period D7 --output text > "onedriveusageaccountdetail.txt"
Gets details about OneDrive usage by account for the last week and exports the report data in the specified path in json format
m365 onedrive report usageaccountdetail --period D7 --output json > "onedriveusageaccountdetail.json"
Response
- JSON
- Text
- CSV
- Markdown
[
{
"Report Refresh Date": "2023-05-20",
"Site URL": "93212C12CBFBD450189A52F29CF6397F",
"Owner Display Name": "24C1B29099C8749194796DFEF8B50A40",
"Is Deleted": "False",
"Last Activity Date": "2022-12-27",
"File Count": "128",
"Active File Count": "0",
"Storage Used (Byte)": "104122210",
"Storage Allocated (Byte)": "1099511627776",
"Owner Principal Name": "30B283368E548933B1D03A64A6B14A89",
"Report Period": "7"
}
]
Report Refresh Date,Site URL,Owner Display Name,Is Deleted,Last Activity Date,File Count,Active File Count,Storage Used (Byte),Storage Allocated (Byte),Owner Principal Name,Report Period
2023-05-20,93212C12CBFBD450189A52F29CF6397F,24C1B29099C8749194796DFEF8B50A40,False,2022-12-27,128,0,104122210,1099511627776,30B283368E548933B1D03A64A6B14A89,7
Report Refresh Date,Site URL,Owner Display Name,Is Deleted,Last Activity Date,File Count,Active File Count,Storage Used (Byte),Storage Allocated (Byte),Owner Principal Name,Report Period
2023-05-20,93212C12CBFBD450189A52F29CF6397F,24C1B29099C8749194796DFEF8B50A40,False,2022-12-27,128,0,104122210,1099511627776,30B283368E548933B1D03A64A6B14A89,7
Report Refresh Date,Site URL,Owner Display Name,Is Deleted,Last Activity Date,File Count,Active File Count,Storage Used (Byte),Storage Allocated (Byte),Owner Principal Name,Report Period
2023-05-20,93212C12CBFBD450189A52F29CF6397F,24C1B29099C8749194796DFEF8B50A40,False,2022-12-27,128,0,104122210,1099511627776,30B283368E548933B1D03A64A6B14A89,7