cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TAlmeydaSC
New Member

Displaying User Password Expiration Date

Hi, all, I'm familiar with Power Apps in reference to SharePoint Online, but I've recently had a request for something that I do not think is possible. We had a password expiration web part in a previous version of SharePoint, which we cannot use in our new environment. Is there a way to show a user when their AD password will expire via a Power App? The only requirement is that the number of days left before expiration is visible to the user.

4 REPLIES 4
chico
Advocate V
Advocate V

There is a way to do it pulling data straight from Microsoft Graph.

I'm also looking for an easy way to do this, shocked there is not more content on this in this forum

victorcp
Solution Sage
Solution Sage

Hi,

You can use Power Automate to send a Http request to graph API to get the last password change (lastPasswordChangeDateTime) and add the number of days to expire. 

 

For more information about the graph api https://docs.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0


Is it helpful? give it a Thumbs Up
Does it solve your question? Please Accept as Solution

chico
Advocate V
Advocate V

@victorcp 

thanks for joining the party, I was just looking at that, but cant seem to wrap my mind on how to establish the security for that call...

thoughts, ideas?

chico
Advocate V
Advocate V

Also now see that the AAD connector can pull the last password change date/time stamp.
so with that and if you already know your org's passpolicy then the expiration date/time can easily be calculated.

 

Sadly in my environment I need to go Lobby the powers to Allow the AAD connector to -connect.

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Apps Ideas

Check out the New Ideas Site

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (4,048)