userAccountInformation 资源类型

命名空间:microsoft.graph

重要

Microsoft Graph /beta 版本下的 API 可能会发生更改。 不支持在生产应用程序中使用这些 API。 若要确定 API 是否在 v1.0 中可用,请使用 版本 选择器。

表示与用户帐户绑定的信息,无论是Microsoft Entra帐户还是 Microsoft 帐户。 实体标识符分别设置为相应的Microsoft Entra guid 或 Microsoft 帐户 CID。 这些字段通过 Microsoft Graph 是只读的,必须通过用户的配置文件或租户管理员对相应体验进行编辑。

继承自 itemFacet

方法

方法 返回类型 说明
列出帐户 userAccountInformation 集合 从帐户导航属性获取 userAccountInformation 资源。
创建 userAccountInformation userAccountInformation 创建新的 userAccountInformation 对象。
获取 userAccountInformation userAccountInformation 读取 userAccountInformation 对象的属性和关系。
更新 userAccountInformation userAccountInformation 更新 userAccountInformation 对象的属性。
删除 userAccountInformation 删除 userAccountInformation 对象。

属性

属性 类型 说明
ageGroup String 显示用户的年龄组。 允许的值 nullminornotAdultadult 由目录生成,无法更改。
allowedAudiences String 能够查看实体中包含的值的访问群体。 继承自 itemFacet。 可取值为:mefamilycontactsgroupMembersorganizationfederatedOrganizationseveryoneunknownFutureValue
countryCode String 包含与用户帐户关联的双字符国家/地区代码。
createdBy identitySet 提供创建实体的用户和/或应用程序的标识符。 继承自 itemFacet
createdDateTime DateTimeOffset 提供创建实体时的 dateTimeOffset。 继承自 itemFacet
id String 用于单独寻址实体的标识符。 继承自 实体
推理 inferenceData 如果实体是由创建或修改应用程序推断的,则包含推理详细信息。 继承自 itemFacet
lastModifiedBy identitySet 提供上次修改实体的用户和/或应用程序的标识符。 继承自 itemFacet
lastModifiedDateTime DateTimeOffset 提供创建实体时的 dateTimeOffset。 继承自 itemFacet
preferredLanguageTag localeInfo 包含用户关联为帐户的首选语言。
source personDataSource 如果从另一个服务同步,则值源自其中。 继承自 itemFacet
userPrincipalName String 用户主体名称 (与帐户关联的用户的 UPN) 。

关系

无。

JSON 表示形式

以下 JSON 表示形式显示了资源类型。

{
  "@odata.type": "#microsoft.graph.userAccountInformation",
  "id": "String (identifier)",
  "allowedAudiences": "String",
  "inference": {
    "@odata.type": "microsoft.graph.inferenceData"
  },
  "createdDateTime": "String (timestamp)",
  "createdBy": {
    "@odata.type": "microsoft.graph.identitySet"
  },
  "lastModifiedDateTime": "String (timestamp)",
  "lastModifiedBy": {
    "@odata.type": "microsoft.graph.identitySet"
  },
  "source": {
    "@odata.type": "microsoft.graph.personDataSource"
  },
  "ageGroup": "String",
  "countryCode": "String",
  "preferredLanguageTag": {
    "@odata.type": "microsoft.graph.localeInfo"
  },
  "userPrincipalName": "String"
}