cancel
Showing results for 
Search instead for 
Did you mean: 

IUserManagementService in NWDI

Former Member
0 Kudos

Hi

I want to use the SAPPortal User Management service in a PAR DC (using NWDI SP 9)

I need to know which PP do i need to add in order for the following code to compile


IUserManagementService umService = (IUserManagementService) PortalRuntime.getRuntimeResources().getService(IUserManagementService.KEY);
IUserFactory userFactory = umService.getDefaultFactory();
IModifyUser modUser = userFactory.getModifyUser(loggedInUser,loggedInUser);

(For example, in order for htmlb code to compile, I needed to add the com.sapportals.htmlb (default) PP from SAP_JTECHS SC)

As a workaround i can build an external library DC wrapping the

com.sap.portal.usermanagementapi.jar

(located in <SAP J2EE 6.40 insatll dir>\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\com.sap.portal.usermanagement\lib\,

but i am sure there is a more elegant way to achieve the same)

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

There is no standard DC that contains the Portal Usermanagement API. There is however the com.sap.security.api.sda DC (in SAP-JEE) that provides the J2EE Engine Usermanagement API. The Portal Usermanagement API is in fact a wrapper around the Engine API.

If you really insist on using the Portal API, you indeed need to create an External Library DC for that.

Answers (0)