Link asset automatically to serviceuser

Is it somehow possible to link a new created asset automatically to a specific serviceuser or only by changing the code?

I am trying same thing with java selenium , but there is a some problem in inspect element .
I think it is possible through automation .


The auto provisioning mechanism does this for devices and uses MQTT.

How are you planning on creating these assets?

I just got this mostly working, can confirm new user and asset created via auto provisioning with x509 by following this guide.

But in my case the user page shows “Linked assets: 0 assets” it doesn’t appear to be linking the newly created asset to the service user.

What else can I check?

(Sorry for barging in on OPs thread but it seemed very closely related)