1

I'm using python exchangelib - Client for Microsoft Exchange Web Services (EWS)

It's seems like this library did not implement the GetUserAvailabilityRequest API.

I've searched all over the internet to see if someone implemented it, without any success.

Before I'm implement it by myself, maybe someone can help me to find a quick solution how to get the user availability calendar data.

Lars Nordin
  • 2,785
  • 1
  • 22
  • 25
cheziHoyzer
  • 4,803
  • 12
  • 54
  • 81

1 Answers1

1

Disclaimer: I'm the exchangelib author

If you do implement this within exchangelib, I'd love to pull it in.

In the meanwhile, I think your best be is to view the calendar of the user directly. It would require access to the user's calendar, of course. Something like this:

my_credentials = Credentials(...)
other_user = Account(
    primary_smtp_address='joebob@example.com',
    credentials=my_credentials, 
    autodiscover=True, 
    access_type=DELEGATE
)
for item in other_user.calendar.view(start=..., end=...):
    print(item.start, item.end, item.subject)
Erik Cederstrand
  • 9,643
  • 8
  • 39
  • 63