files/en-us/web/api/authenticatorassertionresponse/userhandle/index.md
{{APIRef("Web Authentication API")}}{{securecontext_header}}
The userHandle read-only property of the {{domxref("AuthenticatorAssertionResponse")}} interface is an {{jsxref("ArrayBuffer")}} object providing an opaque identifier for the given user. Such an identifier can be used by the relying party's server to link the user account with its corresponding credentials and other data.
This value is specified as user.id in the options passed to the originating {{domxref("CredentialsContainer.create()","navigator.credentials.create()")}} call.
An {{jsxref("ArrayBuffer")}} object representing an identifier for the current user. This is not intended to be human-readable. The relying party should make sure that the user.id passed into the originating create() call does not contain any personally identifying information (for example user name, email, or phone number).
For {{domxref("CredentialsContainer.create()","navigator.credentials.create()")}} calls made with a non-empty allowCredentials properties, the returned userHandle may be null.
See Retrieving a public key credential for a detailed example.
{{Specifications}}
{{Compat}}