The token contains no permissions, or permissions can not be understood. #727
Unanswered
bhaskarvenna
asked this question in
Q&A
Replies: 1 comment
-
Maybe because you need permissions for [email protected]?? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Can you please help me here. It shows authenticated, but i cant see any emails from my company inbox.
here is my error:
HTTPError: 401 Client Error: Unauthorized for url: https://graph.microsoft.com/v1.0/users/[email protected]/mailFolders/Inbox/messages?%24top=25 | Error Message: The token contains no permissions, or permissions can not be understood.
Here is my Code:
credentials = ('clientId','clientSecret')
account = Account(credentials, auth_flow_type='credentials', tenant_id='67cee803-626e-43b3-a4f0-45f90b5c7584')
if account.authenticate():
print('Authenticated!')
mailbox = account.mailbox([email protected])
print(dir(mailbox))
inbox = mailbox.inbox_folder()
for message in inbox.get_messages():
print(message)
Beta Was this translation helpful? Give feedback.
All reactions