Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Getting portal user id from

I'm trying to retrieve the portal login id from programs in EP6.

We currently do not have SSO. And we aren’t using User Mapping.

I have existing programs that work fine on EP5 but I’m unable to retrieve the user id when I try to run them through EP6. These programs are installed on the portal server.

In EP5:

I'm using the iView Editor, URL tab to do a get method:

Label: logon

Value: #USER NAME#

Then, in my program the code is:

string o_user;

lblQstring.Text = Request.QueryString.Get(0).ToString();

o_user = this.lblQstring.Text.Substring(this.Label1.Text.IndexOf("
") + 1);

In EP6:

I couldn’t figure out what needed to be put in the parameters in the URL iView editor, so I don’t know if the old code would even work. It definitely doesn’t work without the parameters.

I also tried the following, in my code, which works on new portal applications made with the PDK in .net ~ but it doesn't work in the old ones.

string new_user;

new_user = this.User.Identity.Name.ToString();

new_user = new_user.ToUpper();

txtUserid.Text = new_user;

Is there a way to retrieve the portal login under these circumstances? If so, how?


Former Member
Former Member replied

Julie, the solutions that André and Reiner have presented are indeed excellent and elegant solutions utilizing SSO.

However, you mentioned in your first post that you are trying to do this without SSO.

It might be a good idea to implement SSO and go with the solutions they provide. Otherwise, please do keep us posted on what you find. Thanks! --Shibli

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question