'Use Microsoft Graph Core Python Client Library with the Azure Active Directory App registration (client id & secret)
The documentation and the examples of the Microsoft Graph Core Python Client Library shows only the usage with InteractiveBrowserCredential.
# python -m pip install msgraph-core
# python -m pip install azure-identity
from azure.identity import InteractiveBrowserCredential
from msgraph.core import GraphClient
browser_credential = InteractiveBrowserCredential(client_id='YOUR_CLIENT_ID')
client = GraphClient(credential=browser_credential)
result = client.get('/me')
print(result.json())
How is it possible to use the GraphClient without interaction by providing the cleint id and secret of the Azure Active Directory App registration?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
