Skip to content

Commit 9489e52

Browse files
committed
update scopes for delegated permision in samples
1 parent 07a1d78 commit 9489e52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/authentication_samples.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ credential = DeviceCodeCredential(
1414
tenant_id='TENANT_ID',
1515
)
1616

17-
scopes = ["User.Read"]
17+
scopes = ['https://graph.microsoft.com/.default']
1818

1919
# Create an API client with the credentials and scopes.
2020
client = GraphServiceClient(credentials=credential, scopes=scopes)
@@ -36,7 +36,7 @@ from msgraph import GraphServiceClient
3636

3737
# Create a credential object. Used to authenticate requests
3838
credential = InteractiveBrowserCredential()
39-
scopes = ["User.Read"]
39+
scopes = ['https://graph.microsoft.com/.default']
4040

4141
# Create an API client with the credentials and scopes.
4242
client = GraphServiceClient(credentials=credential, scopes=scopes)

0 commit comments

Comments
 (0)