Skip to content

Commit 509b3a2

Browse files
committed
Switch to User.ReadBasic.All permission which requires no admin consent
1 parent 8456621 commit 509b3a2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515

1616
# You can find more Microsoft Graph API endpoints from Graph Explorer
1717
# https://developer.microsoft.com/en-us/graph/graph-explorer
18-
ENDPOINT = 'https://graph.microsoft.com/v1.0/me/calendars'
18+
ENDPOINT = 'https://graph.microsoft.com/v1.0/users' # This resource requires no admin consent
1919

2020
# You can find the proper permission names from this document to form a scope
2121
# https://docs.microsoft.com/en-us/graph/permissions-reference
22-
SCOPE = ["https://graph.microsoft.com/Calendars.Read"]
22+
SCOPE = ["https://graph.microsoft.com/User.ReadBasic.All"]
2323

2424
SESSION_TYPE = "filesystem" # So token cache will be stored in server-side session
2525

0 commit comments

Comments
 (0)