Skip to main content
January 31, 2023
Question

Show all logged In users in the interface.

  • January 31, 2023
  • 11 replies
  • 0 views

Is there anyway can we show all the currently logged in users in the interface

    11 replies

    stefanhelzle0001
    Brainy
    January 31, 2023

    I do not know of a way to do that. What is your use case?

    January 31, 2023

    i wanted to showcase all the currently logged in users. 

    stefanhelzle0001
    Brainy
    January 31, 2023

    OK, but for what purpose?

    konduruc733182
    January 31, 2023

    Hello thiliniu0001, is this a portal or site? Since you are using the word logged in users, I am assuming that it is a Site. In case of Site the answer is no, we do not have an option as of now. But if it is a portal may be I can suggest some ideas.

    abhayd3663
    February 11, 2023

    I think you are looking for a list of all the logged-in user to the environment, I am not sure it is available OOTB. You might have to play with kdb files.

    February 20, 2023

    Hello! how do i do with kdb files? Is there a fee for this program? minesweeper

    juliah0004
    February 12, 2023

    I needed something similar and created a constant for all users, then used an expression rule with a!forEach. There may be an easier way but this worked for what I needed. 

    a!forEach(
    items:getdistinctusers(cons!GET_ALL_USERS_POINTER),
    expression: fv!item & ":" &
    user(fv!item,"firstName")& ":" &
    user(fv!item,"lastName")& ":" &
    user(fv!item,"email")& ":" &
    user(fv!item, "status")
    )

    abhayd3663
    February 13, 2023

    The question is how do you populate cons!GET_ALL_USERS_POINTER. if you are doing it manually there is no point, since it will be a static list. The ask is to dynamically retrieve all the logged-in users.

    achutaharshavardhanv6069
    February 13, 2023

    There are 2 Functions which are available like queryappianlogs() or readlog() which can help you get the data into the interface and can show the data in the screen.

    Alternatively, you can write a plugin which does the same thing as per your specification.

    abhayd3663
    February 13, 2023

    Interesting. I couldn't find any of these function.

    achutaharshavardhanv6069
    February 14, 2023