Show logged in users
Hello,
I'd like o create an iView that shows a list of users logged into the portal. The list should refresh itself continuously and that should be controlled by the iView properties. Does anybody already develop that? I'm a developing newbie and I need some example code...
Thanks a lot
Steffen
Hi Ami,
Can you please tell me whether u are working on WAS Java or both Java+Abap?
If latter then please refer to this forum post: Re: List all users who are logged in
Also, do try this code but currently this wud only give one user who is logged in EP:
import com.sapportals.portal.prt.component.AbstractPortalComponent;
import com.sapportals.portal.prt.component.IPortalComponentRequest;
import com.sapportals.portal.prt.component.IPortalComponentResponse;
import com.sapportals.portal.security.usermanagement.UMFactory;
import com.sap.security.api.logon.*;
import com.sap.security.api.*;
import javax.servlet.http.*;
public class TestServlet extends AbstractPortalComponent
{ public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
{ IUserFactory userfactory = com.sap.security.api.UMFactory.getUserFactory();
IUser iuser;
String uniqueid, userid, roleroot;
IRole superRole = null;
IRoleFactory ir;
// counting & displaying all existing Portal users.
try
{ IAuthentication iau = com.sap.security.api.UMFactory.getAuthenticator();
ILogonAuthentication ilogonauth = com.sap.security.api.UMFactory.getLogonAuthenticator();
HttpServletRequest req = request.getServletRequest();
HttpServletResponse res = request.getServletResponse(false);
response.write("<br> Currently Logged In User -> " + iau.getLoggedInUser(req,res).getFirstName()+ "<br>");
catch(Exception e)
{ response.write(e.getMessage());
Am working on as to loop it to get all logged users.
And also would like to know ur EP version???
Can also try this (checked this on EP6 SP9:
<b>System Administration -> Support -> Wed Dynpto Test Tools -> User Management</b>.
This gives you details on currently logged users.
Awaiting Reply.
Thanks and Warm Regards,
Ritu
Message was edited by: Ritu Hunjan
Similar Messages
-
How to show logged in users in ACS 5.1
After some time no using Cisco ACS5.1, I still don't know how I can see all logged in users. I can see logging and check why an log in goes wrong, but in ACS 3.2 I just clicked on Reports and Activity and I could choose to see logged in users, or failed attempts, etc.
Can anybody help me out or give me some tips?
Kind regards,
Rizal MeijerNicolas, thank you very much for your fast reply.
Kind regards,
Rizal Meijer
CZ
The Netherlands -
How to show current logged in user image in Master Page
Hi,
I am trying to show logged in user image next to his name, following this article
http://erikswenson.blogspot.in/2011/04/display-user-profile-picture-next-to.html
I am trying to do this in SharePoint 2013, so i put Reference
in .Master file & Control in . html file
Picture is not visible and when i tried to find whether the control has been loaded or not, the control also hasn't been loaded.
Please tell me, how could i do this?This is not that hard to do, simply go into your masterpage (Design Manager) and copy and paste this on the top of the page:
<%@ Register tagprefix="SPSWC" namespace="Microsoft.SharePoint.Portal.WebControls" assembly="Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
Once that is done, you can now add this:
<SPSWC:ProfilePropertyLoader runat="server" />
<SPSWC:ProfilePropertyImage PropertyName="PictureUrl" ResizeToFit="115" ShowPlaceholder="true" id="PictureUrlImage" runat="server"/>
To the location where you want the image to be shown. If you have a custom HTML page that you built out, just add it the same way. Let me know if you have any questions.
-G -
Is there a widget that will let one determine the users (IP or name) that are logged onto your machine, say for example, remotely? IS there there some other way of doing this?
Thanks. Paulo.sm04-shows the logged on users of current server.
AL08-shows logged on users of all servers in the network.
Even you can access this from SM51 and selecting the server on which you want to see logged on users and hit user processes tab.
mark as answered if it solved the problem and reward points for the same. -
I need to create an SCCM report to show last logged on user on all machines and the Active Directory department attribute of that last logged on user.
You problem is here.
right
join v_R_User USR on USR.ResourceID
= CS.ResourceID
USR.ResourceID != CS.ResourceID, you need to map the username to the user logon to the PC. By using the user’s department information you will
end up with unreliable results.
Anyways you need to make these changes to your query.
left
join v_R_User USR on USR.Unique_User_Name0
= CS.UserName0
http://www.enhansoft.com/ -
I just installe Lion and when I get to the log in screen it shows the two users but when I try to select either of them nothing happens. How can I fix this so I can log in.
Can you select them with "Arrow left" or "arrow right" key on your keyboard?
-
Log In screen shows my normal user names and "OTHER". How to remove OTHER?
My Log In screen (start up box) shows my normal user names and something called "Other". How do I get rid of this Other name?
I tried deleting "Other" in the System > Accounts, but he is not there.
Cheers.How to disable the root user
Mac OS X v10.6 and later
1. From the Apple menu choose System Preferences....
2. From the View menu choose Accounts.
3. Click on the lock and authenticate with an administrator account.
4. Click Login Options....
5. Click the "Edit..." button at the bottom right
6. Click the "Open Directory Utility..." button.
7. Click the lock in the Directory Utility window.
8. Enter an administrator account name and password, then click OK.
9. Choose Disable Root User from the Edit menu. -
ZCC Logged In Users keep showing after user logout
ZCM 11.2.4 with matching clients. Workstations still reflecting logged in users after they've logged out and even restarted their computer. I've logged out and logged back in to ZCC and still don't reflect no one logged in to PC. It changes when next person logs in to PC though. This is new behavior since our update to 11.2.4.
Is there a setting to change, or is this something new to work around?Merlyn,
> This
> is new behavior since our update to 11.2.4.
you might think that, but it's been like that since day 1 of ZCM, and
you've been lucky It's supposed to "clean up", but doesn't always
achieve that
Shaun Pond
newly reminted as a Knowledge Partner -
Getting Logged on User'Information in an Oracle-Form SSO Partner Application
Hi.
I could run Flight-of Fancy Application and capture user's information by calling the
"Parse_cookie " Procedure.(use the Scenario 2 - Access the Portal and then the FOF App)
and defined an Oracle-Form application as Partner application like FOF.
I want to have Logged on user'Information in the "Oracle-Form" . But the Fucntion owa_cookie.get dosen't work correctly.please let me know what can I do ?
Thanks in advanced.Hi.
I could run Flight-of Fancy Application and capture user's information by calling the
"Parse_cookie " Procedure.(use the Scenario 2 - Access the Portal and then the FOF App)
and defined an Oracle-Form application as Partner application like FOF.
I want to have Logged on user'Information in the "Oracle-Form" . But the Fucntion owa_cookie.get dosen't work correctly.please let me know what can I do ?
Thanks in advanced. If you're writing your own partner application, then you are correct to get the user information from the output variables
from the parse_url_cookie procedure. You should then set the information you want to keep track of in the cookie, or combination
of cookie and persistent storage in the database. Take care of the security implications while doing this.
On subsequent calls to your application, the user info should be obtained from the cookie and the database, if you
are using a combination of the cookie and database storage to keep your info.
The owa_cookie.get routine is used to read the cookie, which is generated with owa_cookie.send.
These routines work fine, when invoked correctly.
If you are having trouble with them, you're probably not using the calls properly.
The following code provides an example of how to use the owa_cookie calls...
create or replace package testcookie
is
procedure show (p_name IN VARCHAR2);
procedure send
p_name IN VARCHAR2,
p_value IN VARCHAR2,
p_path IN VARCHAR2 default null,
p_expires IN VARCHAR2 default null
end testcookie;
show error package testcookie
create or replace package body testcookie is
procedure show (p_name IN VARCHAR2) is
v_cookie owa_cookie.cookie;
begin
v_cookie := owa_cookie.get(upper(p_name));
htp.htmlopen;
htp.bodyopen;
htp.print(v_cookie.vals(1));
htp.bodyclose;
htp.htmlclose;
exception
when others then
htp.htmlopen;
htp.bodyopen;
htp.print('NO COOKIE FOUND.');
htp.print(SQLERRM);
htp.bodyclose;
htp.htmlclose;
end;
procedure send
p_name IN VARCHAR2,
p_value IN VARCHAR2,
p_path IN VARCHAR2 default null,
p_expires IN VARCHAR2 default null
is
v_cookie owa_cookie.cookie;
l_agent varchar2(30);
l_expires varchar2(30);
l_path varchar2(100);
begin
if p_expires is null then
l_expires := null;
else
l_expires := to_date(p_expires, 'MMDDYYYY');
end if;
if p_path = 'ALL' then
l_path := '/';
else
l_path := null;
end if;
owa_util.mime_header('text/html', FALSE);
l_agent := owa_util.get_owa_service_path;
l_agent := substr(l_agent, 1, length(l_agent) - 1 ) ;
owa_cookie.send(
name => upper(p_name),
value => p_value,
expires => l_expires,
path => l_path
owa_util.http_header_close;
htp.htmlopen;
htp.headopen;
htp.headclose;
htp.bodyopen;
htp.print ('Cookie set.');
htp.bodyclose;
htp.htmlclose;
end;
end testcookie;
show error package body testcookie;
grant execute on testcookie to public;If you load this into a schema which a DAD can access, then you can invoke the show and send procedures to view and
generate cookies.
To generate a cookie, issue the following from your browser ...
http://server.domain.com/pls/dad/schema.testcookies.send?p_name=test&p_value=hello
To view the cookie:
http://server.domain.com/pls/dad/schema.testcookies.show?p_name=test -
Login to Jabber Client (Windows/Mac) with current logged in user account.
We are deploying Jabber Client for Windows and will eventually be deploying for Macintosh. I have no problem building the thinapp deployment package for the Jabber client. However, when the thinapp is ran, it always shows the account that was used to initially login to the client and setup the server connection.
Is there a way for the client to use the current logged in user in the sign in field? I am trying to automate or SSO the process of logging into Jabber.
Any and all ideas, tips, and/or tricks are greatly appreciated!
Thank you,
WesThis is nothing to do with the TC. This is your user issues on the Mac.
I would do a major fix on the computer.. copy your user files to another location.. create a new administrator account.. login with the new admin account and delete the old one. Delete all the files associated with that account, so you are effectively starting with a clean Mac.
I have just sold off a couple of computers and that is how I prepared it for the next person.. it seemed to work easily and removed all my stuff from the computer whilst still giving them full admin access.
Please I am far from expert in doing this kind of stuff in OSX so just look up deleting original user accounts in whatever OS you run. -
Populating the Lookup values in AD Child Form based logged in user
HI,
Below is the Lookup code(AD Groups) format.
Codekey , Decodekey
IT-Development , IT-Development
IT-Testing , IT-Testing
IT-Production , IT-Production
HR-system , HR-system
HR-Finance , HR-Finance
My requirement is I need to filter the data being presented in the lookup according to the logged in user in ad child form,
If i am logged in as xelsysadm the lookup presents all groups.
If i am logged in as IT administroter the lookup presents only the IT Related groups(EX:IT-Development,IT-Testing....).
If i am logged in as HR administroter the lookup presents only the HR Related groups(EX:HR-System,HR-Finance...).
like this we have contains so many administrators.
We are desiding the administrators based on user form field.
The Field contains the value like HR-Related,IT-Information Technology.....
How can i achive this?
Thanks in advance.
Edited by: 790561 on 4/12/2011 17:48
Edited by: 790561 on 5/12/2011 12:02Hi Rajiv,
Thank you for quick reply,
When i am login as IT administrator and i provisioned user to AD it showing the IT Related groups in ad child form based on your Suggestion.
If i logout and login as a HR administrator and i edit the child process form of the same user still its showing IT Related Groups only.If I revoke and provision user to ad again with HR administrator this time its showing HR Related groups in AD Child form.
I think based on the requester its showing the values.
But i want to filter groups based on logged in user.
EX:If i login as IT administrator and provision the user to AD in Child form its showing the IT Related groups only its correct.
If I logout and login as HR administrator and i edit the same user AD Child form its showing the IT related groups only its not correct.this time it shows only HR Related.
Any solution....
Thanks in advance. -
Hi
I am new to sharepoint 2010.
I created a custom task list, where I have many tasks assigned to users (I had tasks assigned to me as well). I created a view as "My tasks "and having a filter as Assigned To is equal to [Me]. When I do that my view fails to show the
tasks assigned to me. This happens same with the Sharepoints 'My Tasks' view as well. I tested by creating some test tasks under my name and when I selected 'My Tasks' view no tasks are getting displayed.
Please help.
Thanks,
Gokulkumar.Hi,
According to your post, my understanding is that you wanted to display the tasks assigned the current logged in user.
In my environment, if I used the System Account, My Task view didn’t display any tasks.
However , if I used other users except the System Account, My Task view could display current user tasks correctly.
I recommend to use other accounts except System Account to log in site. Then everything will work well.
Thank you for your understanding.
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
How to get current logged in user's star rating in SharePoint 2013
Hi,
Currently, I am developing a custom web part to show star rating for documents, everything is done.
However,when user hover on the star I want a tooltip message("Your current rating is 1..."), similar to what we have
in libraries(or what the sharepoint by default provides in libraries) . So can I get the user specific rating depending upon
the logged in user using code(.net or CSOM anything will work)using the below code you can get the rated by user along with the rating , it's easier to just notify the user that her already rated the document
var acontext = new SP.ClientContext.get_current();
var lists=acontext.get_web().get_lists();
var l =lists.getByTitle("Documents"); //your document libraty
var aitem=l.getItemById(27);//Item id
acontext.load(aitem, "RatedBy", "ID", "Ratings");
acontext.executeQueryAsync(function(){
var RatedBy= aitem.get_item('RatedBy');
if (!SP.ScriptHelpers.isNullOrUndefined(ratings)) {
for (var i = 0; i < RatedBy.length; i++) {
var user = RatedBy[i];
if (user.get_lookupId() == _spPageContextInfo.userId) {
//show that you already rate it
break;
},function(s,e){alert(e.get_message());});
another way is to use CAML query to check if the current user id is within the RatedBy multi user field
Hope that helps|Amr Fouad|MCTS,MCPD sharePoint 2010 -
How to use a Text View to show the current user
Hi Experts,
I am using a Text View to show the current logged on user.
Also i need to retrieve the date of creation of proposal and show it as output parameter.
I am using the following code but it is not working properly.
Please help me out regarding the same.
Method technicalDescription()
//Attribute User to store user name
IGPAttributeInfo user = output.addAttribute("USER", IGPAttributeInfo.BASE_STRING);
user.setMultiplicity(IGPAttributeInfo.MULITIPLICITY_1_1);
//Attribute date to store current system date
IGPAttributeInfo date = output.addAttribute("DATE", IGPAttributeInfo.BASE_DATE);
date.setMultiplicity(IGPAttributeInfo.MULITIPLICITY_1_1);
Method execute()
//getting current system date
Date currDate = new Date(System.currentTimeMillis());
contextElement.setDate(currDate);
//Retrieve Current User Details
try {
IWDClientUser user = WDClientUser.getCurrentUser();
String firstName = user.getFirstName();
String lastName = user.getLastName();
String userName = lastName + " " + firstName;
contextElement.setUserName(userName);
} catch (WDUMException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
Method complete()
output.setAttributeValue("USER", wdContext.currentContextElement().getUserName());
output.setAttributeValue("Date", wdContext.currentContextElement().getDate());
Thanks a lot.
Cheers
Gaurav RaghavThere are a few ways, for example declare an IBOutlet for the text field and then use it with NSControl's stringValue: method (inherited by the NSTextField), or bind the value of the text field to a property, etc. What have you got so far?
-
How to use a Text View to show the current user in WDJ
Hi Experts,
I am using a Text View to show the current logged on user.
Also i need to retrieve the date of creation of proposal and show it as output parameter.
I am using the following code but it is not working properly.
Please help me out regarding the same.
Method technicalDescription()
//Attribute User to store user name
IGPAttributeInfo user = output.addAttribute("USER", IGPAttributeInfo.BASE_STRING);
user.setMultiplicity(IGPAttributeInfo.MULITIPLICITY_1_1);
//Attribute date to store current system date
IGPAttributeInfo date = output.addAttribute("DATE", IGPAttributeInfo.BASE_DATE);
date.setMultiplicity(IGPAttributeInfo.MULITIPLICITY_1_1);
Method execute()
//getting current system date
Date currDate = new Date(System.currentTimeMillis());
contextElement.setDate(currDate);
//Retrieve Current User Details
try {
IWDClientUser user = WDClientUser.getCurrentUser();
String firstName = user.getFirstName();
String lastName = user.getLastName();
String userName = lastName + " " + firstName;
contextElement.setUserName(userName);
} catch (WDUMException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
Method complete()
output.setAttributeValue("USER", wdContext.currentContextElement().getUserName());
output.setAttributeValue("Date", wdContext.currentContextElement().getDate());
Thanks a lot.
Cheers
Gaurav RaghavYou can use a text string as the reference.
If you use the VISA Find Resource function, it will return an array of strings which you can index in your code, and store either the index, or store the string itself. You can even use strings like COM1 and COM2, assuming those ports are available.
The challenge is when you move from one machine to another, where the serial ports may be different on the other machine.
Message Edited by LabViewGuruWannabe on 01-07-2008 06:33 AM
Message Edited by LabViewGuruWannabe on 01-07-2008 06:37 AM
Attachments:
VISA find.png 5 KB
Maybe you are looking for
-
Can't print from Tiger to a shared printer on Mountain Lion
Hello, I have a branch office that's running Mountain Lion on one computer and Tiger on the other. How can I print from the Tiger machine to a shared printer on the Mountain Lion computer? I should point out that this isn't a problem when the print
-
Can't get ActiveSync to work for Microsoft Outlook...
My school email is through Microsoft Outlook and I would really like to sync it to my phone, however it wont let me. When I try it makes me do it the manual way then says my user name and/or password are wrong, I've checked multiple times and they ar
-
Currency Code of a Legal Entity - R12
Hi, I need to find out the currency code for a Legal Entity in a R12 instance Based on what I have read and from e-TRM, I have written the following queries: select gsb.currency_code from hr_operating_units hou, xle_entity_profiles xep,
-
How to stabilize with 1 null containing pos, rot, scale?
I've manually tracked my characters face, via a null positioned at the bottom of his nose line, and the bottom of his inner ear line. Attaching my mouth shapes to that track works great and demonstrates that it's a good track. Now, I want to redo the
-
Diff ws_upload and gui_upload
The difference is that the DataProvider is used for the upload instead of GMUX. waht is dataprovider and GMUX? regards