删除 profileCardPropertyDelete profileCardProperty

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

重要

Microsoft Graph /beta 中的版本下的 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.

从组织的配置文件卡片中删除由其指定的 profileCardProperty 对象 directoryPropertyName ,并删除该属性的所有本地化的自定义项。Delete the profileCardProperty object specified by its directoryPropertyName from the organization's profile card, and remove any localized customizations for that property.

权限Permissions

要调用此 API,需要以下权限之一。要了解详细信息,包括如何选择权限的信息,请参阅权限One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

权限类型Permission type 权限(从最低特权到最高特权)Permissions (from least to most privileged)
委派(工作或学校帐户)Delegated (work or school account) 所有用户读写。User.ReadWrite, User.ReadWrite.All
委派(个人 Microsoft 帐户)Delegated (personal Microsoft account) 不支持。Not supported.
应用程序Application 不支持。Not supported.

注意: 若要对此操作使用委派权限,则需要已登录用户拥有租户管理员或全局管理员角色。Note: Using delegated permissions for this operation requires the signed-in user to have a tenant administrator or global administrator role.

HTTP 请求HTTP request

DELETE https://graph.microsoft.com/beta/organization/{organizationId}/settings/profileCardProperties/{directoryPropertyName-Value}

请求标头Request headers

名称Name 说明Description
AuthorizationAuthorization Bearer {token}。必需。Bearer {token}. Required.

请求正文Request body

请勿提供此方法的请求正文。Do not supply a request body for this method.

响应Response

如果成功,此方法返回 204 No Content 响应代码。它不在响应正文中返回任何内容。If successful, this method returns a 204 No Content response code. It does not return anything in the response body.

示例Examples

请求Request

下面的示例演示如何从组织的配置文件卡片中删除名为 "Fax" 的属性。The following example shows how to delete the attribute named "Fax" from the profile card for the organization.

DELETE https://graph.microsoft.com/beta/organization/{organizationId}/settings/profileCardProperties/fax

响应Response

下面展示了示例响应。The following is an example of the response.

HTTP/1.1 204 No Content