profilePhoto 资源类型profilePhoto resource type

重要说明: Microsoft Graph 中 /beta 版本下的 API 是预览版,可能会发生变化。Important: APIs under the /beta version in Microsoft Graph are in preview and are subject to change. 不支持在生产应用程序中使用这些 API。Use of these APIs in production applications is not supported.

用户、 组或 Outlook 联系人从 Exchange Online 或 Azure Active Directory (AAD) 访问的配置文件照片。A profile photo of a user, group or an Outlook contact accessed from Exchange Online or Azure Active Directory (AAD). 它是未使用 base64 编码的二进制数据。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 int32int32 照片的高度。只读。The height of the photo. Read-only.
widthwidth int32int32 照片的宽度。只读。The width of the photo. Read-only.

RelationshipsRelationships

None

JSON 表示形式JSON representation

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

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