cancel
Showing results for 
Search instead for 
Did you mean: 

Logged on Users in Portal

Former Member
0 Kudos

Hi,

I want to list all the users who have logged into the portal using a webdynpro for Java application.

Please guide me with this.

I will deploy the Java application on the Portal and when it runs it needs to pick out all the users with active sessions in this Enterprise Portal and display it.

should be like SM04 in R/3 system.

Points coming your way.

Regards,

Abhishek

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Please see SAP docs regarding Authenticated users:

Link: [http://help.sap.com/saphelp_nw70/helpdata/EN/38/116e424925c253e10000000a1550b0/frameset.htm]

Regards,

Erwin

Former Member
0 Kudos

The documentation does not say the authenticated users group is based on who has logged in. It only says the group is setup dynamically at run time. Trust me, it has nothing to do with logged on users. The group changes dynamically based upon users that exist in the UME source.

Former Member
0 Kudos

Hi Guys,

Thanks a lot for your suggestions.I will try out some of the suggestions & also remember what Michael said that its not possible or reliable :-).

Erwin & Michael special thanks to you guys.

Regards,

Abhishek

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi Abhi,

This is Kishore working as a webdynpro developer, I saw your post in SDN.I am having same problem, if you know the solution.Could you please provide me this code for development.

thanks

Kishore

Former Member
0 Kudos

Hi Abhi,

Using UME API, get the Authenticated User group and then get the members of group. Authenticated user group is a dynamic group and users who successfully logged in to the portal are automatically added to this group.

Regards,

Erwin

Former Member
0 Kudos

No. The authenticated users group contains users who can log on, not those who are logged on.

Former Member
0 Kudos

Hi Abhi,

SAP has removed the standar activity report which shows all the users who are logged into the portal because it is not reliable. But still if you want the same then you need to do some customization in the logon page.

1.First maintain a table which consists of the logged in the user's ID

2. Once the login is sucessful make an insert in to the table.

3. in the webdynpro application where you are genertaing a report juz show all the records in the table.

4.Then customize the master head.. Once the logoff is sucessful then delete the record form the table.

Regards,

Raju Bonagiri

Former Member
0 Kudos

What happens if the user closes their browser without logging off or tirns off their PC or loses their network link?

My suggestion is to work out what you're going to do with the list of logged on users. It's not a very hepful list when you think about it. Knowing that someone has been through the logon process doesn't tell you very much...

former_member192434
Active Contributor
0 Kudos

Abhi

You can use this WD code to get all the loged in user in portal

Note: you have to add securtry 2.0.0.jar file from add variable to get it run this code

public void CheckAllUsersLogin( )

{

//@@begin CheckAllUsersLogin()

IWDClientUser currentUsers[]=WDClientUser.getClientUsers();

//Displaying the count of logged on users

wdComponentAPI.getMessageManager().reportSuccess("Number of logged on Users in the portal - "+(currentUsers.length-1));

for(int i=0;i<currentUsers.length;i++){

if(currentUsers<i>!=null){

// Displaying the logged on users;

if(!currentUsers<i>.getLastName().equals("Guest")){

String first= currentUsers<i>.getFirstName();

wdComponentAPI.getMessageManager().reportSuccess("User - "currentUsers<i>.getFirstName()" "+currentUsers<i>.getLastName());

}

}

}

//@@end

}

thanks

Former Member
0 Kudos

I don't think that code reports all users... It doesn't allow for users on different servers and or instances or users not useing web dynpro applications. There is a reason the portal removed a report of logged on users - it was not reliable!

Former Member
0 Kudos

This thread is a Cross post..

former_member206159
Active Contributor
0 Kudos

Why not using standard portal activity report iview.

It will give you all the details you want.

Is there any specific reason for going custom development.

Raghu