File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ from azure.identity import DeviceCodeCredential
6565
6666credential = DeviceCodeCredential(" client_id" ,
6767 " tenant_id" )
68- graph_scopes = [' User.Read ' , ' Calendars.ReadWrite.Shared ' ]
68+ scopes = [' https://graph.microsoft.com/.default ' ]
6969```
7070
7171### 2.3 Initialize a GraphServiceClient object
@@ -97,7 +97,7 @@ credentials = DeviceCodeCredential(
9797 ' CLIENT_ID' ,
9898 ' TENANT_ID' ,
9999)
100- scopes = [' User.Read ' , ' Mail.Read ' ]
100+ scopes = [' https://graph.microsoft.com/.default ' ]
101101client = GraphServiceClient(credentials = credentials, scopes = scopes)
102102```
103103
@@ -140,7 +140,7 @@ from azure.identity import InteractiveBrowserCredential
140140from msgraph import GraphServiceClient
141141
142142credential = InteractiveBrowserCredential()
143- scopes= [ ' User.Read ' ]
143+ scopes = [ ' https://graph.microsoft.com/.default ' ]
144144client = GraphServiceClient(credentials = credential, scopes = scopes,)
145145
146146# GET /me
You can’t perform that action at this time.
0 commit comments