How can I efficiently determine if a driveItem is within a Teams site?

catmanjan 61 Reputation points
2025-03-06T00:12:49+00:00

We want to determine whether a particular driveItem is in a Teams site.

Currently, we do a search of all Groups to see if they have the resourceProvisioningOptions with the value Team in it, however this is slow.

Is there a faster way?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,282 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.