Redigera

Dela via


Delete personResponsibility

Namespace: microsoft.graph

Deletes a personResponsibility object from a user's profile.

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

Permission type Least privileged permissions Higher privileged permissions
Delegated (work or school account) User.Read User.Read.All, User.ReadBasic.All, User.ReadWrite, User.ReadWrite.All
Delegated (personal Microsoft account) User.Read User.ReadWrite
Application Not supported. Not supported.

HTTP request

DELETE /me/responsibilities/{id}
DELETE /users/{id | userPrincipalName}/responsibilities/{id}

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.

Request body

Don't supply a request body for this method.

Response

If successful, this method returns a 204 No Content response code.

Examples

Request

DELETE https://graph.microsoft.com/beta/me/responsibilities/0fb4c1e3-c1e3-0fb4-e3c1-b40fe3c1b40f

Response

HTTP/1.1 204 No Content