---
title: currentUserIdentifier
framework: tvservices
role: symbol
role_heading: Instance Property
path: tvservices/tvusermanager/currentuseridentifier
---

# currentUserIdentifier

A unique identifier representing the currently active Apple TV user.

## Declaration

```swift
var currentUserIdentifier: TVUserIdentifier? { get }
```

## Discussion

Discussion Use this property to identify which Apple TV user is currently active. On Apple TV, users may provide credentials for multiple Apple accounts and switch quickly between them. This property uniquely identifies the user for the active account. You might use this information to select an appropriate user profile for your app. The string in this property is randomly generated, and isn’t the same as the user’s Apple ID. Don’t display the string to your users. All Apple TVs on the user’s HomeKit network return the same string for the same account. You can track changes to this property using key-value observing. You may access this property from an app extension.

## See Also

### Deprecated symbols

- [currentUserIdentifierDidChangeNotification](tvservices/tvusermanager/currentuseridentifierdidchangenotification.md)
- [presentProfilePreferencePanel(currentSettings:availableProfiles:completion:)](tvservices/tvusermanager/presentprofilepreferencepanel(currentsettings:availableprofiles:completion:).md)
- [shouldStorePreferenceForCurrentUser(to:completion:)](tvservices/tvusermanager/shouldstorepreferenceforcurrentuser(to:completion:).md)
- [TVAppProfileDescriptor](tvservices/tvappprofiledescriptor.md)
- [TVUserIdentifier](tvservices/tvuseridentifier.md)
- [userIdentifiersForCurrentProfile](tvservices/tvusermanager/useridentifiersforcurrentprofile.md)
