cancel
Showing results for 
Search instead for 
Did you mean: 

EP7 User Mapping

Former Member
0 Kudos

how do i get the EP 7 user mapping???

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Found it

import java.util.HashMap;

import java.util.Map;

import com.sap.security.api.IUser;

import com.sapportals.portal.prt.component.AbstractPortalComponent;

import com.sapportals.portal.prt.component.IPortalComponentRequest;

import com.sapportals.portal.prt.component.IPortalComponentResponse;

import com.sap.security.api.UMFactory;

import java.util.ArrayList;

import com.sap.security.api.umap.system.ISystemLandscapeWrapper;

import com.sap.security.api.umap.system.ISystemLandscapeObject;

public class test01 extends AbstractPortalComponent

{

public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)

{

ISystemLandscapeObject system;

try {

IUser user = request.getUser();

ArrayList systemLandscapes = UMFactory.getSystemLandscapeWrappers();

// Until now, there's only one system landscape implementation available:

// The system landscape which is part of SAP Enterprise Portal.

ISystemLandscapeWrapper systemLandscape =

(ISystemLandscapeWrapper) systemLandscapes.get(0);

ISystemLandscapeObject sys;

sys = systemLandscape.getSystemByAlias("Outlook");

com.sap.security.api.umap.IUserMapping umapping

= com.sap.security.api.UMFactory.getUserMapping();

com.sap.security.api.umap.IUserMappingData mappingData

= umapping.getUserMappingData(sys,request.getUser());

Map map = new HashMap();

mappingData.enrich(map);

response.write("<br>" + map.get ("user"));

response.write("<br>" + map.get ("mappedpassword"));

}

catch( Exception e )

{

response.write (e.toString());

}

}

}

Former Member
0 Kudos

Hello,

Do you have an idea ? I want to create the user mapping by the UME API. Is it possible to do it ? I didn't find any method ?

Thanks for your helps

Best regards

former_member188632
Active Contributor
0 Kudos

Hi,

Go to user Aadmin --> Identity management --> search your user --> there will be a detailed screen appear below --> click on modify --> select User mapping for system access -->select the system & Put UID & PWD, and your user mapping is set.

Regards,

Ameya

Former Member
0 Kudos

i need a java code example on how to get the mapped user/pwd on a particular system on EP 7(NW04s)