cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Portal UserID & Password via Java Iview

holger_stumm2
Active Contributor
0 Kudos

I do have an iview that reads "Personalization" from the system and calls another program with the userid and password for the specific ALIAS.

Now I need to change the logic to use UserID & Password from the currently logged-on user.

I know how to get the logged-on user in Java Iview, but how do I get the password?

(And no, it is NOT a hack)

Thanks

Holger

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I dont think it is possible to get the password from the portal system via any API's mentioned.

P.S: Kindly assign points if your query is resolved, also close the question to assist other users narrow the search and find solutions

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Holger,

Could you explain how you have set up the iView that gets the UserID? I need this UserID so I can dig up a picture from a Unix file system to display this in the Mast Head, next to `Welcome name`. Thanks!

BR.

Jan

Mattias
Active Participant
0 Kudos

Hi Jan,

The following code in the masthead jsp should give you the current user.


<%
String userId = PortalRequest.getUser().getUserId();
%>

I haven't got access to a NWP at the moment, so I haven't been able to test if it works

Regards

Mattias

Former Member
0 Kudos

Thank you Mattias. We will try this and let you know the outcome.

We want to add a personal photo to the Welcome Area in the masthead. We need to identify the current user and download the picture for the current UID from a Unix file system. The photo has to be displayed next to the name of the user.

Does anyone have any extra ideas on how to set this up?

holger_stumm2
Active Contributor
0 Kudos

Hi,

there are several threads regarding masthead modification.

Maybe you are lucky and just download the masthead.par and (which is a .zip with just a different ending) and it would be enough to modify the jsp

Mattias
Active Participant
0 Kudos

Hi Mattias,

Open a new thread and we'll try to help you, just too keep track of Holger's issue.

Regards

Mattias

Former Member
0 Kudos

I apoligize for hijacking this thread. I have opened a new one, so let´s get back to Holger´s issue. Sorry.

holger_stumm2
Active Contributor
0 Kudos

Hi,

SAP confirmed, that it is definitely not possible with EP60.

You have to do a migration and not a new install &ex/import.

The Personalization is only viable, if users maintain their settings. But if there should be no user action, this is not an option.

thx for all help

Mattias
Active Participant
0 Kudos

Hi,

You could also let an administrator administrate the user-password-mapping, but this usually, depending on the number of users/frequency of password changes, generates quite alot of work for the administrator.

Regards

Mattias

Mattias
Active Participant
0 Kudos

Hi Holger,

It is not possible to get the password of the current portal user, however you can create a user mapping for your other system/program and read the password from the user mapping.

I don't have the documentation available at the moment, but it's a hint. Basically create a "dummy" system for your program, set the loginmethod to user/pwd and maintain a user mapping for your users. Then you can use the standard APIs to read the username and password for the newly created system.

Regards

Mattias