Skip to main content

Notifications

Community site session details

Community site session details

Session Id : VT+zTlrKL7QI7j8RVQkRZt
Power Apps - Building Power Apps
Unanswered

Displaying User Password Expiration Date

Like (0) ShareShare
ReportReport
Posted on 24 May 2022 13:42:23 by

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.

Categories:
  • chico Profile Picture
    636 on 09 Sep 2022 at 17:13:14
    Re: Displaying User Password Expiration Date

    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.

  • chico Profile Picture
    636 on 09 Sep 2022 at 17:11:50
    Re: Displaying User Password Expiration Date

    @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?

  • victorcp Profile Picture
    2,347 Super User 2025 Season 1 on 09 Sep 2022 at 17:10:04
    Re: Displaying User Password Expiration Date

    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 Profile Picture
    636 on 09 Sep 2022 at 16:33:48
    Re: Displaying User Password Expiration Date

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard