OneDrive / onedrive-api-docs

Official documentation for the OneDrive API
MIT License
451 stars 228 forks source link

"Get a special folder by name" bug #1768

Open Alex-Growtek opened 9 months ago

Alex-Growtek commented 9 months ago

As per Get a special folder by name documentation, I can perform the following query to get data about a certain Special folder in OneDrive.

It works perfectly if I query myself: https://graph.microsoft.com/v1.0/me/drive/special/documents

However, if I enter an actual "userId" https://graph.microsoft.com/v1.0/{userId}/drive/special/documents I'm getting data from a shared site, instead of my personal.

{me} webUrl: https://contoso-my.sharepoint.com/personal/alex_growtek_contoso_com/Documents/Documents

{userId} webUrl: https://contoso.sharepoint.com/Shared%20Documents/Documents

Is it a bug? As I couldn't find the way to fix that.