cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
djw1005
Helper I
Helper I

Retrieve Password Expiry date from azure ad user

I am wanting to retrieve the password expiry dates from users so that I can then use this to send out an email to them to say they need to change their password.

 

Is this something that could be achieved with flow?

4 REPLIES 4
v-litu-msft
Community Support
Community Support

Hi @djw1005,

 

Unfortunately, if you use the get user action could not get the password expiry dates, so there is no way to send a notification email when password expired.

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Murderbot
Advocate IV
Advocate IV

This can actually be done with a Microsoft Graph HTTP request.  You have to set up an application in your AAD portal using these instructions and then set your HTTP request to use OAuth to access the app.  The users entity has a property called lastPasswordChangeDateTime that isn't included in the normal get user action but can be accessed using the URI below.  The Authority and Audience are always the same.  

Murderbot_0-1609891472163.png

The only catch is that HTTP is now a Premium action.  If anyone can figure out how to get around that, I'd be much obliged!  

Hi @Murderbot, you can use a custom connector

--------------------------------------------------------------------------------------
Contact me if you are interested in custom Power Automate development.
alko
Regular Visitor

This was very helpful. Just to add for those who are interested, you can use Graph Explorer to find the specific query parameters: https://developer.microsoft.com/en-us/graph/graph-explorer

 

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

AI Builder AMA June 7th carousel (up on May 25th, take down June 8th) (1).png

'Ask Microsoft Anything' about AI Builder!

The AI Builder team invite you to ask questions and provide helpful answers at our next AMA.

Users online (1,632)