<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/ASAuthorizationAppleIDRequest/user",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "c:objc(cs)ASAuthorizationAppleIDRequest(py)user"
  },
  "title" : "user"
}
-->

# user

An identifier associated with the user’s Apple ID.

```
var user: String? { get set }
```

## Discussion

Typically you leave this property set to `nil` the first time you authenticate a user. Otherwise, if you previously received an authorization containing an [`ASAuthorizationAppleIDCredential`](/documentation/AuthenticationServices/ASAuthorizationAppleIDCredential) instance, set this property to the value from the credential’s [`user`](/documentation/AuthenticationServices/ASAuthorizationAppleIDCredential/user) property.

The value is an arbitrary string that’s portable among apps from a single developer, but not between apps from different developers.

---

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)