Skip to main content

Notifications

Power Apps - Building Power Apps
Suggested answer

Can you show all users logged into an app (specifically a screen?)

Like (1) ShareShare
ReportReport
Posted on 13 Sep 2024 04:23:59 by 59

Hi All,
 
Is it possible to have a gallery showing all current logged in users? 
 
Further, can it be done on a single screen?
 
Everything I try only shows my current logged in details, but I want to see everyone whos logged in and on what screen.
 
Thanks
 
DW
Categories:
  • Suggested answer
    CA1105 Profile Picture
    CA1105 222 on 13 Sep 2024 at 09:02:20
    Can you show all users logged into an app (specifically a screen?)
    I assume this could be tedious but you can store logged in information into any DB like SharePoint/Dataverse/SQL or excel file whenever any users uses the app. You can use App.Onstart property to put that information in your DB and bind gallery with that datasource to show that informaion.
  • Suggested answer
    FLMike Profile Picture
    FLMike 29,371 on 13 Sep 2024 at 04:43:16
    Can you show all users logged into an app (specifically a screen?)
    HI,
     
    Ok here is an option to do
     
    1. Create a List in SP that stores a users email, their Display name, and LastPingedDateTime
     
    2. Add a Timer to your app
    3. Set the timer to run like every 1-5 minutes
     
    now in the TImer, when it triggers you would update the LastPingedDateTime for that user who is logge din
     
    4. Add a Screen that shows everyone who has updated the LastPingDateTime, WITHIN the Timer time.
     
    So if you ping every 5 minutes, then you would show everyone who has pinged within the last 5 minutes.
     
    Then you could have another timer (or use the same one) to Refresh the Gallery
     
    So as soon as a persons time is past 5 minutes they would drop off.
     
    Now you are showing everyone that is FOR SURE logged in, but you have some delay of up to 5 minutes before someone falls off who exitted the app.
     
    If this answers your quesiton please mark as the answer.
     
     
     
     
     
     
     

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #9 Get Recognized…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 144,316

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,290

Leaderboard
Loading complete