← cd ~/graph-permissions
// graph-permissions · Files
Files.Read.SelectedMicrosoft Graph permission · Low risk
(Preview) Allows the app to read files that the user selects. The app has access for several hours after the user selects a file.
Delegated permission
Low riskRead files that the user selects (preview). (Preview) Allows the app to read files that the user selects. The app has access for several hours after the user selects a file.
| ID | 5447fe39-cb82-4c1a-b977-520e67e724eb |
|---|---|
| Consent | Users can consent, if your consent settings allow it |
| Risk | Only reaches the specific sites, lists or items an admin grants it, which makes it the least-privilege choice. |
Ask for it when signing in
Delegated permissions act as the signed-in user, so the app can never do more than that user can.
Connect-MgGraph -Scopes "Files.Read.Selected"Which apps already have it?
# Apps with delegated consent for Files.Read.Selected
Connect-MgGraph -Scopes "Application.Read.All", "Directory.Read.All"
$graph = Get-MgServicePrincipal -Filter "appId eq '00000003-0000-0000-c000-000000000000'"
Get-MgOauth2PermissionGrant -All |
Where-Object { $_.ResourceId -eq $graph.Id -and ($_.Scope -split " ") -contains "Files.Read.Selected" } |
Select-Object ClientId, ConsentType, PrincipalId