Getting the currently logged in user in a Composite Application
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 ?
Here the [screenshot|http://img218.imageshack.us/my.php?image=userdataay6.jpg] 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.