Skip to Content

How to get IUserContext from IUser ?

Hello All,

I am trying to get the IUserContext object from IUser object.

I found a very easy method

com.sapportals.portal.prt.session.IUserContext userContext= request.getUser();

which will give IUserContext object.

What I am trying to do is to get the same from an userid.

Regards

Bobu

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2010 at 03:27 AM

    Hi,

    Please go thr below link will help you

    http://help.sap.com/saphelp_sm32/helpdata/en/35/f38f414141a709e10000000a155106/content.htm

    Thanks,

    Sreeni.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2010 at 03:32 AM

    Hi,

    As per my knowledge; UserContext stores the user session related information. Hence UserContext cannot exist without associated session.

    Hence UserConext cannot be fetched using IUser API. Please check API - http://help.sap.com/javadocs/NW04S/SPS09/se/index.html

    Regards,

    Ganga

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.