cancel
Showing results for 
Search instead for 
Did you mean: 

user mapping problem--all roads lead to nowhere(IUserMappingService/ISystem

Former Member
0 Kudos

I'm trying to do user mapping, which I've seen sample codes using IUserMappingService. However, there are several issues I'm facing working with SP9.

1. I can't find the IUserMappingService anyhow. I searched on whole drive and can't find the usermappingapi.jar file. Therefore, I can't use the following code as shown in numerous tutorial

IUserMappingService iums = (IUserMappingService)

PortalRuntime.getRuntimeResources().getService(IUserMappingService.KEY); IUserMappingData iumd = iums.getMappingData (systemalias, iuser);

2. So I tried to do the following using ISystemLandscapeObject. But I was having hard time getting the landscape object initiated as mentioned in serveral threads here. I finally used "DummySystemObjectImpl" in desperate hope that this may work although it says "dummy", I got the object anyway, which has the system alias etc. So far so good.

IUserMappingData iumd = UMFactory.getUserMapping().getUserMappingData(islo, iu);

But when I do the enriching, I got "NoLogonDataAvailableException". I'm not sure if it's due to the "dummy" object. But a search for the exception brought me to note 823286, which says upgrading to SP12 may solve it. But I'm not using encryption.

3. Somebody mentioned "HashMap userMapping = ((IUser)request.getUser().getUser()).getRawUserMappingData("SYSTEMALIAS");" But this getRaw... interface never shows up on my Ctrl-space help. Has it been deprecated? Or my SP9 version is too old?

So 2AM into the early morning, I'm scratching my head and asking myself, what happened to all the nice UME APIs? Do I need some good sleep to find the right jar or am I on the wrong SP, or the UME API is screwed?

Help is appreciated!!!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Yujian,

You can get the usermappingapi.jar from <b>System administration-support-Portal Runtime-Browse deployment-ROOT/WEB-INF/portal/portalapps/com.sap.portal.usermapping/lib.</b>

download the jar file from there. If you are not getting that, do send me a mail, i will send that across.My mail id is there in my Business Card

Regards

Rajeev.

Do award points for helpful answers in SDN.

Former Member
0 Kudos

Thanks Rajeev,

This thread has solved my problem Guess I just need 10 mins more sleep to find it...and don't get too hooked up on one approach...

So it's not that bad. However, some of the puzzles in my question remain unknown, for example, how to get the ISystemLandscapeObject.

Cheers.

Message was edited by: Yujian Yan