cancel
Showing results for 
Search instead for 
Did you mean: 

to get all logged in users in portal.....Urgent

Former Member
0 Kudos

hi

Is there any way to get all currenly logged in users in portal, in my web dynpro application .

Warm Regards

Shanto Aloor

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Check these links:

/thread/719649 [original link is broken]

/thread/739242 [original link is broken]

Former Member
0 Kudos

Hi

Use the follwing code to get all the portal logged in users.

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

wdComponentAPI.getMessageManager().reportSuccess("Logon UID: " + sapUser.getUserAccounts()[0].getLogonUid());

}

}

Thanks n Regards,

Jhansi Miryala

venkatakalyan_karanam
Active Contributor
0 Kudos

Hi

Please go through the following threads

Regards

kalyan