Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

NW 7.3 - Is there a way to get all logged in users?(Like session Management)

Hello All,

I know is there several threads about this subject but none was valid for me.

I need to know who are logged in like session management work.

I tried some solutions like this:

<%
IUserFactory uf = UMFactory.getUserFactory();
ISearchResult ids = uf.getUniqueIDs();
while (ids.hasNext()){
 
  String  uid = (String)ids.next();
  IUser sapUser = uf.getUser(uid);
  if(sapUser.getUserAccounts()[0] != null){ %>
  
   <br><%=sapUser.getDisplayName()%>   
   <%}
}
%>

But this solution retrieves all users of Portal and not only the logged in users.

Somebody already has success on it?

Thanks.

replied
Not what you were looking for? View more on this topic or Ask a question