title: Is there a way to programmatically share current plan with a defined user?
body: <p>So far, I experimented with:</p>
  
  <pre><code>new DroneDeploy({version: 1}).then(function(dronedeploy){
      dronedeploy.Plans.getCurrentlyViewed().then(function(plan){
             plan.shared_users.push({username: "my.username@mail.kom"});
             return plan;
      ).then(function(plan){
          dronedeploy.Plans.update( plan.id,{shared_users: plan.shared_users});
      });
  );
  </code></pre>
  
  <p>It gives error:</p>
  
  <pre><code>shared_users is not a whitelisted field to update on the plan.
  </code></pre>
  
  <p>But still makes the sharing. I guess it is not the best and reliable way, what what be the proper one?</p>