Skip to Content

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

User <Administrator> is not authenticated


I am getting an error "User <Administrator> is not authenticated" while trying to access the Favorites thru webdynpro java.

Please have a look at the following code and I am getting an error at " collection.getChildren();" sapUser = UMFactory.getAuthenticator().getLoggedInUser();

IUser ep5User =null;

ep5User = WPUMFactory.getUserFactory().getEP5User(sapUser);

String username = ep5User.getId();

IResourceContext resourceContext = new ResourceContext(ep5User);

IResourceFactory resourceFactory = ResourceFactory.getInstance();

RID pathRID = RID.getRID("/userhome/" + username + "/favorites");

IResource resource=resourceFactory.getResource(pathRID, resourceContext);

ICollection collection = (ICollection) resource;

IResourceList resourceList = collection.getChildren();

IResourceListIterator resourceListIterator=resourceList.listIterator();

Please help me out, if anybody has any idea.

Thanks & Regards,


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