-
Notifications
You must be signed in to change notification settings - Fork 83
Closed
Labels
WIPtype:bugA broken experienceA broken experiencetype:documentationGeneral documentation request or project documentation updateGeneral documentation request or project documentation update
Description
Describe the bug
I'm trying to follow the examples in the README, but my scope definitions seem to be wrong, I'm just getting this error:
Microsoft Entra ID error '(invalid_scope) AADSTS1002012: The provided value for scope User.Read is not valid.
Expected behavior
code in the README should execute successfully
How to reproduce
credentials = ClientSecretCredential(
os.getenv("AZURE_TENANT_ID"),
os.getenv("AZURE_CLIENT_ID"),
os.getenv("AZURE_CLIENT_SECRET"),
)
scopes = ["User.Read"]
client = GraphServiceClient(credentials=credentials, scopes=scopes)
await client.users.by_user_id('userPrincipalName').get()SDK Version
1.5.3
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
```</details>
### Configuration
_No response_
### Other information
_No response_
Metadata
Metadata
Assignees
Labels
WIPtype:bugA broken experienceA broken experiencetype:documentationGeneral documentation request or project documentation updateGeneral documentation request or project documentation update