Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 09 NOV 2009 07:47:55AM Dale Jessop wrote:

Hi,

I'm trying to get the true network username from the users logged into OI. I can check the SYSLOGINS and get the process ID but I would still need to use (i think) GetTokenInformation to get the network username for that process.

The Q is… has anyone used GetTokenInformation or is there an easier way to get the netwrok username for a given process in OI?

Thanks


At 09 NOV 2009 08:23AM Bob Orsini wrote:

There is a new function released in 9.1 called rti_getnetworkusername. However this function is not working properly and will be fixed in 9.1.1. If you need it now send me an email at rorsini@revelation.com.


At 09 NOV 2009 01:55PM Kauko Laurinolli wrote:

In 8.x I have added Field 13 (MY_USER) into SYSLOGINS.

Then during login everyone writes their ID to this field.

Now all user ID's will be easily accessible.

Compile Subroutine Write_LoggedIn_Log(USR)

LogFile=SYSLOGINS'

ID=MYAPP*':@USERNAME:'*':@STATION

Open LogFile TO FILE_OUT Then

   OPEN 'DICT', LogFile to @DICT ELSE Null

End Else

Msg("Can't open"); Return

End

Select FILE_OUT

@Record=USR ;** add new field username

Write @Record to FILE_OUT, ID else

Msg("Error xxx")

End

Return


At 09 NOV 2009 02:50PM Dale Jessop wrote:

Thanks guys,

In the end I did something similar, writing into SYSLOGINS the username from GetUserName and GetUserNameEx rather than retrieving from the process ID.

Dale.


At 09 NOV 2009 03:46PM Sean FitzSimons wrote:

Kauko/Dale,

I want to issue a warning. While you are using fields in SYSLOGINS that may not be touched by Revelation, placing data in these records may cause problems in the future.

Sean


At 09 NOV 2009 04:13PM John Bouley wrote:

Perhaps a request should be put into the suggestion box to have some user defined fields added?

John

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/5de16e603654f3078525766900464e28.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1