Maximo Wire - The IBM Maximo Help & Discussion Forum
May 22, 2012, 11:27:49 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to Maximo Wire, the IBM Maximo help forum. Feel free to register and ask any Maximo related questions you like.
 
  Home Help Search Login Register  
*
Pages: [1]   Go Down
  Print  
Author Topic: Getting user information  (Read 2494 times)
0 Members and 2 Guests are viewing this topic.
mirws
Newbie
*

Karma: 0
Posts: 2


View Profile
« on: January 13, 2010, 05:02:20 am »

Hi everyone... I'm new here... and I'm a pure newbie in maximo Cheesy
I have a question, How can we to get logged user information in maximo???, I need this for my report. My User ask me to add an user logged information in the report.

Thanks..
Logged
DennisSchumann
Newbie
*

Karma: 0
Posts: 5


View Profile
« Reply #1 on: January 13, 2010, 12:20:05 pm »

Hi Mirws,

I'm not sure if this is what you want but you can enable user login tracking. It's the property LOGINTRACKING defined in the table MAXVARS. But remember, it slows down your maschine because each login will be tracked in the table LOGINTRACKING....

Regards....
Logged
Ethen
Global Moderator
Sr. Member
*****

Karma: 16
Posts: 303



View Profile WWW
« Reply #2 on: January 21, 2010, 08:10:44 am »

I dont know how to do it in report but in maximo we can get the current user info using
MboRemote.getUserInfo();

from this object various information like username, default site etc can be retrieved.

hope it helps
Logged

regards,

Ethen...
stef_g
Newbie
*

Karma: 0
Posts: 2


View Profile Email
« Reply #3 on: October 07, 2010, 04:20:45 pm »

not sure what reporting system you are using but this works for me in SQL with Maximo 6.2

select 

maxsession.userid as NAME,
maxuser.type as USER_TYPE,
maxsession.clienthost as USER_PC#,
CONVERT(VARCHAR, maxsession.logindatetime, 13)as LOGIN_TIME,
CONVERT(VARCHAR, maxsession.lastactivity, 13)as LAST_ACTIVITY


from maxsession

left join maxuser on maxsession.userid = maxuser.userid

where active = '1'

order by maxuser.type,lastactivity desc
Logged
Ethen
Global Moderator
Sr. Member
*****

Karma: 16
Posts: 303



View Profile WWW
« Reply #4 on: October 07, 2010, 04:33:20 pm »

doenst max session controls only currently logged on users.. if I am not wrong it doesnt keep data of users who have logged off.
Logged

regards,

Ethen...
stef_g
Newbie
*

Karma: 0
Posts: 2


View Profile Email
« Reply #5 on: October 08, 2010, 09:42:40 am »

it does, but i thought that is what they were after

here is the SQL query which will show all login activity

select

attemptdate,
maxsessionuid,
name,
maxuser.type,
attemptresult7,
clienthost

from logintracking

left join maxuser on logintracking.userid = maxuser.userid

where attemptresult7 <> 'success' and name <> 'maxadmin'

order by maxsessionuid desc, attemptdate desc
Logged
Ethen
Global Moderator
Sr. Member
*****

Karma: 16
Posts: 303



View Profile WWW
« Reply #6 on: October 08, 2010, 12:47:54 pm »

from users appliaction, in selection action -> security controls. enable login tracking first.
« Last Edit: October 08, 2010, 12:52:02 pm by Ethen » Logged

regards,

Ethen...
anks123
Newbie
*

Karma: 4
Posts: 8


View Profile Email
« Reply #7 on: December 29, 2010, 12:44:24 pm »

logintracking is the name of table from  where you can extract all the required details for your report.
i have created a similar report .
Logged
Ethen
Global Moderator
Sr. Member
*****

Karma: 16
Posts: 303



View Profile WWW
« Reply #8 on: January 11, 2011, 08:09:12 pm »

if you are using actuate report, override Function GetText ( ) of text control using the following code:

Function GetText ( ) As String
GetText = GetServerUserName ( )
End Function
  Grin
Logged

regards,

Ethen...
pmormile
Newbie
*

Karma: 1
Posts: 9


View Profile
« Reply #9 on: January 27, 2011, 03:15:10 pm »

I am not an expert at this system but - I have found this information useful:

In Maximo menu do the following:

Go to --> Security  --> Users

Go to the select action Menu and choose manage sessions.

From here you can see who is currently logged in and if you go to the login tracking tab you
can see the login history. You can also hit the download button and it will download all
of this information into an excel spreadsheet for you.

Not sure if that is what you are looking for but... hope it helps.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Recent

TinyPortal v1.0 beta 4 © Bloc
Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!