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
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

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