Show TOC

Procedure documentationGetting the Current User Locate this document in the navigation structure

 

Before you check for authorizations, you must ensure that you have the current user. Getting the current user is also useful for personalizing an application.

Prerequisites

You have protected your application by requiring authentication.

Procedure

Use the method appropriate to your application.

  • The IAuthentication interface of the user management engine (UME) API provides the getLoggedInUser() method.

  • The WDClientUser interface of the Web Dynpro API provides the getClientUser() method.

Example

Syntax Syntax

  1. IUser user = UMFactory.getAuthenticator().getLoggedInUser(request, response);
    
End of the code.

More Information

SAP Help Portal: http://help.sap.com/javadocs