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
Copy file name to clipboardExpand all lines: articles/active-directory/develop/quickstart-v2-python-daemon.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Microsoft identity platform Python daemon | Azure
3
-
description: Learn how a Python process can get an access token and call an API protected by Microsoft identity platform endpoint using the app's own identity
3
+
description: Learn how a Python process can get an access token and call an API protected by Microsoft identity platform endpoint, using the app's own identity
# Quickstart: Acquire a token and call Microsoft Graph API from a Python console app using app's identity
25
25
26
-
In this quickstart, you'll learn how to write a Python application that can get an access token using the app's own identity and then call the Microsoft Graph API to display a [list of users](https://docs.microsoft.com/graph/api/user-list) in the directory. This scenario is useful for situations where headless, unattended job or a windows service needs to run with an application identity, instead of a user's identity.
26
+
In this quickstart, you'll learn how to write a Python application that can get an access token using the app's own identity, and then call the Microsoft Graph API to display a [list of users](https://docs.microsoft.com/graph/api/user-list) in the directory. This scenario is useful for situations where headless, unattended job or a windows service needs to run with an application identity, instead of a user's identity.
27
27
28
28

29
29
@@ -84,7 +84,7 @@ To run this sample, you will need:
84
84
85
85
1. Extract the zip file to a local folder close to the root of the disk, for example, **C:\Azure-Samples**.
86
86
1. navigate to the sub folder **1-Call-MsGraph-WithSecret"**.
87
-
1. Edit **parameters.json** and replace the values of the fields `authority`, `client_id` and `secret` with the following:
87
+
1. Edit **parameters.json** and replace the values of the fields `authority`, `client_id`, and `secret` with the following snippet:
@@ -110,7 +110,7 @@ To run this sample, you will need:
110
110
111
111
#### Step 4: Admin consent
112
112
113
-
If you try to run the application at this point, you'll receive *HTTP 403 - Forbidden* error: `Insufficient privileges to complete the operation`. This happens because any *app-only permission* requires Admin consent, which means that a global administrator of your directory must give consent to your application. Select one of the options below depending on your role:
113
+
If you try to run the application at this point, you'll receive *HTTP 403 - Forbidden* error: `Insufficient privileges to complete the operation`. This error happens because any *app-only permission* requires Admin consent: a global administrator of your directory must give consent to your application. Select one of the options below depending on your role:
0 commit comments