<!--
{
  "availability" : [
    "iOS: 12.4.0 -",
    "iPadOS: 12.4.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.14.6 -",
    "tvOS: 12.4.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKPlayer/teamPlayerID",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKPlayer(py)teamPlayerID"
  },
  "title" : "teamPlayerID"
}
-->

# teamPlayerID

A unique identifier for a player of all the games that you distribute using your developer account.

```
var teamPlayerID: String { get }
```

## Discussion

This identifier is unique to this game instance if the [`scopedIDsArePersistent()`](/documentation/GameKit/GKPlayer/scopedIDsArePersistent()) method returns <doc://com.apple.documentation/documentation/Swift/false>. Otherwise, this identifier is the same across all game instances of your games that use the same developer Team ID. An instance is the time between when the game launches and when the game terminates. For more information about the Team ID, see [Locate your Team ID](https://developer.apple.com/help/account/manage-your-team/locate-your-team-id).

For the local player (a [`GKLocalPlayer`](/documentation/GameKit/GKLocalPlayer) object), this identifier is the same across all local player instances of your games. If the player is friends with the local player, this identifier is the same across all local player and friend game instances. To determine whether the player is a friend, use the [`loadFriends(_:)`](/documentation/GameKit/GKLocalPlayer/loadFriends(_:)) method.

To protect the player’s privacy, use the [`gamePlayerID`](/documentation/GameKit/GKPlayer/gamePlayerID) property instead of the [`teamPlayerID`](/documentation/GameKit/GKPlayer/teamPlayerID) property. If you need to use the [`teamPlayerID`](/documentation/GameKit/GKPlayer/teamPlayerID) for tracking players across multiple games, also store the [`gamePlayerID`](/documentation/GameKit/GKPlayer/gamePlayerID) property. For more information, see [Protecting the player’s privacy using scoped identifiers](/documentation/GameKit/protecting-the-player-s-privacy-using-scoped-identifiers).

If you transfer your game to another developer, the [`teamPlayerID`](/documentation/GameKit/GKPlayer/teamPlayerID) property isn’t the same for the new developer. For more information, see [Overview of app transfer](https://developer.apple.com/help/app-store-connect/transfer-an-app/overview-of-app-transfer).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)