Difference between revisions of "GetLoggedInUserInfo"

From AgileApps Support Wiki
imported>Aeric
m (Text replace - 'getLoggedInUserInfo(' to 'Functions.getLoggedInUserInfo(')
 
imported>Aeric
Line 16: Line 16:
:<syntaxhighlight lang="java" enclose="div">
:<syntaxhighlight lang="java" enclose="div">
Map user = Functions.getLoggedInUserInfo();
Map user = Functions.getLoggedInUserInfo();
Functions.debug(user);
Logger.info(user, "UserInfo");
Functions.debug(user.get("last_name"));
Logger.info(user.get("last_name", "UserInfo"));
</syntaxhighlight>
</syntaxhighlight>

Revision as of 01:15, 10 September 2013

Functions.getLoggedInUserInfo()
Description
Retrieves information about a Logged in User via the Java API
In addition to the fields are listed in REST API:user Resource, this API returns the following:
Name Type Attribute Description Additional Information
locale Object Read Only Identifies the user's language and country code java.util.Locale
Syntax
Map<String,Object> Functions.getLoggedInUserInfo()
Return
Map containing user information
Example
Map user = Functions.getLoggedInUserInfo();
Logger.info(user, "UserInfo");
Logger.info(user.get("last_name", "UserInfo"));