ProfilePhoto.Read.All
Allows the app to read all profile photos of users and groups, without a signed-in user
Permission Details
Read profile photo of a user or group
Allows the app to read all profile photos of users and groups, without a signed-in user
e24d31aa-e1ab-4c80-85fe-23018690335d
Read profile photo of a user or group
Allows the app to read all profile photos of users and groups, on behalf of the signed-in user.
469cd065-729e-4dee-b1fa-d92e0fab6310
Properties
Properties is shown from stable Microsoft Graph v1.0 metadata.
| Property | Type | Description |
|---|---|---|
id |
string |
Read-only. |
height |
int32Nullable |
The height of the photo. Read-only. |
width |
int32Nullable |
The width of the photo. Read-only. |
JSON Representation
JSON representation is shown from stable Microsoft Graph v1.0 metadata.
{
"id": "String",
"height": 240,
"width": 240
}
Relationships
Relationships metadata is not available for this permission mapping.
View resource documentationGraph Methods
Microsoft Graph v1.0 endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
Microsoft Graph beta endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
Microsoft Graph PowerShell v1.0 commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.
Code Examples
// Code snippets are only available for the latest version. Current version is 5.x
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
await graphClient.Me.Photo.Content.GetAsync();
const options = {
authProvider,
};
const client = Client.init(options);
let stream = await client.api('/me/photo/$value')
.get();
Import-Module Microsoft.Graph.Users
# A UPN can also be used as -UserId.
Get-MgUserPhotoContent -UserId $userId -OutFile $outFileId
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
await graph_client.me.photo.content.get()
App Registration
Navigate to Azure Portal
Go to App registrations in Microsoft Entra admin center
Add API Permission
Select your app → API permissions → Add a permission → Microsoft Graph
Select Permission Type
Choose Application permissions or delegated permissions and search for ProfilePhoto.Read.All
Grant Admin Consent
Application permissions always require admin consent.