Skip to Content
0
Former Member
Dec 19, 2006 at 09:40 AM

How to make an user into Service authenticated user like cmadmin_service

25 Views

Hi All,

I am trying to fetch the list of documents, properties, log on/logoff functionality with an iUser ex: epuser, through java code.

The list of docs are presented in the Documents Folder with teh following sample code

|

RID rid = RID.getRID("/documents");

String userName = "epuser";

IUserFactory userFactory = UMFactory.getUserFactory();

com.sap.security.api.IUser userNew;

userNew = userFactory.getUser(userName);

com.sapportals.portal.security.usermanagement.IUser user = WPUMFactory.getUserFactory().getEP5User(userNew);

ctx.setUser(user);

IResource res = null;

res = ResourceFactory.getInstance().getResource(rid, ctx);

wnen i am trying to fetch all the docs and the corresponding properties by passing " cmadmin_service " as an user name. i am getting the right results. But when i tried with "epuser " i am getting the output as Service Authentication value false.

Then i added epuser in the System Principal--->System User. still i am not getting the right results.

plz help me how to make this epuser as service authenticated user like cmadmin_service user