Forum Discussion

sgsmittal's avatar
sgsmittal
Copper Contributor
Jul 01, 2020

graph api to get all files from all team channels based on user access

I am trying to find an api using which I can get all files from all the teams/channels where particular user has access to.

 

I tried/used microsoft search api for files. but that return all files based on delegate access token user not specific to a particular user

 

For e.g:-  If I generate delegate token using "sgupta" but now I have to use the api to find all the files accessible to "abhishek" .  I can't achieve it.

 

I profiled the microsoft teams. they are grabbing all team site urls to get the files but that is not efficient call for a large organization

 https://teams.microsoft.com/api/mt/apac/beta/teams/recent/files/aggregatefiles

Resources