profilePhoto 资源类型profilePhoto resource type

重要

Microsoft Graph 中/beta的版本下的 api 可能会发生更改。APIs under the /beta version in Microsoft Graph are subject to change. 在生产应用程序中不支持使用这些 API。Use of these APIs in production applications is not supported.

用户、组或从 Exchange Online 或 Azure Active Directory (AAD) 访问的 Outlook 联系人的个人资料照片。A profile photo of a user, group or an Outlook contact accessed from Exchange Online or Azure Active Directory (AAD). 它是不以 base-64 编码的二进制数据。It's binary data not encoded in base-64.

Exchange Online 支持的 HD 照片大小如下所示:'48x48'、'64x64'、'96x96'、'120x120'、'240x240'、'360x360'、'432x432'、'504x504' 和 '648x648'。The supported sizes of HD photos on Exchange Online are as follows: '48x48', '64x64', '96x96', '120x120', '240x240', '360x360','432x432', '504x504', and '648x648'. 在 AAD 上, 照片可以是任何维度。On AAD, photos can be any dimension.

方法Methods

方法Method 返回类型Return Type 说明Description
获取 profilePhotoGet profilePhoto profilePhotoprofilePhoto 获取指定的 profilePhoto 或其元数据(profilePhoto 属性)。Get the specified profilePhoto or its metadata (profilePhoto properties).
更新Update profilePhotoprofilePhoto 将照片分配给指定的用户、组或联系人。照片应为二进制格式。它将替换现有的照片(如有)。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
idid stringstring 只读。Read-only.
heightheight 时会int32 照片的高度。只读。The height of the photo. Read-only.
widthwidth 时会int32 照片的宽度。只读。The width of the photo. Read-only.

关系Relationships

None

JSON 表示形式JSON representation

下面是资源的 JSON 表示形式。Here is a JSON representation of the resource.

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