Session Variables in BI Publisher to get logged in user info
Session variables are used frequently in BI Publisher when the reports are being exposed to employees.
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')
Sample SQLs:
select * from per_persons where person_id = HRC_SESSION_UTIL.get_user_personidselect * from per_organization_units WHERE business_group_id = fnd_profile.value('PER_BUSINESS_GROUP_ID')
You can add these to the SQL query as per your requirement and get appropriate results.
Hope this is useful.. stay tuned for more updates.
Nice blog Thanks For Sharing This Informative Blog, In This Blog content is very informative.
ReplyDeleteOracle Fusion Financials Online Training
Oracle Fusion SCM Online Training
Such a nice blog, I really like what you write in this blog, I also have some relevant information about if you want more information.
ReplyDeleteOracle Fusion HCM Online Training
Oracle Cloud HCM Online Training
christian louboutin outlet
ReplyDeletesupreme clothing
supreme clothing
yeezy boost
balenciaga shoes
michael kors purses
adidas stan smith
cheap jordans
michael kors outlet online
yeezy boost 350 v2
ReplyDeleteIam so thrilled because of finding your alluring website here.Actually i was searching for Oracle Fusion HCM Techno Functional.Your blog is so astounding and informative too..Iam very happy to find such a creative blog. Iam also find another one by mistake while am searching the same topic Oracle PPM Cloud.Thank you soo much.
yeezy 700
ReplyDeletesupreme clothing
off white
giannis shoes
curry shoes
chrome hearts online store
moncler
golden goose sale
yeezy 350
off white shoes
i got stuck in Restricting Business Units for individual users in BIP Reports...p
ReplyDeleteit would be great for me if you help me do it
ReplyDeleteThankyou