Forum Discussion
Retrieve Channel Folder with Graph API returns 502 Bad Gateway
- Jan 17, 2020
ck1521, Could you please give try to following api call:
https://graph.microsoft.com/v1.0/sites/{site-id}/drive/root/children/
Trinetra-MSFT I am also having the same issue. I am trying to get the site url of a private channel and since private channel has separate site collection so this url https://graph.microsoft.com/beta/groups/{team-id}/drive/root/children does not provide the desired result.
To get private channel site url, I am using https://graph.microsoft.com/beta/teams/group-id/channels/private-channel-Id/filesFolder but this throws 502 bad gateway in one tenant but in other tenant it works. I tried all possible ways to fix it i.e. by changing permissions to the app but it didn't work and I am stuck. Could you suggest why I am facing this issue in one tenant and is there any other way to get private channel site collection url?
Please note that, before sending a request to this given url I am sending another request to get all private channels and that works in both the tenants but this one fails.
-Prashant.
prashantguptag I'm having the exact same issue.