Graph API (Java): Grant a (Team) Channel permissions to access a user file

Francisco Saez 0 Reputation points


how can I give permissions to a full (private) Channel from a Team to access any user file in Onedrive/Sharepoint.

I'm using the Java API with application access.

I've tried with these endpoints:

POST /shares/{encoded-sharing-url}/permission/grant

POST ..../items/{itemId}/invite

But they only let the recipient list to contain users or groups. So I can set permission for the whole Team but not for individual channels.

Any suggestion?


Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
8,160 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
9,178 questions
A Microsoft file hosting and synchronization service.
615 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,545 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Nivedipa-MSFT 2,791 Reputation points Microsoft Vendor

    @Francisco Saez - There doesn't seem to be any way available to give permissions to a Channel instead of users in channel.
    You can suggest this feature here: Microsoft Teams Community

    0 comments No comments