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

ParameterTypeDescription
userIdstringThe unique identifier for the User resource
maxSizenumberMaximum pixel height of the photo

Returns:

Promise<string | undefined>