Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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)?

0 votes



3 answers

Permanent link
These are not API so they are subject to change.

rendered="#{loginUser.user.registered}"
${loginUser.user.loginid}

0 votes


Permanent link
Thanks Sheehan.

Also is there any function to check if user have access to particular community..

So we can have respective announcement per community....


These are not API so they are subject to change.

rendered="#{loginUser.user.registered}"
${loginUser.user.loginid}

0 votes


Permanent link
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

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Nov 29 '10, 2:09 a.m.

Question was seen: 3,886 times

Last updated: Nov 29 '10, 2:09 a.m.

Confirmation Cancel Confirm