Represents a sharing entry on an Account.
create(), update(), delete(), query(), retrieve(), describeSObjects()
| Field | Field Type | Field Properties | Description |
|---|---|---|---|
| AccountAccessLevel | picklist | Create | Level of access that the User or Group has to the Account. The possible values are:This field must be set to an access level that is at least equal to the organization’s default Account access level. In addition, either this field, the OpportunityAccessLevel field, or the CaseAccessLevel field must be set higher than the organization’s default access level. |
| AccountId | reference | Create | ID of the Account associated with this sharing entry. This field cannot be updated. For information on IDs, see ID Field Type. |
| CaseAccessLevel | picklist | Create | Level of access that the User or Group has to cases associated with the account. The possible values are:This field must be set to an access level that is at least equal to the organization’s default CaseAccessLevel. This field cannot be updated via the API if the AccountAccessLevel field is set to “All.” You cannot update this field for the associated account owner via the API. You must update the account owner’s CaseAccessLevel via the Salesforce.com user interface. |
| ContactAccessLevel | picklist | Create | Level of access that the User or Group has to contacts associated with the account. The possible values are:This field must be set to an access level that is at least equal to the organization’s default ContactAccessLevel. This field cannot be updated via the API if the ContactAccessLevel field is set to “Controlled by Parent,” you cannot update this field for the associated account owner using the API. You must update the account owner’s ContactAccessLevel via the Salesforce.com user interface. |
| IsDeleted | boolean | Defaulted on create | Indicates whether the object has been moved to the Recycle Bin (true) or not (false). Label is Deleted. |
| OpportunityAccessLevel | picklist | Create | Level of access that the User or Group has to opportunities associated with the Account. The possible values are: This field must be set to an access level that is at least equal to the organization’s default opportunityAccessLevel. This field cannot be updated via the API if the AccountAccessLevel field is set to “All.” You cannot use the API to update this field for the associated Account owner. You must update the Account owner’s opportunityAccessLevel via the Salesforce.com user interface. |
| RowCause | picklist | Filter | Reason that this sharing entry exists. Read-only. There are
many possible values, including:
|
| UserOrGroupId | reference | Create | ID of the User or Group that has been given access to the Account. This field cannot be updated. |
This object allows you to determine which users and groups can view and/or edit Account records owned by other users. For more information, see Sharing.
If you attempt to create an AccountShare record that matches an existing record, the create() call updates any modified fields and returns the existing record.