profilePhoto resource type

Namespace: microsoft.graph

Repesents a profile photo of a user, group, team, or Outlook contact accessed from Exchange Online or Azure Active Directory (Azure AD). The data is binary and not encoded in base-64.

The supported sizes of HD photos on Exchange Online are as follows: 48x48, 64x64, 96x96, 120x120, 240x240, 360x360,432x432, 504x504, and 648x648. In Azure AD, photos can be any dimension.

Methods

Method Return type Description
Get profilePhoto profilePhoto Read the properties and relationships of a profile photo object.
Update profilePhoto profilePhoto Update the properties of a profile photo object.

Note

Managing users' photos using the Microsoft Graph API is currently not supported in Azure AD B2C tenants.

Properties

Property Type Description
id string Read-only.
height int32 The height of the photo. Read-only.
width int32 The width of the photo. Read-only.

Relationships

None.

JSON representation

Here is a JSON representation of the resource.

{
  "id": "String",
  "height": 240,
  "width": 240
}