on 04-07-2009 12:24 PM
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
Please see SAP docs regarding Authenticated users:
Link: [http://help.sap.com/saphelp_nw70/helpdata/EN/38/116e424925c253e10000000a1550b0/frameset.htm]
Regards,
Erwin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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...
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This thread is a Cross post..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.