<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "macCatalyst: 17.4.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Assignables",
  "identifier" : "/documentation/Assignables/UserIdentityTypeRegistry",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Assignables"
    ],
    "preciseIdentifier" : "s:11Assignables24UserIdentityTypeRegistryC"
  },
  "title" : "UserIdentityTypeRegistry"
}
-->

# UserIdentityTypeRegistry

A registry for user identity types.
Assignable documents and document elements store user
identity data as `Data` objects. In order for that data to
be deserialized, the type to deserialize it as needs to be
known to [`UserIdentityTypeRegistry`](/documentation/Assignables/UserIdentityTypeRegistry).
Without registration of the user identity, custom types
won’t be deserializable.

```
class UserIdentityTypeRegistry
```

## Topics

### Registering an identity

[`static func registerUserIdentityType<UI>(typeID: String, type: UI.Type)`](/documentation/Assignables/UserIdentityTypeRegistry/registerUserIdentityType(typeID:type:))

Registers a user identity type for use when deserializing
the user identity from `Data`.



---

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)