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?
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.
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.
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.
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!
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
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Read the latest about new experiences and capabilities in the Power Automate product blog.
If you are a small business ISV/Reseller, share your thoughts with our research team.
The AI Builder team invite you to ask questions and provide helpful answers at our next AMA.