profilePhoto resource type

Namespace: microsoft.graph

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

A profile photo of a user, group or an Outlook contact accessed from Exchange Online or Azure Active Directory (AAD). It's binary data 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'. On AAD, photos can be any dimension.

Methods

Method Return Type Description
Get profilePhoto profilePhoto Get the specified profilePhoto or its metadata (profilePhoto properties).
Update profilePhoto Assign a photo to the specified user, group, or contact. The photo should be in binary. It replaces the existing photo, if any.

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": "240X240",
  "height": 240,
  "width": 240
}