Skip to content

Add new primary identifier; resolve works

given: "Alice" created an actor on "abel" called "Alice" with username "Alice"

send.Alice.request.create_actor
{
  "base_url": "http://abel",
  "preferred_username": "Alice",
  "profile": {},
  "automatically_accept_followers": null,
  "name": null
}
receive.Alice.response.create_actor
{
  "attachment": null,
  "published": "2026-03-20T15:18:31.243924",
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    "https://w3id.org/security/v1",
    {
      "manuallyApprovesFollowers": "as:manuallyApprovesFollowers"
    }
  ],
  "publicKey": {
    "id": "http://abel/actor/fVZy0ALGzlwCl8cgrhKPsg#legacy-key-1",
    "owner": "http://abel/actor/fVZy0ALGzlwCl8cgrhKPsg",
    "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvlYhBZfth/erSuFLdGyV\nM8/Fm+toUP9tktg5VH3KMHGqzeiAZ9fTkcNZqo6RgpQRDVbJ0K5rzjh/dB+fS697\nLOA2F2MW8GoJP7TzCBoclzFAWKw28I7fng97XmdpLHOXeliw8KlVpWUA2+znhZog\nZs9FEmo3jFPFpavbl9ZryLj0pP/tOqGyQVgf3pIDgUji68MuPT/7N3fv936BmQtb\nDcSyGoUtIZ0UwhvimHLB3y59vQs8wMlUkqcPS0S69Vkjh0h+ToGbn3mOyHQfGgNP\nuZ3gFieAwCsKvAe1WaEav7gIeepjQe+5ebZOl9bWFJ25671YKQn7YKU5FukxIkYe\nZQIDAQAB\n-----END PUBLIC KEY-----\n"
  },
  "id": "http://abel/actor/fVZy0ALGzlwCl8cgrhKPsg",
  "type": "Person",
  "inbox": "http://abel/inbox/figd_scPkDX4VBblfSz7Ow",
  "outbox": "http://abel/actor/fVZy0ALGzlwCl8cgrhKPsg/outbox",
  "followers": "http://abel/actor/fVZy0ALGzlwCl8cgrhKPsg/followers",
  "following": "http://abel/actor/fVZy0ALGzlwCl8cgrhKPsg/following",
  "preferredUsername": "Alice",
  "name": "Alice",
  "identifiers": [
    "acct:Alice@abel",
    "http://abel/actor/fVZy0ALGzlwCl8cgrhKPsg"
  ],
  "endpoints": {
    "sharedInbox": "http://abel/shared_inbox"
  },
  "manuallyApprovesFollowers": true
}

given: "Alice" adds "acct:alex@abel" as a primary identifier

send.Alice.trigger.update_actor
{
  "actor": "http://abel/actor/fVZy0ALGzlwCl8cgrhKPsg",
  "profile": null,
  "autoFollow": null,
  "actions": [
    {
      "action": "create_identifier",
      "identifier": "acct:alex@abel",
      "primary": true
    }
  ]
}
receive.Alice.outgoing.Update
{
  "data": {
    "raw": {
      "@context": "https://www.w3.org/ns/activitystreams",
      "type": "Update",
      "actor": "http://abel/actor/fVZy0ALGzlwCl8cgrhKPsg",
      "to": [
        "https://www.w3.org/ns/activitystreams#Public"
      ],
      "cc": [
        "http://abel/actor/fVZy0ALGzlwCl8cgrhKPsg/followers"
      ],
      "published": "2026-03-20T15:18:31Z",
      "object": {
        "attachment": null,
        "published": "2026-03-20T15:18:31.243924",
        "@context": [
          "https://www.w3.org/ns/activitystreams",
          "https://w3id.org/security/v1",
          {
            "manuallyApprovesFollowers": "as:manuallyApprovesFollowers"
          }
        ],
        "publicKey": {
          "id": "http://abel/actor/fVZy0ALGzlwCl8cgrhKPsg#legacy-key-1",
          "owner": "http://abel/actor/fVZy0ALGzlwCl8cgrhKPsg",
          "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvlYhBZfth/erSuFLdGyV\nM8/Fm+toUP9tktg5VH3KMHGqzeiAZ9fTkcNZqo6RgpQRDVbJ0K5rzjh/dB+fS697\nLOA2F2MW8GoJP7TzCBoclzFAWKw28I7fng97XmdpLHOXeliw8KlVpWUA2+znhZog\nZs9FEmo3jFPFpavbl9ZryLj0pP/tOqGyQVgf3pIDgUji68MuPT/7N3fv936BmQtb\nDcSyGoUtIZ0UwhvimHLB3y59vQs8wMlUkqcPS0S69Vkjh0h+ToGbn3mOyHQfGgNP\nuZ3gFieAwCsKvAe1WaEav7gIeepjQe+5ebZOl9bWFJ25671YKQn7YKU5FukxIkYe\nZQIDAQAB\n-----END PUBLIC KEY-----\n"
        },
        "id": "http://abel/actor/fVZy0ALGzlwCl8cgrhKPsg",
        "type": "Person",
        "inbox": "http://abel/inbox/figd_scPkDX4VBblfSz7Ow",
        "outbox": "http://abel/actor/fVZy0ALGzlwCl8cgrhKPsg/outbox",
        "followers": "http://abel/actor/fVZy0ALGzlwCl8cgrhKPsg/followers",
        "following": "http://abel/actor/fVZy0ALGzlwCl8cgrhKPsg/following",
        "preferredUsername": "alex",
        "name": "alex",
        "identifiers": [
          "acct:alex@abel",
          "acct:Alice@abel",
          "http://abel/actor/fVZy0ALGzlwCl8cgrhKPsg"
        ],
        "endpoints": {
          "sharedInbox": "http://abel/shared_inbox"
        },
        "manuallyApprovesFollowers": true
      },
      "id": "http://abel/object/019d0bd3-9efc-7727-884c-a6a73287f5d6"
    }
  },
  "actor": "http://abel/actor/fVZy0ALGzlwCl8cgrhKPsg",
  "event_type": "outgoing",
  "history_id": null
}

when: One queries webfinger for "acct:alex@abel"

then: The actor URI of "Alice" is returned