Giter VIP home page Giter VIP logo

Comments (2)

Takalele avatar Takalele commented on September 22, 2024 1

@ecederstrand true thank you for the hint

the problem is solved i just have to use DistinguishedFolderId which was not necessary before version 5.1.0

from exchangelib import DELEGATE, Account, Credentials, \
    Configuration, Mailbox, FaultTolerance, Contact
from exchangelib.folders import Calendar, Contacts, SingleFolderQuerySet
from exchangelib.properties import DistinguishedFolderId, Mailbox
from exchangelib.indexed_properties import PhoneNumber, EmailAddress, PhysicalAddress

ServiceCredentials = Credentials(username='delegation_service_user', password='xyz')
ServiceConfig = Configuration(retry_policy=FaultTolerance(max_wait=600), server='owa.example.com', credentials=ServiceCredentials)
usrMbx = Account(primary_smtp_address='[email protected]', config=ServiceConfig, autodiscover=False, access_type=DELEGATE)
mailbox = Mailbox(email_address='[email protected]')
folder = DistinguishedFolderId(id=Contacts.DISTINGUISHED_FOLDER_ID, mailbox=mailbox)
shared_contacts = SingleFolderQuerySet(account=usrMbx, folder=folder).resolve()
contacts = list(shared_contacts.all())
print(shared_contacts.root.tree())
print(contacts)

BR
Takalele

from exchangelib.

ecederstrand avatar ecederstrand commented on September 22, 2024

This sounds a bit like #1222

from exchangelib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.