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
importasynciofromazure.identityimportClientSecretCredentialfrommsgraphimportGraphServiceClient# Create a credential object. Used to authenticate requestscredential=ClientSecretCredential(
tenant_id='TENANT_ID',
client_id='CLIENT_ID',
client_secret='CLIENT_SECRET'
)
scopes= ['https://graph.microsoft.com/.default']
# Create an API client with the credentials and scopes.client=GraphServiceClient(credentials=credential, scopes=scopes)