userAccountInformation 资源类型userAccountInformation resource type

命名空间:microsoft.graphNamespace: microsoft.graph


/betaMicrosoft Graph 中的版本下的 api 可能会发生更改。APIs under the /beta version in Microsoft Graph are subject to change. 不支持在生产应用程序中使用这些 API。Use of these APIs in production applications is not supported. 若要确定 API 在 v1.0 中是否可用,请使用 版本 选择器。To determine whether an API is available in v1.0, use the Version selector.

代表特定绑定到用户帐户的信息,无论是作为 Azure AD 帐户还是 Microsoft 帐户。Represents information specifically tied to a user's account, whether that is as an Azure AD account or Microsoft account. 实体标识符分别设置为相应的 Azure AD guid 或 Microsoft 帐户 CID。The entity identifier is set to the corresponding Azure AD guid or Microsoft Account CID respectively. 这些字段在 Microsoft Graph 中是只读的,并且必须通过用户配置文件或租户管理员在相应的体验上进行编辑。These fields are read-only through Microsoft Graph and must be edited through a users profile or by a Tenant Administrator on a corresponding experience.

继承自 itemFacetInherits from itemFacet.


方法Method 返回类型Return type 说明Description
列表帐户List accounts userAccountInformation 集合userAccountInformation collection 从帐户导航属性中获取 userAccountInformation 资源。Get the userAccountInformation resources from the account navigation property.
创建 userAccountInformationCreate userAccountInformation userAccountInformationuserAccountInformation 创建新的 userAccountInformation 对象。Create a new userAccountInformation object.
获取 userAccountInformationGet userAccountInformation userAccountInformationuserAccountInformation 读取 userAccountInformation 对象的属性和关系。Read the properties and relationships of a userAccountInformation object.
更新 userAccountInformationUpdate userAccountInformation userAccountInformationuserAccountInformation 更新 userAccountInformation 对象的属性。Update the properties of a userAccountInformation object.
删除 userAccountInformationDelete userAccountInformation None 删除一个 userAccountInformation 对象。Deletes a userAccountInformation object.


属性Property 类型Type 说明Description
ageGroupageGroup StringString 显示用户的年龄组。Shows the age group of user. 允许的 nullminornotAdultadult 由目录生成且不能更改。Allowed values null, minor, notAdult and adult are generated by the directory and cannot be changed.
allowedAudiencesallowedAudiences StringString 能够查看实体中包含的值的访问群体。The audiences that are able to see the values contained within the entity. 继承自 itemFacetInherited from itemFacet. 可取值为:mefamilycontactsgroupMembersorganizationfederatedOrganizationseveryoneunknownFutureValuePossible values are: me, family, contacts, groupMembers, organization, federatedOrganizations, everyone, unknownFutureValue.
countryCodecountryCode StringString 包含与用户帐户关联的双字符国家/地区代码。Contains the two-character country code associated with the users account.
createdBycreatedBy identitySetidentitySet 提供创建实体的用户和/或应用程序的标识符。Provides the identifier of the user and/or application that created the entity. 继承自 itemFacetInherited from itemFacet.
createdDateTimecreatedDateTime DateTimeOffsetDateTimeOffset 为创建实体时提供 dateTimeOffset。Provides the dateTimeOffset for when the entity was created. 继承自 itemFacetInherited from itemFacet.
idid StringString 用于单独寻址实体的标识符。Identifier used for individually addressing the entity. 继承自 entityInherited from entity
推导inference inferenceDatainferenceData 如果实体是由创建或修改应用程序推断的,则包含推理详细信息。Contains inference detail if the entity is inferred by the creating or modifying application. 继承自 itemFacetInherited from itemFacet.
lastModifiedBylastModifiedBy identitySetidentitySet 提供上次修改实体的用户和/或应用程序的标识符。Provides the identifier of the user and/or application that last modified the entity. 继承自 itemFacetInherited from itemFacet.
lastModifiedDateTimelastModifiedDateTime DateTimeOffsetDateTimeOffset 为创建实体时提供 dateTimeOffset。Provides the dateTimeOffset for when the entity was created. 继承自 itemFacetInherited from itemFacet.
preferredLanguageTagpreferredLanguageTag localeInfolocaleInfo 包含用户与帐户相关的首选语言。Contains the language the user has associated as preferred for the account.
sourcesource personDataSourcepersonDataSource 值的来源,如果从另一个服务同步。Where the values originated if synced from another service. 继承自 itemFacetInherited from itemFacet.
userPrincipalNameuserPrincipalName StringString 与帐户关联的用户的用户主体名称 (UPN) 。The user principal name (UPN) of the user associated with the account.



JSON 表示形式JSON representation

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

  "@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"