Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get logged in username using scripting only

Status
Not open for further replies.

musojonn

Technical User
Aug 10, 2012
7
GB
Hi everyone, hope you're well.

Is there any way to get the logged in username using oscript? I have been reading through the docs and couldn't really figure it. There was some info in this old thread thread862-750694 but this refers to a login page I cannot find anywhere - I can find a cmo-login which does not appear to use any obvious script.

I tried to do this but am really not getting anywhere. I think we need a LivelinkUserInterface sort of like this:

Code:
var llui - new LivelinkUserInterface();
llui.getCurrentUser();

Any ideas? Any help is much appreciated.

Thanks very much

Jon
 
Thanks Greg. Now I just have to find out what's in that object, not in my scripting documentation here. I see many people in answers talking about the Livelink Builder, which allows examing objects methods / properties etc I'm guessing...can't find this in my downloads from Opentext anywhere...

Thanks for your help.
 
OK, thanks very much Greg. So is there any documentation about these objects somewhere - just a simple class browser or something - or am I left with:

1: try and guess how to do oscript by bangi
2: buy the sdk
3: just do it in .net instead, and stop banging my head against a wall :)

Thanks
 
I guess the answer depends on what you are trying to do, if it is just the username and the rest of your code is in .Net then use the WebService.

Can you provide more information on what you are trying to do ?

Greg Griffiths
Livelink Certified Developer & ECM Global Star Champion 2005 & 2006
 
Hey Greg.

I was just trying to grab the Livelink username which would allow me to pick up who was going to a page, then loading their data. Like a little hr portal area, loading the training plan details from a db. So literally the bit of oscript which was getting me was just to find out logged in user so i could then personalise the page. I thought it would take me seconds to find out how in the online reference :)
 
many orgs use livelink dirsvcs which means it is using the windows creds of the user so any decent .net program can get the logged in user.In your org do you have livelink with user's signing in then this method won't work.although after the page is rendered it is sitting there in the browser.I do not know if you will be able to use that info to do what you need.

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008,Livelink ECM Champion 2010
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top