Documentation

GetUserAccountInfo

Retrieves the relevant details for a specified user

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.

GetUserAccountInfoRequest
Request Properties
PlayFabId (required) String

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

POST https://{{TitleID}}.playfabapi.com/Server/GetUserAccountInfo
    Content-Type: application/json
    X-SecretKey: <developer_secret_key>
{
  "PlayFabId": "10931252888739651331"
}
        

Response Details

GetUserAccountInfoResult
Result Properties
UserInfo UserAccountInfo

Account details for the user whose information was requested.

Sample Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
  "code": 200,
  "status": "OK",
  "data": {
    "UserInfo": {
      "PlayFabId": "621EF20237534A44",
      "Created": "0001-01-01T00:00:00Z",
      "Username": "accountname",
      "FacebookInfo": {
        "FacebookId": "1236849390256",
        "FullName": "Jane Doe"
      }
    }
  }
}

Authentication

SecretKey

Possible Error Codes

Name Code