Skip to main content

MicrosoftGraphClient.getUserPhotoWithSizeLimit()

Home > @backstage/plugin-catalog-backend-module-msgraph > MicrosoftGraphClient > getUserPhotoWithSizeLimit

Get profilePhoto of User from Graph API with size limit

Signature:

getUserPhotoWithSizeLimit(userId: string, maxSize: number): Promise<string | undefined>;

Parameters

Parameter

Type

Description

userId

string

The unique identifier for the User resource

maxSize

number

Maximum pixel height of the photo

**Returns:**

Promise<string | undefined>