@@ -162,27 +162,27 @@ You'll need to consent to the following permissions:
162
162
163
163
Run the following queries to review delegated permissions granted to an application.
164
164
165
- 1 . Get Service Principal using objectID
165
+ 1 . Get service principal using the object ID.
166
166
167
167
``` http
168
- GET /servicePrincipals/{id}
168
+ GET https://graph.microsoft.com/v1.0 /servicePrincipals/{id}
169
169
```
170
170
171
171
Example:
172
172
173
173
```http
174
- GET / servicePrincipals/57443554-98f5-4435-9002-852986eea510
174
+ GET https://graph.microsoft.com/v1.0/ servicePrincipals/00063ffc-54e9-405d-b8f3-56124728e051
175
175
```
176
176
177
177
1. Get all delegated permissions for the service principal
178
178
179
179
```http
180
- GET /servicePrincipals/{id}/oauth2PermissionGrants
180
+ GET https://graph.microsoft.com/v1.0 /servicePrincipals/{id}/oauth2PermissionGrants
181
181
```
182
182
1. Remove delegated permissions using oAuth2PermissionGrants ID.
183
183
184
184
```http
185
- DELETE /oAuth2PermissionGrants/{id}
185
+ DELETE https://graph.microsoft.com/v1.0 /oAuth2PermissionGrants/{id}
186
186
```
187
187
188
188
### Application permissions
@@ -192,12 +192,12 @@ Run the following queries to review application permissions granted to an applic
192
192
1. Get all application permissions for the service principal
193
193
194
194
```http
195
- GET /servicePrincipals/{servicePrincipal-id}/appRoleAssignments
195
+ GET https://graph.microsoft.com/v1.0 /servicePrincipals/{servicePrincipal-id}/appRoleAssignments
196
196
```
197
197
1. Remove application permissions using appRoleAssignment ID
198
198
199
199
```http
200
- DELETE /servicePrincipals/{resource-servicePrincipal-id}/appRoleAssignedTo/{appRoleAssignment-id}
200
+ DELETE https://graph.microsoft.com/v1.0 /servicePrincipals/{resource-servicePrincipal-id}/appRoleAssignedTo/{appRoleAssignment-id}
201
201
```
202
202
203
203
## Invalidate the refresh tokens
@@ -207,22 +207,22 @@ Run the following queries to remove appRoleAssignments of users or groups to the
207
207
1. Get Service Principal using objectID.
208
208
209
209
```http
210
- GET /servicePrincipals/{id}
210
+ GET https://graph.microsoft.com/v1.0 /servicePrincipals/{id}
211
211
```
212
212
Example:
213
213
214
214
```http
215
- GET /servicePrincipals/57443554-98f5-4435-9002-852986eea510
215
+ GET https://graph.microsoft.com/v1.0 /servicePrincipals/57443554-98f5-4435-9002-852986eea510
216
216
```
217
217
1. Get Azure AD App role assignments using objectID of the Service Principal.
218
218
219
219
```http
220
- GET /servicePrincipals/{servicePrincipal-id}/appRoleAssignedTo
220
+ GET https://graph.microsoft.com/v1.0 /servicePrincipals/{servicePrincipal-id}/appRoleAssignedTo
221
221
```
222
222
1. Revoke refresh token for users and groups assigned to the application using appRoleAssignment ID.
223
223
224
224
```http
225
- DELETE /servicePrincipals/{servicePrincipal-id}/appRoleAssignedTo/{appRoleAssignment-id}
225
+ DELETE https://graph.microsoft.com/v1.0 /servicePrincipals/{servicePrincipal-id}/appRoleAssignedTo/{appRoleAssignment-id}
226
226
```
227
227
:::zone-end
228
228
0 commit comments