This allows an external service (e.g. the matrix-authentication-service) to create devices for users.
HomeServer.get_datastore()
/capabilities
synapse.rest.client.account