How to access teams files/folders of guest user via graph api

449 Views Asked by At

Getting all the files/folders from the specific MSTeam channel. "https://graph.microsoft.com/v1.0/users/{Userid/UPN}/drives/{Drive id}/items/{ID}/children"

by using the above API I am able to get all the files and folders but it is only working for the owner and members but while trying to make the same call by passing GUEST user id it throws the below error.

{ "error": { "code": "ResourceNotFound", "message": "User's mysite not found.", "innerError": { "date": "2022-05-02T12:21:33", "request-id": "78c5aaeb-2422-4c4f-a19c-54eb481e7ac5", "client-request-id": "378eec9c-2b2e-bb71-dr6e-8f7de1ee7wedf" } } }

Is there any way to get files/folder from a specific MS Team Channel by passing userid/UPN of guest user.

0

There are 0 best solutions below