Skip to content

Commit

Permalink
update samples for delegated permission credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
shemogumbe committed Apr 23, 2024
1 parent 2abfe27 commit ca86c68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ credential = ClientSecretCredential(
'client_id',
'client_secret'
)
scopes = ["User.ReadWrite"]
scopes = ["User.Read"]
client = GraphServiceClient(credentials=credential, scopes=scopes)

# GET /users/{id | userPrincipalName}
Expand All @@ -143,7 +143,7 @@ credential = InteractiveBrowserCredential(
client_id=os.getenv('client_id'),
tenant_id=os.getenv('tenant_id'),
)
scopes = ["User.ReadWrite"]
scopes = ["User.Read"]
client = GraphServiceClient(credentials=credential, scopes=scopes,)

# GET /me
Expand Down
4 changes: 2 additions & 2 deletions docs/authentication_samples.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ credential = DeviceCodeCredential(
tenant_id='TENANT_ID',
)

scopes = ["User.ReadWrite"]
scopes = ["User.Read"]

# Create an API client with the credentials and scopes.
client = GraphServiceClient(credentials=credential, scopes=scopes)
Expand All @@ -40,7 +40,7 @@ credentials = InteractiveBrowserCredential(
tenant_id=os.getenv('tenant_id'),
)

scopes = ["User.ReadWrite"]
scopes = ["User.Read"]

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

0 comments on commit ca86c68

Please sign in to comment.