SharingBaseRule

Represents sharing rule settings such as access level and to whom access is granted.

You can’t create a SharingBaseRule component directly. Use the components under SharingRules instead.

This type extends Metadata and inherits its fields.

SharingBaseRule replaces BaseSharingRule and is available in API version 33.0 and later.

  • Type: string
  • Required: Yes
  • Description: Required. The access level that the sharing rule grants.
  • Type: AccountSharingRuleSettings
  • Required: No
  • Description: The access level for the account’s children (case, contact, and opportunity).
  • Type: string
  • Required: No
  • Description: Describes the sharing rule. Maximum of 1000 characters.
  • Type: string
  • Required: Yes
  • Description: Required. Label for the sharing rule.
  • Type: SharedTo
  • Required: Yes
  • Description: Required. Specifies who the record is shared with.

Defines the access level for the case, contact, and opportunity associated with the account.

  • Type: string

  • Required: Yes

  • Description: Required. The access level that the user or group has to cases associated with the account. Possible values are:

    • None
    • Read
    • Edit
  • Type: string

  • Required: Yes

  • Description: Required. The access level that the user or group has to contacts associated with the account. Possible values are:

    • None
    • Read
    • Edit
  • Type: string

  • Required: Yes

  • Description: Required. The access level that the user or group has to opportunities associated with the account. Possible values are:

    • None
    • Read
    • Edit

This metadata type doesn’t support the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.