User object
The feature described in this topic is available only in preview. To use this feature and other new Windows Azure capabilities, sign up for the free preview.
Represents the current requesting user.
This object contains the following members:
Methods
| Method name | Return Type | Description |
|---|---|---|
|
getIdentities |
object |
Returns a JavaScript Object Notation (JSON) object that contains identity information, in the following format:
{ "providerName": {
"userId": "user_id_value",
"accessToken": "access_token_value",
"accessTokenSecret": "access_token_secret_value"
}
}
The access_token_secret_value may not be available for all identity providers. |
Properties
| Property name | Type | Description |
|---|---|---|
|
accessTokens |
object |
A JavaScript Object Notation (JSON) object that contains the access token, in the following format:
{ providerName: "access_token_value" }
|
|
level |
string |
The level of authentication, which can be one of the following:
|
|
userId |
string |
The user ID of an authenticated user. When a user is not authenticated, this property returns undefined. |
Scripts are always passed an instance of the user object, regardless of whether the operation is authenticated.