Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Reg: IUser methods for accessing KM Folder

Hi Guys,

In our application, we read one property file from KM folder using this code.

com.sapportals.portal.security.usermanagement.IUser user = WPUMFactory.getServiceUserFactory().getServiceUser("cmadmin_service");

myLinkRid = RID.getRID(propertyFile);

resourceContext = new ResourceContext(user);

IResource resource = ResourceFactory.getInstance().getResource(myLinkRid,resourceContext);

The functionality is working fine. But IUser and getServiceUserFactory() methods are showing depreciated. So, please let me know the correct method(without depriciate) of these two.

And one more function is getting the user's last successfull logon date using IUserAccount getLastSuccessfullLogonDate() method and setLastSuccessfulLogonDate(date) method. In those methods also showing depreciated. But functionality is working fine.

So, please let me know, if any correct methods is in this process.

Thanks & Regards

Vijaykumar.S

Former Member
Not what you were looking for? View more on this topic or Ask a question