Hmm, I was under impression that a userevent script is invoked when the record its deployed against is changed, regardless of whether the change was made programmatically or from the UI. 
But when I update my customer record from a restlet the userevent I have deployed against the customer isn’t triggered. 
Is my understanding of userevents way off?