```coffeescript
bongo = require 'bongo'


module.exports = class SharedMachine extends bongo.Base

  @share()
```

Define shared machine user setter function
user
```coffeescript
bongo = require 'bongo'

JMachine = require './computeproviders/machine'


module.exports = class SharedMachine extends bongo.Base

  @share()

  setUsers = (client, uid, options, callback) ->

    options.permanent = yes
    JMachine.shareByUId client, uid, options, callback
```
assistant