How to link devices with different identities