Dynamic group rule syntax to show OneDrive users

Copper Contributor

Hi guys


im trying to create a rule syntax that will pull all users who are licensed and have a OneDrive.


is anyone able to help?



1 Reply



May pull a list by using this:


Get-SPOSite -IncludePersonalSite $true -Limit all -Filter "Url -like '-my.sharepoint.com/personal/'" | Select URL, Owner, StorageQuota, StorageUsageCurrent, LastContentModifiedDate | Export-Csv -Path $CSVFile -NoTypeInformation