Documentation

GetUserAccountInfo

Retrieves the relevant details for a specified user, based upon a match against a supplied unique identifier

Request Details

This API allows for access to details regarding a user in the PlayFab service, usually for purposes of customer support. Note that data returned may be Personally Identifying Information (PII), such as email address, and so care should be taken in how this data is stored and managed. Since this call will always return the relevant information for users who have accessed the title, the recommendation is to not store this data locally.

LookupUserAccountInfoRequest
Request Properties
Email String

User email address attached to their account

PlayFabId String

Unique PlayFab assigned ID of the user on whom the operation will be performed.

TitleDisplayName String

Title specific username to match against existing user accounts

Username String

PlayFab username for the account (3-20 characters)

POST https://{{TitleID}}.playfabapi.com/Admin/GetUserAccountInfo
    Content-Type: application/json
    X-SecretKey: <developer_secret_key>
{
  "PlayFabId": "293753934",
  "IgnoreMissingTitleActivation": false
}
        

Response Details

LookupUserAccountInfoResult
Result Properties
UserInfo UserAccountInfo

User info for the user matching the request

Sample Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
  "code": 200,
  "status": "OK",
  "data": {
    "UserInfo": {
      "PlayFabId": "10931252888739651331",
      "Created": "2013-04-07T09:04:28Z",
      "Username": "accountname",
      "TitleInfo": {
        "DisplayName": "User title-specific name",
        "Origination": "IOS",
        "Created": "2014-01-08T11:03:18Z",
        "LastLogin": "2014-04-07T09:04:28Z",
        "FirstLogin": "2014-01-08T11:03:18Z",
        "TitlePlayerAccount": {
          "Id": "174812abf712",
          "Type": "title_player_account",
          "TypeString": "title_player_account"
        }
      },
      "FacebookInfo": {
        "FacebookId": "23525445454"
      },
      "SteamInfo": {
        "SteamCountry": "US",
        "SteamCurrency": "USD"
      },
      "GameCenterInfo": {
        "GameCenterId": "someone"
      }
    }
  }
}

Authentication

SecretKey

Possible Error Codes

Name Code
TitleNotActivated 1042