As stated here:


OwnerSharingRules have been removed from the API. For example, the folder customObjectSharingRules in eclipse now just shows empty files after doing a refresh from the Org.

This makes it imposible to deploy sharing rules using eclipse or the ant migration tool. Is there a new way to deploy this metadata?


It looks like it's been replaced by a very similar object called SharingOwnerRule.

Docs here

SharingOwnerRule Defines a ownership-based sharing rule. It extends SharingBaseRule and inherits all its fields. Available in API version 33.0 and later.

EDIT Here is what the package.xml data looks like (you can't use a wildcard, according to salesforce)

  • You are right, however, this doesn't seem to be supported by neither eclipse or mavensmate. – Marc M. May 19 '15 at 13:10
  • You mean you can't download this metadata? If so, just the developer console to develop this feature. Also, if this answer is correct, you can accept it and or upvote. – Caspar Harmer May 19 '15 at 19:11
  • I'd upvote but don't have enough rep yet :-), still, I consider the question not answered as there seems to be no way to retrieve this metadata in order to track changes in git and deploy to other orgs using Ant Migration Tool or Eclipse. – Marc M. May 20 '15 at 8:03
  • Hmm, good point. I wonder if we have a bug on our hands? I specified the correct xml as added above, but it failed to pull anything. – Caspar Harmer May 20 '15 at 8:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.