组织资源类型organization resource type

表示用户或应用程序登录到 Azure Active Directory 租户。Represents the Azure Active Directory tenant that the user or application is signed in to. 此资源; 支持仅读取和更新操作创建并删除不受支持。Only the read and update operations are supported on this resource; create and delete are not supported. 继承自 directoryObjectInherits from directoryObject.

使用此资源,可以使用扩展将自己的数据添加到自定义属性。This resource lets you add your own data to custom properties using extensions.

方法Methods

方法Method 返回类型Return Type 说明Description
获取组织Get organization 组织organization 读取 organization 对象的属性和关系。Read properties and relationships of organization object.
更新Update 组织organization 更新 organization 对象。Update organization object. 可更新的限定属性:marketingNotificationMailstechnicalNotificationMailssecurityComplianceNotificationMailssecurityComplianceNotificationPhonesprivacyProfileThe only properties that can be updated are: marketingNotificationMails, technicalNotificationMails, securityComplianceNotificationMails, securityComplianceNotificationPhones and privacyProfile.
开放扩展Open extensions
创建开放扩展Create open extension openTypeExtensionopenTypeExtension 创建开放扩展,并将自定义属性添加到新资源或现有资源。Create an open extension and add custom properties to a new or existing resource.
获取开放扩展Get open extension openTypeExtension 集合openTypeExtension collection 获取扩展名称标识的开放扩展。Get an open extension identified by the extension name.
架构扩展Schema extensions
添加架构扩展值Add schema extension values 创建架构扩展定义,然后使用它向资源添加自定义键入数据。Create a schema extension definition and then use it to add custom typed data to a resource.

属性Properties

属性Property 类型Type 说明Description
assignedPlansassignedPlans assignedPlan 集合assignedPlan collection 与租户相关的服务计划的集合。不可为 null。The collection of service plans associated with the tenant. Not nullable.
businessPhonesbusinessPhones String collectionString collection 组织的电话号码。Telephone number for the organization. 注意: 虽然这是一个字符串集合,只有一个号码可以设置此属性。NOTE: Although this is a string collection, only one number can be set for this property.
城市city StringString 组织地址所在的城市名称。City name of the address for the organization
countrycountry 字符串String 组织地址所在的国家/地区名称。Country/region name of the address for the organization
countryLetterCodecountryLetterCode 字符串String 组织所在的国家/地区缩写Country/region abbreviation for the organization
createdDateTimecreatedDateTime DateTimeOffsetDateTimeOffset 创建组织时的时间戳。Timestamp of when the organization was created. 值不能修改和创建组织时将自动填充。The value cannot be modified and is automatically populated when the organization is created. 时间戳类型表示采用 ISO 8601 格式的日期和时间信息,始终采用 UTC 时区。The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. 例如,2014 年 1 月 1 日午夜 UTC 如下所示:'2014-01-01T00:00:00Z'For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. 只读。Read-only.
deletedDateTimedeletedDateTime DateTimeOffsetDateTimeOffset 表示日期和时间的 Azure AD 租户已删除使用 ISO 8601 格式时,始终在 UTC 时间。Represents date and time of when the Azure AD tenant was deleted using ISO 8601 format and is always in UTC time. 例如,2014 年 1 月 1 日午夜 UTC 如下所示:'2014-01-01T00:00:00Z'For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. 只读。Read-only.
displayNamedisplayName StringString 租户的显示名称。The display name for the tenant.
idid 字符串String 租户 ID,代表组织 (或租户) 的唯一标识符。The tenant ID, a unique identifier representing the organization (or tenant). 继承自 directoryObjectInherited from directoryObject. 键。Key. 不可为 null。Not nullable. 只读。Read-only.
isMultipleDataLocationsForServicesEnabledisMultipleDataLocationsForServicesEnabled 布尔Boolean true如果组织已启用,则多地理位置false如果组织不是多地理位置启用则null(默认值)。true if organization is Multi-Geo enabled; false if organization is not Multi-Geo enabled; null (default). 此为只读属性。Read-only. 有关详细信息,请参阅OneDrive 联机多地理For more information, see OneDrive Online Multi-Geo.
marketingNotificationEmailsmarketingNotificationEmails String collectionString collection 不可为 null。Not nullable.
onPremisesLastSyncDateTimeonPremisesLastSyncDateTime DateTimeOffsetDateTimeOffset 租户上次与本地目录同步的时间和日期。The time and date at which the tenant was last synced with the on-premise directory. 时间戳类型表示采用 ISO 8601 格式的日期和时间信息,始终采用 UTC 时区。The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. 例如,2014 年 1 月 1 日午夜 UTC 如下所示:'2014-01-01T00:00:00Z'For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. 只读。Read-only.
onPremisesSyncEnabledonPremisesSyncEnabled BooleanBoolean 如果此对象从本地目录同步,则为 true;如果此对象最初从本地目录同步,但以后不再同步,则为 false;如果此对象从未从本地目录同步,则为 null(默认值)。true if this object is synced from an on-premises directory; false if this object was originally synced from an on-premises directory but is no longer synced; null if this object has never been synced from an on-premises directory (default).
postalCodepostalCode StringString 组织地址的邮政编码。Postal code of the address for the organization
preferredLanguagepreferredLanguage StringString 组织的首选语言。The preferred language for the organization. 应遵循 ISO 639-1 代码;例如“en”。Should follow ISO 639-1 Code; for example "en".
privacyProfileprivacyProfile privacyProfileprivacyProfile 组织的隐私配置文件。The privacy profile of an organization.
provisionedPlansprovisionedPlans ProvisionedPlan 集合ProvisionedPlan collection 不可为 null。Not nullable.
securityComplianceNotificationMailssecurityComplianceNotificationMails String collectionString collection
securityComplianceNotificationPhonessecurityComplianceNotificationPhones String collectionString collection
statestate StringString 组织地址所在的省/自治区/直辖市名称。State name of the address for the organization
streetstreet StringString 组织地址所在的街道名称。Street name of the address for organization
technicalNotificationMailstechnicalNotificationMails String collectionString collection 不可为 null。Not nullable.
verifiedDomainsverifiedDomains VerifiedDomain 集合VerifiedDomain collection 与该租户相关联的域集合。不可为 null。The collection of domains associated with this tenant. Not nullable.

RelationshipsRelationships

关系Relationship 类型Type 说明Description
extensionsextensions 扩展集合extension collection 为组织定义的开放扩展集合。只读。可为 Null。The collection of open extensions defined for the organization. Read-only. Nullable.

JSON 表示形式JSON representation

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

{
  "assignedPlans": [{"@odata.type": "microsoft.graph.assignedPlan"}],
  "businessPhones": ["string"],
  "city": "string",
  "country": "string",
  "countryLetterCode": "string",
  "createdDateTime": "String (timestamp)",
  "deletedDateTime": "String (timestamp)",
  "displayName": "string",
  "id": "string (identifier)",
  "isMultipleDataLocationsForServicesEnabled": "boolean",
  "marketingNotificationEmails": ["string"],
  "onPremisesLastSyncDateTime": "String (timestamp)",
  "onPremisesSyncEnabled": true,
  "postalCode": "string",
  "preferredLanguage": "string",
  "privacyProfile": {"@odata.type": "microsoft.graph.privacyProfile"},
  "provisionedPlans": [{"@odata.type": "microsoft.graph.provisionedPlan"}],
  "securityComplianceNotificationMails": ["string"],
  "securityComplianceNotificationPhones": ["string"],
  "state": "string",
  "street": "string",
  "technicalNotificationMails": ["string"],
  "verifiedDomains": [{"@odata.type": "microsoft.graph.verifiedDomain"}]
}

另请参阅See also