getCurrentUserUniqueID

public static final java.lang.String getCurrentUserUniqueID()

Returns the unique username of the currently logged on user or the string '[null]' if not running in a security context. The username returned will be the user GUID if available or the standard user name if not. This API should be used in preference to ADFContext.getSecurityContext().getUserName() as it should provide a unique user in multi-domain environments whereas the ADFContext API doesn't necessarily do so.

Returns:

a unique identifier representing the current user or the string [null] if outside of a security context

If the user is anonymous, returns anonymous user as defined by JPS.

If no security context exists, return anonymous user as defined by JPS.