Skip to main content

Notifications

Power Platform Community / Forums / Building Power Apps / Can you show all users...
Building Power Apps
Suggested answer

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

Posted on by 19

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 182 on at
    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 26,301 on at
    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

September 2024 Newsletter…

September 2024 Community Newsletter…

Community Update Sept 16…

Power Platform Community Update…

Welcome to the new Power Platform Community!…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 141,122

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,414

Leaderboard