You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace id with the object ID of the service principal that you want to restore.
73
+
69
74
:::zone-end
70
75
71
76
:::zone pivot="ms-graph"
@@ -77,7 +82,11 @@ To get the list of deleted enterprise applications in your tenant, run the follo
77
82
```http
78
83
GET https://graph.microsoft.com/v1.0/directory/deletedItems/microsoft.graph.servicePrincipal
79
84
```
80
-
Record the ID of the enterprise application you want to restore.
85
+
From the list of deleted service principals generated, record the ID of the enterprise application you want to restore.
86
+
87
+
Alternatively, if you want to get the specific enterprise application that was deleted, fetch the deleted service principal and filter the results by the client's application ID (appId) property using the following syntax:
88
+
89
+
`https://graph.microsoft.com/v1.0/directory/deletedItems/microsoft.graph.servicePrincipal?$filter=appId eq '{appId}'`. Once you've retrieved the object ID of the deleted service principal, proceed to restore it.
81
90
82
91
:::zone-end
83
92
@@ -89,17 +98,23 @@ Record the ID of the enterprise application you want to restore.
0 commit comments