retrieving Liferay userId

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

retrieving Liferay userId

r.pecori
Hi,

I am running Orbeon Forms 4.0.0.rc1.201302120214 PE with development licence.

I am showing orbeon forms in the form runner portlet in Liferay and I need to get in someway the userId of the current logged user.

I can only get user email and user Full name but bot user id. I am trying to mangae to get userId from Liferay at a backend side using user email and user Full name but I'd rather get userId directly.

Can anyone help?
Reply | Threaded
Open this post in threaded view
|

Re: retrieving Liferay userId

Erik Bruchez
Administrator
Can you try:

xxf:get-request-header('Orbeon-Username')

or:

xxf:get-request-header('orbeon-username')

(We fixed a bug related to the case-sensitivity of headers recently.)

-Erik

On Wed, May 29, 2013 at 3:28 AM, r.pecori <[hidden email]> wrote:

> Hi,
>
> I am running Orbeon Forms 4.0.0.rc1.201302120214 PE with development
> licence.
>
> I am showing orbeon forms in the form runner portlet in Liferay and I need
> to get in someway the userId of the current logged user.
>
> I can only get user email and user Full name but bot user id. I am trying to
> mangae to get userId from Liferay at a backend side using user email and
> user Full name but I'd rather get userId directly.
>
> Can anyone help?
>
> --
> View this message in context: http://discuss.orbeon.com/retrieving-Liferay-userId-tp4656832.html
> Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com.
>
> --
> You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To post to this group, send email to [hidden email].
>
>

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].


Reply | Threaded
Open this post in threaded view
|

Re: retrieving Liferay userId

r.pecori
I do not need username of orbeon user but liferay user Id.

I am now using xxf:get-remote-user() and it works.