# id

> This user's global unique identifier.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.SocialPlatforms](/engine/6000.5/script-reference/unityengine/socialplatforms.md)
* **Assembly:** UnityEngine.GameCenterModule

> **Warning:**
>
> **Deprecated.** IUserProfile is deprecated and will be removed in a future release.

```csharp
string id { get; }
```

### Remarks

For devices running iOS version 12.4 and later, [IUserProfile.id](/engine/6000.5/script-reference/unityengine/socialplatforms/iuserprofile/id.md) returns [GKPlayer.teamPlayerID](https://developer.apple.com/documentation/gamekit/gkplayer/3174857-teamplayerid?language=objc).

For devices running iOS version 12.3 and earlier, [IUserProfile.id](/engine/6000.5/script-reference/unityengine/socialplatforms/iuserprofile/id.md) returns [GKPlayer.playerID](https://developer.apple.com/documentation/gamekit/gkplayer/1521127-playerid?language=objc).

Use [IUserProfile.id](/engine/6000.5/script-reference/unityengine/socialplatforms/iuserprofile/id.md) instead of UserProfile.legacyId. Only use UserProfile.legacyId if you need to access [GKPlayer.playerID](https://developer.apple.com/documentation/gamekit/gkplayer/1521127-playerid?language=objc) to migrate player data in your existing project.
