ExchangeService.GetPasswordExpirat ionDate return incorrect day

Hello,

I use EWS API 2.0 and try call GetPasswordExpirationDate from ExchangeService.

I have some emailaddresses in the Office 365 (http://login.microsoftonline.com)

Code C#:

ExchangeService exchangeService = new ExchangeService(ExchangeVersion.Exchange2013)

            {

                Credentials = new WebCredentials(emailAddress, password)

            };

exchangeService.Url = new Uri(serverUrl);

           

DateTime?  date = exchangeService.GetPasswordExpirationDate(emailAddress);

For all Email Addresses this method returns 12/31/9999 11:59 PM its incorrect, expired password becomes a month and every month i change a password.

What could the issue be here?

Thanks, Paul

April 9th, 2015 4:23am

That's DateTime.MaxValue. The API returns that when it cannot determine a password expiration date from the directory. I see this too on my Office 365 accounts. Let me check with our engineering folks.

Free Windows Admin Tool Kit Click here and download it now
April 9th, 2015 11:24am

Thanks for reporting this. I've filed a work item for our developers to investigate fixing this.
April 9th, 2015 12:50pm

Thank you, please tell when this will be fixed here.
Free Windows Admin Tool Kit Click here and download it now
April 10th, 2015 2:36am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics