{
"sections": [
"title",
"description",
"file_information",
"directory_location",
"fields",
"sub_types",
"wsdl_segment",
"declarative_metadata_sample_definition"
],
"title": "SharingSet - Metadata API",
"description": "Represents a sharing set. A sharing set defines an access mapping that grants portal or community users access to objects that are associated with their accounts or contacts.",
"file_information": ".sharingSet",
"directory_location": "sharingSets",
"fields_columns": [
"type",
"description"
],
"fields": {
"accessMappings": {
"type": "AccessMapping[]",
"description": "A list of access mappings on a sharing set."
},
"description": {
"type": "string",
"description": "The sharing set description. Limit: 255 characters."
},
"name": {
"type": "string",
"description": "The unique identifier for API access. Corresponds to Sharing Set Name on the user interface.",
"required": true
},
"profiles": {
"type": "string[]",
"description": "The profiles of users that are granted access to the target objects. Profiles must be associated with a license that can use sharing sets. See Special Access Rules for more information."
}
},
"sub_types": {
"AccessMapping": {
"accessLevel": {
"type": "string",
"description": "The target object access level granted to the portal user. Valid values are: Read Edit",
"required": true
},
"objectField": {
"type": "string",
"description": "A lookup to the target object, which supports standard or custom fields, or an ID. For accounts or cases associated with entitlements, use Entitlement.Account or Entitlement.Case.",
"required": true
},
"object": {
"type": "string",
"description": "The target object to which the portal user is gaining access, and refers to one of the following: Account Campaign Contact Case Custom Objects (for example, ObjA__c) Opportunity Order ServiceContract User WorkOrder Portal users gain access to all order entitlements and order items under an account to which they have access.",
"required": true
},
"userField": {
"type": "string",
"description": "The user’s lookup to an account, contact, or a standard or custom field derived from an account or contact. Either the user or the user’s manager can be used in the lookup. Valid values are: Account Account.Field Contact Contact.Field Contact.RelatedAccount Manager.Account Manager.Contact Field refers to a standard or custom field based on an account or contact.",
"required": true
}
}
},
"wsdl_segment": "```xml\n\n \n \n \n \n \n \n\n\n \n \n \n\n\n \n \n \n \n \n \n \n \n \n \n\n```",
"declarative_metadata_sample_definition": [
{
"description": "The following is an example of a SharingSet component that grants users access to all contacts whose ReportsTo fields match the users’ contacts.",
"code": "\n\n \n Read\n ReportsTo\n \n Contact\n \n User Access Mapping\n User\n customer community user\n"
},
{
"description": "The following is an example of a SharingSet component that grants users access to all cases that are related to an entitlement, which is associated with the user’s account.",
"code": "\n\n Case\n \n Edit\n Entitlement.Account\n \n Account\n \n"
},
{
"description": "The following is an example of a SharingSet component with a list of access mappings.",
"code": "\n\n This is a basic sharing set with several access mappings.\n Basic\n customer community user\n \n Read\n Id\n \n Account\n \n \n Edit\n Account\n \n Account\n \n \n Edit\n Contact\n \n Contact\n \n \n Read\n AccountLookup__c\n \n Account\n \n"
}
]
}