Click or drag to resize
RallyRestApiGetCurrentUser Method
Get the current user

Namespace: Rally.RestApi
Assembly: Rally.RestApi (in Rally.RestApi.dll) Version: 3.1.1.0 (3.1.1.0)
Syntax
public Object GetCurrentUser(
	params string[] fetchedFields
)

Parameters

fetchedFields
Type: SystemString
The fields that should be retrieved for the user. If no fields are specified, a * wild card will be used.

Return Value

Type: Object
A DynamicJsonObject that contains the currently logged in user.
Exceptions
ExceptionCondition
RallyUnavailableExceptionRally returned an HTML page. This usually occurs when Rally is off-line. Please check the ErrorMessage property for more information.
RallyFailedToDeserializeJsonThe JSON returned by Rally was not able to be deserialized. Please check the JsonData property for what was returned by Rally.
Examples
C#
DynamicJsonObject user = restApi.GetCurrentUser("Name", "FormattedID");
string user = user["Name"];
string userID = user["FormattedID"];
See Also