<!--
{
  "availability" : [
    "tvOS: 13.0.0 - 16.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "TVServices",
  "identifier" : "/documentation/TVServices/TVUserIdentifier",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "TV Services"
    ],
    "preciseIdentifier" : "c:@T@TVUserIdentifier"
  },
  "title" : "TVUserIdentifier"
}
-->

# TVUserIdentifier

A unique string for differentiating between accounts on Apple TV.

```
typealias TVUserIdentifier = String
```

## Discussion

This type stores an ASCII string containing no more than 64 characters. The string isn’t the same as the user’s Apple ID, and you should never display it in your app’s interface. It’s a random string generated by the [`TVUserManager`](/documentation/TVServices/TVUserManager) object and shared among the Apple TV devices on the user’s HomeKit network. You use it to differentiate between different accounts on the same Apple TV.

---

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)