Skip to main content
Known Participant
Jan 31, 2023 6:07 AM UTC
Question

Show all logged In users in the interface.

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

    11 replies

    stefanhelzle0001
    Brainy
    Jan 31, 2023 7:36 AM UTC

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

    Known Participant
    Jan 31, 2023 9:55 AM UTC

    i wanted to showcase all the currently logged in users. 

    stefanhelzle0001
    Brainy
    Jan 31, 2023 10:02 AM UTC

    OK, but for what purpose?

    konduruc733182
    Inspiring
    Jan 31, 2023 2:05 PM UTC

    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
    Brainy
    Feb 11, 2023 11:03 PM UTC

    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.

    New Participant
    Feb 20, 2023 6:38 AM UTC

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

    juliah0004
    New Participant
    Feb 12, 2023 7:32 PM UTC

    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
    Brainy
    Feb 13, 2023 4:26 PM UTC

    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
    Known Participant
    Feb 13, 2023 3:57 AM UTC

    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
    Brainy
    Feb 13, 2023 4:23 PM UTC

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

    achutaharshavardhanv6069
    Known Participant
    Feb 14, 2023 4:27 AM UTC