Microsoft Graph Permissions, how to access only the files under a specific group only

Goksel Uyulmaz 0 Reputation points
2024-11-26T11:22:16.3466667+00:00

Hi,

I want to be able to access as Files.ReadWrite, only the files under a specific group. I dont want to allow access to all organization files or a specific user files, only to that specific group files.

I want to access this group files with a deamon app, that will run at background.

How can I achieve this at entra -> app registration -> api permissions.

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

1 answer

Sort by: Most helpful
  1. Vasil Michev 109.7K Reputation points MVP
    2024-11-26T17:27:16.5+00:00

    Use the Sites.Selected scope as detailed here: https://learn.microsoft.com/en-us/graph/permissions-selected-overview?tabs=http

    If you want to grant permissions to specific files only, use Files.SelectedOperations.Selected instead.


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.