on 04-30-2008 12:42 PM
I want to write a web dynpro application that display the logged on users. I was to also display what application / server node they are on.
I know I can use "IWDClientUser currentUsers[] = WDClientUser.getClientUsers();" to get a list of the logged on users, but I am pretty sure this is only for the server node the app is running on.
We have several production servers and server nodes and want to create an application that displays who is currently logged on and where they are logged on.
Thanks,
Tom
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Murty,
To get it to work, you should just have to add the com.sap.security.api.jar to your project.
Regards,
Tom Ficker
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Thomas,
To get all the portal logged in users
Use the follwing code .
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());
}
}
let me know if u solve if still need i will provide code for that
Award points if useful.
Thanks
Best regards
ep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi I have a similar situation, I want to display the logged in users by country wise, but I was having a problem making this expression work
IUserFactory userf = UMFactory.getUserFactory();
it is saying IUserFactory or IUser cannont be resolved or of not type. I added the package name in my com.sap.security.api.sda file to my used DC in WD applications.., is there something else I need to do??
Please let me know,
Thanks
Murty
Refer to:
Please close the thread if your issue is resolved.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
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.