List deleted items (directory objects) owned by a user
Namespace: microsoft.graph
Retrieve a list of recently deleted application and group objects owned by the specified user.
This API returns up to 1,000 deleted objects owned by the user, sorted by ID, and doesn't support pagination.
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) | Group.Read.All | Group.ReadWrite.All |
Delegated (personal Microsoft account) | Not supported. | Not supported. |
Application | Group.Read.All | Group.ReadWrite.All |
HTTP request
POST /directory/deletedItems/getUserOwnedObjects
Request headers
Name | Description |
---|---|
Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
Request body
The request body requires the following parameters:
Parameter | Type | Description |
---|---|---|
userId | String | ID of the owner. |
type | String | Type of owned objects to return; Group and Application are currently the only supported values. |
Response
Successful requests return 200 OK
response codes; the response object includes directory (deleted items) properties.
Example
Request
The following example shows a request.
POST https://graph.microsoft.com/v1.0/directory/deletedItems/getUserOwnedObjects
Content-type: application/json
{
"userId":"55ac777c-109e-4022-b58c-470c8fcb6892",
"type":"Group"
}
Response
The following example shows the response. Note: This response object may be truncated for brevity. All supported properties are returned from actual calls.
HTTP/1.1 200 OK
Content-type: application/json
{
"value": [
{
"@odata.type": "#microsoft.graph.group",
"id": "bfa7033a-7367-4644-85f5-95aaf385cbd7",
"deletedDateTime": "2018-04-01T12:39:16Z",
"classification": null,
"createdDateTime": "2017-03-22T12:39:16Z",
"description": null,
"displayName": "Test",
"groupTypes": [
"Unified"
],
"mail": "Test@contoso.com",
"mailEnabled": true,
"mailNickname": "Test",
"membershipRule": null,
"membershipRuleProcessingState": null,
"preferredDataLocation": null,
"preferredLanguage": null,
"proxyAddresses": [
"SMTP:Test@contoso.com"
],
"renewedDateTime": "2017-09-22T22:30:39Z",
"securityEnabled": false,
"theme": null,
"visibility": "Public"
}
]
}
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기