Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
How to get "Log-in Name" and "Office Location" from user profile?
Noura_Almazrouei_(nalmazrouei_-_(deleted))
Can anyone help me in getting "Log-in Name" and "Office Location" from user profile (of the user which is logged in).Please reply me as soon as possibel.
Find more posts tagged with
Comments
Alex_Kowalenko_(x-eu0016039_-_(deleted))
Message from Alex Kowalenko via eLinkThe ID of the current user can be obtained from the program context:Integer currentUserID = prgCtx.USession().fUserIDInformation about a user can be obtained from the UAPI:RecArray currentUserInfo = UAPI.GetUserByID( \ prgCtx.USession().fSession, currentUserID )Your information can be found as follows:String currentUserName = currentUserInfo[ 1 ].NameString currentUserLocation = currentUserInfo[ 1 ].OfficeLocationNote that all user fields (aka KUAF fields) are available in this record. If all you want is the current user name then you can get that directly fromthe program context:String currentUserName = prgCtx.USession().fUserName-alex------Original Message-----From: eLink Discussion: Development Discussion[mailto:development@elinkkc.opentext.com] Sent: Tuesday, June 21, 2005 12:44 PMTo: eLink RecipientSubject: How to get "Log-in Name" and "Office Location" from user profile?How to get "Log-in Name" and "Office Location" from user profile?Posted by Al Junaibi, Mohamed on 06/21/2005 12:43 PMCan anyone help me in getting "Log-in Name" and "Office Location" from userprofile (of the user which is logged in).Please reply me as soon as possibel.[To reply to this thread, use your normal E-mail reply function.]============================================================Discussion: Development Discussion
https://knowledge.opentext.com/knowledge/livelink.exe?func=ll&objId=786303&objAction=viewLivelink
Server:
https://knowledge.opentext.com/knowledge/livelink.exe
Noura_Almazrouei_(nalmazrouei_-_(deleted))
;String currentUserName = prgCtx.USession().fUserName The above code is giving loginname very well. BUt when i pasted the below code whole page stops displaying any result;RecArray currentUserInfo = UAPI.GetUserByID( \ ;prgCtx.USession().fSession, currentUserID )
Noura_Almazrouei_(nalmazrouei_-_(deleted))
Thanks, code is working fine now. I was missing a variable. Now its OK