1,970 total views
Session variables are used frequently in BI Publisher when the reports are being exposed to employees to add data security on top of the existing query.
We need to write query to pull only the logged in user information and for this we will use the session variable. Apart from this user, there are many other session variables and we are going to look at them now.
Logged in User Person ID – HRC_SESSION_UTIL.get_user_personid
Logged in User Username – :xdo_user_name
Logged in User Username – FND_GLOBAL.USER_NAME
Logged in User GUID – fnd_global.user_guid
Logged in User SessionID – userenv(‘sessionid’)
Logged in User Language – USERENV (‘LANG’)
Logged in User Business Group – fnd_profile.value(‘PER_BUSINESS_GROUP_ID’)
You can add these to the SQL Query as per your requirement and get appropriate results.
If you have any questions, please feel free to reach out to me by posting in comments section.
If you are interested in learning Fusion Technical tools go through this post
If you liked the article, please share it with your friends/ colleagues/ teammates or anyone who might also benefit from it.
Latest posts by Sricharan Monigari (see all)
- Renaming HCM Extracts is a possibility from 20D - November 24, 2020
- Sangam20 – Oracle Users Group Conference - November 23, 2020
- Passing Parameter values from Flow Instance to HDL Transformation Formula - November 23, 2020
- Solve manual FTP server update issue for HCM Extracts post every P2T refresh - November 16, 2020