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
1. Carefully review the permissions that the application requires. If you agree with the list of permissions, grant the delegated permissions to the application by running the following request.
## Grant admin consent for application permissions
137
139
138
-
In the following example you grant the Microsoft Graph application (the principal of ID b0d9b9e3-0ecf-4bfd-8dab-9273dd055a94) an app role (application permission) of ID df021288-bdef-4463-88db-98f22de89214 that's exposed by a resource API of ID 7ea9e944-71ce-443d-811c-71e8047b557a.
140
+
In the following example you grant the Microsoft Graph application (the principal of ID `b0d9b9e3-0ecf-4bfd-8dab-9273dd055a94`) an app role (application permission) of ID `df021288-bdef-4463-88db-98f22de89214` that's exposed by a resource API of ID `7ea9e944-71ce-443d-811c-71e8047b557a`.
139
141
140
-
1. Get the object ID of the enterprise application to which you'll grant application permissions. In the following example, the application is Microsoft Graph, identified by ID b0d9b9e3-0ecf-4bfd-8dab-9273dd055a94.
142
+
1. Get the object ID of the enterprise application to which you'll grant application permissions. In the following example, the application is Microsoft Graph, identified by ID `b0d9b9e3-0ecf-4bfd-8dab-9273dd055a94`.
141
143
142
-
1. Get the enterprise application to which you want to grant delegated permissions.
144
+
1. Get the enterprise application to which you want to grant delegated permissions.
1. Carefully review the permissions that the application requires. If you agree with the list of permissions, grant the application permissions to the application by running the following request.
@@ -171,11 +179,11 @@ In the following example, the application is Microsoft Graph. The object ID of M
171
179
> [!CAUTION]
172
180
> Be careful! Permissions granted programmatically are not subject to review or confirmation. They take effect immediately.
173
181
174
-
1. Get the object ID of the enterprise application to which you'll grant application permissions. In the following example, the application is Microsoft Graph, identified by ID b0d9b9e3-0ecf-4bfd-8dab-9273dd055a94.
182
+
1. Get the object ID of the enterprise application to which you'll grant application permissions. In the following example, the application is Microsoft Graph, identified by ID `b0d9b9e3-0ecf-4bfd-8dab-9273dd055a94`.
175
183
176
-
```http
177
-
GET /servicePrincipals/b0d9b9e3-0ecf-4bfd-8dab-9273dd055a94
178
-
```
184
+
```http
185
+
GET /servicePrincipals/b0d9b9e3-0ecf-4bfd-8dab-9273dd055a94
186
+
```
179
187
180
188
1. Retrieve the delegated permissions defined by Microsoft graph in your tenant application.
181
189
@@ -203,9 +211,9 @@ GET /servicePrincipals/b0d9b9e3-0ecf-4bfd-8dab-9273dd055a94
203
211
```
204
212
## Grant admin consent for application permissions
205
213
206
-
In the following example you grant the Microsoft Graph application (the principal of ID b0d9b9e3-0ecf-4bfd-8dab-9273dd055a94) an app role (application permission) of ID df021288-bdef-4463-88db-98f22de89214 that's exposed by a resource API of ID 7ea9e944-71ce-443d-811c-71e8047b557a.
214
+
In the following example you grant the Microsoft Graph application (the principal of ID `b0d9b9e3-0ecf-4bfd-8dab-9273dd055a94`) an app role (application permission) of ID `df021288-bdef-4463-88db-98f22de89214` that's exposed by a resource API of ID `7ea9e944-71ce-443d-811c-71e8047b557a`.
207
215
208
-
1. Get the object ID of the enterprise application to which you'll grant application permissions. In the following example, the application is Microsoft Graph, identified by ID b0d9b9e3-0ecf-4bfd-8dab-9273dd055a94.
216
+
1. Get the object ID of the enterprise application to which you'll grant application permissions. In the following example, the application is Microsoft Graph, identified by ID `b0d9b9e3-0ecf-4bfd-8dab-9273dd055a94`.
209
217
210
218
```http
211
219
GET /servicePrincipals/b0d9b9e3-0ecf-4bfd-8dab-9273dd055a94
0 commit comments