cancel
Showing results for 
Search instead for 
Did you mean: 

User Mapping create - using UME API

Former Member
0 Kudos

Hello,

I try to create a user by using UME API. It is working.

Now i try to create user mapping to this user but it doesn't work when i try to check in user management. The code is :

try {

// get umapping service

IUserMappingService iums = (IUserMappingService)

PortalRuntime.getRuntimeResources().getService(IUserMappingService.KEY);

// IUserMappingService

IUserMappingData iumd = iums.getMappingData("WebEx",epUser);

Map map = new HashMap ();

iumd.enrich (map);

map.put("user",im_usermapping);

map.put("mappedpassword",im_passmapping);

iumd.storeLogonData(map);

//This saves the new user and //password to that system

}

catch (NoLogonDataAvailableException nldae)

{

// Error handling

}

Thanks a lot

best regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Aurelien,

Put the user mapping values in your hashmap this way:

m2.put(IUserMappingService.UMAP_KEY_USER,yourusernamevariable);
m2.put(IUserMappingService.UMAP_KEY_PASSWORD,yourpasswordvariable);

And use saveLogonData();

e.g

iumd.saveLogonData(m2);

I think <b>"store"</b> is deprecated.

Hope this helped!!

Former Member
0 Kudos

Hello,

Thanks for your answer but iumd.saveLogonData(m2) is unknow !

Former Member
0 Kudos

So I have this error now :

#1.5#00123F744AA900650000000600000C8000043DF2A71B8288#1194012301821#System.err#sap.com/irj#System.err#J2EE_GUEST#0####99eda380894c11dc8a6b00123f744aa9#Thread[ThreadPool.Worker3,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Error##Plain###com.sap.security.api.umap.NoLogonDataAvailableException: No logon data found in principal attributes.#

#1.5#00123F744AA900650000000B00000C8000043DF2A71F62D5#1194012302071#System.err#sap.com/irj#System.err#J2EE_GUEST#0####99eda380894c11dc8a6b00123f744aa9#Thread[ThreadPool.Worker3,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Error##Plain###com.sap.security.api.umap.NoLogonDataAvailableException: No logon data found in principal attributes.#

#1.5#00123F744AA9005B0000011D00000C8000043DF2AC294BA2#1194012386618#com.sapportals.portal.prt.service.usermapping.EPSystemLandscapeWrapper#sap.com/irj#com.sapportals.portal.prt.service.usermapping.EPSystemLandscapeWrapper#J2EE_GUEST#0##81.66.179.194_AZI_33895950#Guest#cd1382c0894c11dc9f3700123f744aa9#SAPEngine_Application_Thread[impl:3]_68##0#0#Error#1#/System/Security/Usermanagement#Plain###PCD lookup for system object 'pcd:portal_content/com.sap.gm.cnt/com.wnt7512en.SAp_R3' (system alias '') failed. User mapping data for the system can't be retrieved. User mapping iViews won't display the system.# #1.5#00123F744AA9005B0000011E00000C8000043DF2AC295E44#1194012386618#com.sapportals.portal.prt.service.usermapping.EPSystemLandscapeWrapper#sap.com/irj#com.sapportals.portal.prt.service.usermapping.EPSystemLandscapeWrapper.getSystemFromPcd(String)#J2EE_GUEST#0##81.66.179.194_AZI_33895950#Guest#cd1382c0894c11dc9f3700123f744aa9#SAPEngine_Application_Thread[impl:3]_68##0#0#Error##Java###PCD lookup for system object 'pcd:portal_content/com.sap.gm.cnt/com.wnt7512en.SAp_R3' (system alias '') failed. User mapping data for the system can't be retrieved. User mapping iViews won't display the system.

[EXCEPTION]

#1#javax.naming.NameNotFoundException: Child not found: com.wnt7512en.SAp_R3 at portal_content/com.sap.gm.cnt [Root exception is javax.naming.NameNotFoundException: Child not found: com.wnt7512en.SAp_R3 at portal_content/com.sap.gm.cnt]

Answers (1)

Answers (1)

Former Member
0 Kudos

So i found a solution, I create a group with an init mapping and now it's working !

Best regards