Get/check user ID from RAMHeader
We have rendered="#{pc_Home.admin}" function to check if the logged in user is admin or not. Similarly is there any function to check if user is logged in (I don't want announcement to be viewed by user not logged in)?
Also is there any function to get userid of logged in user (to transfer him/her to other secure application)?
Also is there any function to get userid of logged in user (to transfer him/her to other secure application)?
3 answers
Thanks Sheehan.
Also is there any function to check if user have access to particular community..
So we can have respective announcement per community....
If you have community announcements it is best to place these on the community home page.
You could write javascript on the home page to make requests to a particular community home page URL and check the response to see if a user has access. You can access a list of all community URLs using the path /ram/internal/communities