Skip to Content

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

Getting the currently logged in user in a Composite Application

Hi Experts,

I have created a Composite Application, the UI layer includes VC and the I have created a Process in GP.

I need to get the currently logged on user.

I have used the following API

IUser user= UMFactory.getLogonAuthenticator().getLoggedInUser();
String ret = user.getName();

But it gives me the user name : Guest (we usually get this when there is no user assigned or the user is not found)

So, is there a problem with the way I am trying to obtain the username or something with the way the user description is stored in the system ?

--- Brian

Former Member
Former Member replied

Hi Brian,

Here the [screenshot|] of userdata runtime and designtime.

When the VC application is started, one always has to authenticate. If the authentication is correct then you would see the application with the welcome message. The guest user would only be able to see this application if you have assigned him the application role.

Best regards,


0 View this answer in context

Helpful Answer

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