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

Copper Contributor

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

1 Reply

@sgsmittal I solved it using microsoft search api using silent login to generate token specific to current user

 

https://docs.microsoft.com/en-us/graph/search-concept-files