How can I limit an application access to view only a subset of the users in Microsoft Graph API, MS Teams endpints?

Noga Malach 20 Reputation points
2025-02-13T12:55:02.2133333+00:00

What are the methods to restrict an application, that is using the Microsoft Graph API to fetch users conversations, access so that it can only view data of Microsoft Teams endpoints for a specific subset of users, ?

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,898 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,101 questions
Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
963 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vasil Michev 114K Reputation points MVP
    2025-02-13T17:05:51.9633333+00:00

    No. Most Graph permissions provide unscoped access to the corresponding object types. I.e. User.Read.All allows you to read the properties of all users objects. There are some workload-specific functionalities that allow you to restrict this, such as Application access policies/RBAC for Applications for Exchange, or the Sites.Selected scope for SharePoint Online. But nothing on directory objects.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Rajat Vashistha-MSFT 835 Reputation points Microsoft Vendor
    2025-02-13T17:12:52.7266667+00:00

    Hi Noga Malach,

    Thank you for reaching out to Microsoft!

    At present, there's no method to restrict an application's access to view only a subset of users within Microsoft Graph API related to MS Teams endpoints.

    However, we do offer this capability for:

    Since this feature/functionality is presently not available, you can submit a feature request idea using support link, which will be monitored by Microsoft team and make the enhancements to Microsoft Graph APIs.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

    0 comments No comments

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.