Forum Discussion
Graph api to list one drive for business users
- Jun 08, 2020
There's no single endpoint/query that can give you that information. You can either get the list via SPO PowerShell or CSOM, or alternatively get a list of all the users, then for each user check for the presence of ODFB via the /drive/root endpoint. Here's a sample script I wrote a while back: https://github.com/michevnew/PowerShell/blob/master/Graph_ODFB_shared_files.ps1
There's no single endpoint/query that can give you that information. You can either get the list via SPO PowerShell or CSOM, or alternatively get a list of all the users, then for each user check for the presence of ODFB via the /drive/root endpoint. Here's a sample script I wrote a while back: https://github.com/michevnew/PowerShell/blob/master/Graph_ODFB_shared_files.ps1
- DesusaiJun 08, 2020Copper Contributor
Thank you VasilMichev . It was nice idea