--- title: AccountMigration --- This entity is sent when a person changes their diaspora* ID (e.g. when a user migration from one to another pod happens). ## Properties | Property | Type | Description | | ----------- | ---------------------------- | ------------------------------------------------------------------------------------ | | `author` | [diaspora\* ID][diaspora-id] | The diaspora\* ID of the sender of the entity. The entity may be sent by either old user identity or new user identity. | | `person` | [Profile][profile] | New profile of a person. | | `signature` | [Signature][signature] | Signature that validates original and target diaspora* IDs with the private key of the second identity, other than the entity author. So if the author is the old identity then this signature is made with the new identity key, and vice versa. | ## Optional Properties | Property | Type | Description | | ----------- | ---------------------------- | ------------------------------------------------------------------------------------ | | `old_identity` | [diaspora\* ID][diaspora-id] | The diaspora\* ID of the closed account. This field is mandatory if the author of the entity is the new identity. | ### Signature The signature base string is produced by concatenating the following substrings together, separated by semicolon (`:`): 1) The entity name specifier: `AccountMigration`. 2) diaspora\* ID of the closed account (old diaspora\* ID). 3) diaspora\* ID of the replacement account (new diaspora\* ID). Example of a string: ~~~ AccountMigration:old-diaspora-id@example.org:new-diaspora-id@example.com ~~~ ## Example ~~~xml alice@example.org alice@newpod.example.net my name /assets/user/default.png /assets/user/default.png /assets/user/default.png 1988-07-15 Female some text about me github true false #i #love #tags 07b1OIY6sTUQwV5pbpgFK0uz6W4cu+oQnlg410Q4uISUOdNOlBdYqhZJm62VFhgvzt4TZXfiJgoupFkRjP0BsaVaZuP2zKMNvO3ngWOeJRf2oRK4Ub5cEA/g7yijkRc+7y8r1iLJ31MFb1czyeCsLxw9Ol8SvAJddogGiLHDhjE= alice@example.org ~~~ [diaspora-id]: {{ site.baseurl }}/federation/types.html#diaspora-id [profile]: {{ site.baseurl }}/entities/profile.html [signature]: {{ site.baseurl }}/federation/types.html#signature