   shareWith: (client, options, callback) ->
 
     { delegate } = client.connection
-    { target, user, owner, role, mode } = options
+    { target, user, owner, accessLevel } = options
     user ?= yes
 
     # Owners cannot unassign them from a credential


      if user
        options = { as: if owner then 'owner' else 'user' }

        if role or mode
          options.data = {}
          options.data.role = role  if role
          options.data.mode = mode  if mode

        target.addCredential this, options, (err) -> callback err
      else
        callback err


            callback null, []


  setPermissionFor: (target, { user, owner, accessLevel }, callback) ->

    Relationship.remove
      targetId : @getId()
