ProfilePhoto.ReadWrite.All
Allows the app to read and write all profile photos of users and groups, without a signed-in user
Permission Details
Read and write profile photo of a user or group
Allows the app to read and write all profile photos of users and groups, without a signed-in user
27baa7f6-5dfb-4ba8-b1d3-1e812c143013
Read and write profile photo of a user or group
Allows the app to read and write all profile photos of users and groups, on behalf of the signed-in user.
f5b24df7-511e-48bb-ae88-643f023b55e1
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.
Microsoft Graph PowerShell beta 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.DeleteAsync();
const options = {
authProvider,
};
const client = Client.init(options);
await client.api('/me/photo/$value')
.delete();
Import-Module Microsoft.Graph.Users
# A UPN can also be used as -UserId.
Remove-MgUserPhotoContent -UserId $userId
# 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.delete()
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.ReadWrite.All
Grant Admin Consent
Application permissions always require admin consent.