组织资源类型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 与租户相关的服务计划的集合。不可为空。The collection of service plans associated with the tenant. Not nullable.
businessPhonesbusinessPhones 字符串集合String collection 组织的电话号码。Telephone number for the organization. 注意:虽然这是字符串集合,但是只能为该属性设置一个号码。NOTE: Although this is a string collection, only one number can be set for this property.
citycity 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 表示采用 ISO 8601 格式创建 Azure AD 的日期和时间,始终采用 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.
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.
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为空(默认)。true if organization is Multi-Geo enabled; false if organization is not Multi-Geo enabled; null (default). 只读。Read-only. 有关详细信息,请参阅 OneDrive Online 多地理位置For more information, see OneDrive Online Multi-Geo.
marketingNotificationEmailsmarketingNotificationEmails String collectionString collection 不可为空。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 不可为空。Not nullable.
verifiedDomainsverifiedDomains VerifiedDomain 集合VerifiedDomain collection 与该租户相关联的域集合。不可为 null。The collection of domains associated with this tenant. Not nullable.

关系Relationships

关系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