Hi Søren,
"Endpoint is already assigned to different user" message means that endpoint was previously attached to some user as a result of performing
attach procedure on endpoint SDK.
In order to unassign the endpoint from the user (owner) the detachEndpoint function on the endpoint side should be executed first.
The exact key hash of detaching endpoint should be passed to this function. This can be executed by any endpoint which is already attached to this user.
Finally, there are two options to attach endpoint to new user:
1) by any endpoint which is already attached to new user(owner) - execute attachEndpoint function with exact key hash of attaching endpoint;
2) on attaching endpoint side - execute attachUser function with correct external user credentials (user id and user access token).
Thanks,
Igor