exchangelib: Shared calendar can't be accessed
Describe the bug When trying to access a shared folder I only get my default folder, but not the shared one.
To Reproduce
credentials = OAuth2Credentials(client_id='XXXX', client_secret='XXX', tenant_id='XXX')
config = Configuration(server='outlook.office365.com', credentials=credentials, version=Version(build=EXCHANGE_O365),)
account = Account(primary_smtp_address='XXX', config=config, autodiscover=False, access_type=IMPERSONATION)
shared_calendar = SingleFolderQuerySet(account=account, folder=DistinguishedFolderId(
id=Calendar.DISTINGUISHED_FOLDER_ID,
mailbox=Mailbox(email_address='XXXX')
)).resolve()
No issue is raised, it just return the default calendar or contacts
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 19 (8 by maintainers)
Commits related to this issue
- fix: Fix shared-folder queysets based on DistinguishedFolderId. Refs #1202 — committed to ecederstrand/exchangelib by ecederstrand 10 months ago
Hi @ecederstrand works perfect now!
Thank you!
Since I can’t reproduce in my local test environment, your best bet is to break out a debugger, step through the code and find out why the email address of the DistinguishedFolderId object suddenly changes.