on 11-17-2005 3:32 PM
On our portal under user mapping for a particular system, I would like to retrieve the User and password. Does anyone supply the code that would achieve this?
Thanks
I figured it out. Thanks all.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
have the answers been of any value for you? If yes, please consider rewarding points for helpful answers! Thanks in avance!
Best regards
Detlev
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank Maksim, but I have a few more questions. I'm using the following code patterned from one of the snippets:
IUser iuser = request.getUser();
// get usermapping service
IUserMappingService iums =
(IUserMappingService) PortalRuntime.getRuntimeResources().getService(
IUserMappingService.KEY);
I get an error on request.getUser() saying that request is unresolved. IUserMappingService is also unresolved as is PortalRuntime.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Steve,
> request.getUser() saying that request is unresolved
You can get the user, but not from the request (even this would theoretically be possible, but there is a more convenient way): see /thread/81722 [original link is broken] including the link to the weblog given by me.
To access IUserMappingService, see https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/958fcd90-0201-0010-38aa-d8272da593b6 page 7/8 for general hints how to access portal services; here instead of accessing a KM application (com.sap.km.application) you will need to have access to <i>com.sap.portal.usermapping</i> (and the corresponding JARs at build time).
Hope it helps
Detlev
Hello Steve,
Are you trying to call this piece of code from Dynpro? If yes, check this (first post from Matthias). It is the standart way to obtain IUser in Dynpro. To get IUserMappingData you can use
IUserMapping mappings = UMFactory.getUserMapping();
IUserMappingData mappingData = mappings.getUserMappingData( ... );
Best regards, Maksim Rashchynski.
Hello Steve,
Check this
/thread/13806 [original link is broken]
/thread/6447 [original link is broken]
Best regards, Maksim Rashchynski.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.