Show all logged In users in the interface.

Certified Senior Developer

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

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Associate Developer

    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")
    )

Reply
  • 0
    Certified Associate Developer

    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")
    )

Children