mirror of
https://github.com/forcedotcom/afv-library.git
synced 2026-07-30 19:50:42 +08:00
372 lines
27 KiB
JSON
372 lines
27 KiB
JSON
{
|
||
"sections": [
|
||
"title",
|
||
"description",
|
||
"file_information",
|
||
"directory_location",
|
||
"fields",
|
||
"sub_types",
|
||
"wsdl_segment",
|
||
"declarative_metadata_sample_definition"
|
||
],
|
||
"title": "PermissionSet - Metadata API",
|
||
"description": "Represents a set of permissions that's used to grant more access to one or more users without changing their profile or reassigning profiles. You can use permission sets to grant access but not to deny access.",
|
||
"file_information": ".permissionset",
|
||
"directory_location": "permissionsets",
|
||
"fields_columns": [
|
||
"type",
|
||
"description"
|
||
],
|
||
"fields": {
|
||
"agentAccesses": {
|
||
"type": "PermissionSetAgentAccess[]",
|
||
"description": "Indicates which agents are visible to users assigned to this permission set. Available in API version 63.0 and later."
|
||
},
|
||
"applicationVisibilities": {
|
||
"type": "PermissionSetApplicationVisibility[]",
|
||
"description": "Indicates which apps are visible to users assigned to this permission set. Available in API version 29.0 and later. In API version 29.0, this field supports custom apps only. In API version 30.0 and later, this field supports both standard and custom apps."
|
||
},
|
||
"classAccesses": {
|
||
"type": "PermissionSetApexClassAccess[]",
|
||
"description": "Indicates which top-level Apex classes have methods that users assigned to this permission set can execute. Available in API version 23.0 and later."
|
||
},
|
||
"customMetadataTypeAccesses": {
|
||
"type": "PermissionSetCustomMetadataTypeAccess[]",
|
||
"description": "Indicates the custom metadata types that are read-accessible to a user assigned to this permission set. Available in API version 47.0 and later."
|
||
},
|
||
"customPermissions": {
|
||
"type": "PermissionSetCustomPermissions[]",
|
||
"description": "Indicates which custom permissions are available to users assigned to this permission set. Available in API version 31.0 and later."
|
||
},
|
||
"customSettingAccesses": {
|
||
"type": "PermissionSetCustomSettingAccesses[]",
|
||
"description": "Indicates the custom settings that are read-accessible to a user assigned to this permission set. Available in API version 47.0 and later."
|
||
},
|
||
"description": {
|
||
"type": "string",
|
||
"description": "The permission set description. Limit: 255 characters."
|
||
},
|
||
"emailRoutingAddressAccesses": {
|
||
"type": "PermissionSetEmailRoutingAddressAccess[]",
|
||
"description": "Indicates the Email Routing Address permissions that are available to users assigned to a permission set. Available in API version 62.0 and later."
|
||
},
|
||
"externalCredentialPrincipalAccesses": {
|
||
"type": "PermissionSetExternalCredentialPrincipalAccess[]",
|
||
"description": "Indicates which external credential principals are available to users assigned to this permission set. Available in API version 59.0 and later."
|
||
},
|
||
"externalDataSourceAccesses": {
|
||
"type": "PermissionSetExternal DataSourceAccess[]",
|
||
"description": "Indicates which data sources with identity type of Per User are available to users assigned to this permission set. Available in API version 27.0 and later."
|
||
},
|
||
"fieldPermissions": {
|
||
"type": "PermissionSetFieldPermissions[]",
|
||
"description": "Indicates which fields are accessible to a user assigned to this permission set, and the kind of access available (readable or editable). Available in API version 23.0 and later."
|
||
},
|
||
"flowAccesses": {
|
||
"type": "PermissionSetFlowAccess[]",
|
||
"description": "Indicates which flows can be accessed by a user assigned to this permission set. Available in API version 47.0 and later."
|
||
},
|
||
"hasActivationRequired": {
|
||
"type": "boolean",
|
||
"description": "Indicates whether the permission set requires an associated active session (true) or not (false). Available in API version 37.0 and later."
|
||
},
|
||
"label": {
|
||
"type": "string",
|
||
"description": "The permission set label. Limit: 80 characters.",
|
||
"required": true
|
||
},
|
||
"license": {
|
||
"type": "string",
|
||
"description": "Either the related permission set license or the user license associated with this permission set. Available in API version 38.0 and later. Use this field instead of userLicense, which is deprecated and only available up to API Version 37.0."
|
||
},
|
||
"genComputingSummaryDefAccess": {
|
||
"type": "PermissionSetGenComputingSummaryDefAccess[]",
|
||
"description": "Indicates the enhanced summary access configuration for users assigned through a permission set. Available in API version 66.0 and later."
|
||
},
|
||
"objectPermissions": {
|
||
"type": "PermissionSetObjectPermissions[]",
|
||
"description": "Indicates the objects that are accessible to a user assigned to this permission set, and the kind of access available (create, read, edit, delete, and so on). Available in API version 23.0 and later."
|
||
},
|
||
"pageAccesses": {
|
||
"type": "PermissionSetApexPageAccess[]",
|
||
"description": "Indicates which Visualforce pages that users assigned to this permission set can execute. Available in API version 23.0 and later."
|
||
},
|
||
"recordTypeVisibilities": {
|
||
"type": "PermissionSetRecordTypeVisibility[]",
|
||
"description": "Indicates which record types are visible to users assigned to this permission set. Available in API version 29.0 and later. This field is never retrieved or deployed for inactive record types."
|
||
},
|
||
"ServicePresenceStatusAccesses": {
|
||
"type": "PermissionSetServicePresenceStatusAccess[]",
|
||
"description": "Indicates which Service presence statuses that the user assigned to this profile can execute. Available in API version 64.0 and later."
|
||
},
|
||
"tabSettings": {
|
||
"type": "PermissionSetTabVisibility[]",
|
||
"description": "Indicates the tab visibility settings for this permission set. Available in API version 26.0 and later."
|
||
},
|
||
"userLicense": {
|
||
"type": "string",
|
||
"description": "Deprecated. The user license for the permission set. A user license determines the baseline of features that the user can access. Every user must have exactly one user license. Available up to API version 37.0. In API version 38.0 and later, use license."
|
||
},
|
||
"userPermissions": {
|
||
"type": "PermissionSetUserPermissions[]",
|
||
"description": "Specifies an app or system permission (such as “API Enabled”) and whether it's enabled for this permission set. In API version 28.0 and earlier, this field retrieves all user permissions, enabled or disabled. In API version 29.0 and later, this field retrieves only enabled user permissions. In API Version 40.0 and later, if a permission isn’t specified for a deployment, it’s disabled."
|
||
}
|
||
},
|
||
"sub_types": {
|
||
"PermissionSetAgentAccess": {
|
||
"agentName": {
|
||
"type": "string",
|
||
"description": "The name of the employee agent.",
|
||
"required": true
|
||
},
|
||
"enabled": {
|
||
"type": "boolean",
|
||
"description": "Indicates whether users assigned to this permission set can use the Agentforce Employee Agent (true) or not (false).",
|
||
"required": true
|
||
}
|
||
},
|
||
"PermissionSetGenComputingSummaryDefAccess": {
|
||
"configName": {
|
||
"type": "string",
|
||
"description": "Indicates whether the users assigned to this profile can access the enhanced summary configuration (true) or not (false).",
|
||
"required": true
|
||
},
|
||
"enabled": {
|
||
"type": "boolean",
|
||
"description": "Indicates whether the access configuration is enabled (true) or not (false).",
|
||
"required": true
|
||
}
|
||
},
|
||
"PermissionSetApplicationVisibility": {
|
||
"application": {
|
||
"type": "string",
|
||
"description": "The app name.",
|
||
"required": true
|
||
},
|
||
"visible": {
|
||
"type": "boolean",
|
||
"description": "Indicates whether this app is visible to users assigned to this permission set (true) or not (false).",
|
||
"required": true
|
||
}
|
||
},
|
||
"PermissionSetApexClassAccess": {
|
||
"apexClass": {
|
||
"type": "string",
|
||
"description": "The Apex class name.",
|
||
"required": true
|
||
},
|
||
"enabled": {
|
||
"type": "boolean",
|
||
"description": "Indicates whether users assigned to this permission set can execute methods in the top-level class (true) or not (false).",
|
||
"required": true
|
||
}
|
||
},
|
||
"PermissionSetCustomMetadataTypeAccess": {
|
||
"enabled": {
|
||
"type": "boolean",
|
||
"description": "Indicates whether the records for this custom metadata type are readable (true) or not (false).",
|
||
"required": true
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"description": "The custom metadata type name.",
|
||
"required": true
|
||
}
|
||
},
|
||
"PermissionSetCustomPermissions": {
|
||
"enabled": {
|
||
"type": "boolean",
|
||
"description": "Indicates whether the custom permission is enabled (true) or not (false).",
|
||
"required": true
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"description": "The custom permission name.",
|
||
"required": true
|
||
}
|
||
},
|
||
"PermissionSetCustomSettingAccesses": {
|
||
"enabled": {
|
||
"type": "boolean",
|
||
"description": "Indicates whether the records for this custom setting are readable (true) or not (false).",
|
||
"required": true
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"description": "The custom setting name.",
|
||
"required": true
|
||
}
|
||
},
|
||
"PermissionSetEmailRoutingAddressAccess": {
|
||
"enabled": {
|
||
"type": "boolean",
|
||
"description": "Indicates whether the custom permission is enabled (true) or not (false).",
|
||
"required": true
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"description": "Represents an organization's Email-to-Case routing address.",
|
||
"required": true
|
||
}
|
||
},
|
||
"PermissionSetExternalCredentialPrincipalAccess": {
|
||
"enabled": {
|
||
"type": "boolean",
|
||
"description": "Indicates whether external credential principal access is enabled on the permission set (true) or not (false).",
|
||
"required": true
|
||
},
|
||
"externalCredentialPrincipal": {
|
||
"type": "string",
|
||
"description": "The name of the external credential and principal, separated by a dash. For example, myExternalCredential-myPrincipal. If the external credential and principal are part of a package, include the package’s namespace prefix with the principal’s name using this format: namespacePrefix__myExternalCredential-myPrincipal. Use two underscores (__) between the namespace prefix and the external credential principal’s name.",
|
||
"required": true
|
||
}
|
||
},
|
||
"PermissionSetExternalDataSourceAccess": {
|
||
"enabled": {
|
||
"type": "boolean",
|
||
"description": "Indicates whether the data source is enabled (true) or not (false).",
|
||
"required": true
|
||
},
|
||
"externalDataSource": {
|
||
"type": "string",
|
||
"description": "The name of the external data source."
|
||
}
|
||
},
|
||
"PermissionSetFieldPermissions": {
|
||
"editable": {
|
||
"type": "boolean",
|
||
"description": "Indicates whether the field can be edited by the users assigned to this permission set (true) or not (false).",
|
||
"required": true
|
||
},
|
||
"field": {
|
||
"type": "string",
|
||
"description": "The API name of the field (such as Warehouse__c.Description__c ). When referencing shared Activity fields, specify Event or Task. For example, Event.Meeting__c.",
|
||
"required": true
|
||
},
|
||
"readable": {
|
||
"type": "boolean",
|
||
"description": "Indicates whether the field can be read by the users assigned to this permission set (true) or not (false)."
|
||
}
|
||
},
|
||
"PermissionSetFlowAccess": {
|
||
"enabled": {
|
||
"type": "boolean",
|
||
"description": "Indicates whether users assigned this permission set can access the flow (true) or not (false) The default value is false.",
|
||
"required": true
|
||
},
|
||
"flow": {
|
||
"type": "string",
|
||
"description": "The name of the flow to which access is granted.",
|
||
"required": true
|
||
}
|
||
},
|
||
"PermissionSetObjectPermissions": {
|
||
"allowCreate": {
|
||
"type": "boolean",
|
||
"description": "Indicates whether the object referenced by the object field can be created by the users assigned to this permission set (true) or not (false).",
|
||
"required": true
|
||
},
|
||
"allowDelete": {
|
||
"type": "boolean",
|
||
"description": "Indicates whether the object referenced by the object field can be deleted by the users assigned to this permission set (true) or not (false).",
|
||
"required": true
|
||
},
|
||
"allowEdit": {
|
||
"type": "boolean",
|
||
"description": "Indicates whether the object referenced by the object field can be edited by the users assigned to this permission set (true) or not (false).",
|
||
"required": true
|
||
},
|
||
"allowRead": {
|
||
"type": "boolean",
|
||
"description": "Indicates whether the object referenced by the object field can be viewed by the users assigned to this permission set (true) or not (false).",
|
||
"required": true
|
||
},
|
||
"modifyAllRecords": {
|
||
"type": "boolean",
|
||
"description": "Indicates whether all records for the object referenced by the object field can be viewed, edited, or deleted by the users assigned to this permission set (true) or not (false), regardless of the sharing settings for the object. Includes private records (records with no parent object). Similar to the Modify All Data user permission, but limited to the individual object level.",
|
||
"required": true
|
||
},
|
||
"object": {
|
||
"type": "string",
|
||
"description": "The API name of the object (such as Warehouse__c ).",
|
||
"required": true
|
||
},
|
||
"viewAllFields": {
|
||
"type": "string",
|
||
"description": "Indicates whether all fields and field data for the object referenced by the object field can be viewed by the users assigned to this permission set (true) or not (false). Available in API version 63.0 and later."
|
||
},
|
||
"viewAllRecords": {
|
||
"type": "boolean",
|
||
"description": "Indicates whether all records for the object referenced by the object field can be viewed by the users assigned to this permission set (true) or not (false), regardless of the sharing settings for the object. This setting includes private records (records with no parent object). The viewAllRecords field is similar to the View All Data user permission but limited to the individual object level.",
|
||
"required": true
|
||
}
|
||
},
|
||
"PermissionSetApexPageAccess": {
|
||
"apexPage": {
|
||
"type": "string",
|
||
"description": "The Visualforce page name.",
|
||
"required": true
|
||
},
|
||
"enabled": {
|
||
"type": "boolean",
|
||
"description": "Indicates whether users assigned to this permission set can execute the Visualforce page (true) or not (false).",
|
||
"required": true
|
||
}
|
||
},
|
||
"PermissionSetRecordTypeVisibility": {
|
||
"recordType": {
|
||
"type": "string",
|
||
"description": "The record type name, for example Account.MyRecordType.",
|
||
"required": true
|
||
},
|
||
"visible": {
|
||
"type": "boolean",
|
||
"description": "Indicates whether the record type is visible to users assigned to this permission set (true) or not (false).",
|
||
"required": true
|
||
}
|
||
},
|
||
"PermissionSetTabSetting": {
|
||
"tab": {
|
||
"type": "string",
|
||
"description": "The tab name.",
|
||
"required": true
|
||
},
|
||
"visibility": {
|
||
"type": "PermissionSetTabVisibility (enumeration of type string)",
|
||
"description": "Indicates the visibility settings for the tab. Valid values are: Available—The tab is available on the All Tabs page. Individual users can customize their display to make the tab visible in any app. None—The tab isn’t available on the All Tabs page or visible in any apps. Visible—The tab is available on the All Tabs page and appears in the visible tabs for its associated app. Individual users can customize their display to hide the tab or make it visible in other apps.",
|
||
"required": true
|
||
}
|
||
},
|
||
"PermissionSetUserPermission": {
|
||
"enabled": {
|
||
"type": "boolean",
|
||
"description": "Indicates whether the permission is enabled (true) or disabled (false).",
|
||
"required": true
|
||
},
|
||
"name": {
|
||
"type": "string",
|
||
"description": "The name of the permission.",
|
||
"required": true
|
||
}
|
||
},
|
||
"PermissionSetServicePresenceStatusAccess": {
|
||
"servicePresenceStatus": {
|
||
"type": "string",
|
||
"description": "The name of Service Presence Status.",
|
||
"required": true
|
||
},
|
||
"enabled": {
|
||
"type": "boolean",
|
||
"description": "Indicates whether the rep assigned to this profile has access to the presence status (true) or not (false).",
|
||
"required": true
|
||
}
|
||
}
|
||
},
|
||
"wsdl_segment": "```xml\n<xsd:complexType name=\"Metadata\">\n <xsd:sequence>\n <xsd:element name=\"fullName\" minOccurs=\"0\" type=\"xsd:string\"/>\n </xsd:sequence>\n</xsd:complexType>\n<xsd:complexType name=\"MutingPermissionSet\">\n <xsd:complexContent>\n <xsd:extension base=\"tns:PermissionSet\">\n <xsd:sequence>\n <xsd:element name=\"label\" type=\"xsd:string\"/>\n </xsd:sequence>\n </xsd:extension>\n </xsd:complexContent>\n</xsd:complexType>\n<xsd:complexType name=\"PermissionSet\">\n <xsd:complexContent>\n <xsd:extension base=\"tns:Metadata\">\n <xsd:sequence>\n <xsd:element name=\"agentAccesses\" minOccurs=\"0\" maxOccurs=\"unbounded\" type=\"tns:PermissionSetAgentAccess\"/>\n <xsd:element name=\"applicationVisibilities\" minOccurs=\"0\" maxOccurs=\"unbounded\" type=\"tns:PermissionSetApplicationVisibility\"/>\n <xsd:element name=\"classAccesses\" minOccurs=\"0\" maxOccurs=\"unbounded\" type=\"tns:PermissionSetApexClassAccess\"/>\n <xsd:element name=\"customMetadataTypeAccesses\" minOccurs=\"0\" maxOccurs=\"unbounded\" type=\"tns:PermissionSetCustomMetadataTypeAccess\"/>\n <xsd:element name=\"customPermissions\" minOccurs=\"0\" maxOccurs=\"unbounded\" type=\"tns:PermissionSetCustomPermissions\"/>\n <xsd:element name=\"customSettingAccesses\" minOccurs=\"0\" maxOccurs=\"unbounded\" type=\"tns:PermissionSetCustomSettingAccess\"/>\n <xsd:element name=\"description\" minOccurs=\"0\" type=\"xsd:string\"/>\n <xsd:element name=\"emailRoutingAddressAccesses\" minOccurs=\"0\" maxOccurs=\"unbounded\" type=\"tns:PermissionSetEmailRoutingAddressAccess\"/>\n <xsd:element name=\"externalCredentialPrincipalAccesses\" minOccurs=\"0\" maxOccurs=\"unbounded\" type=\"tns:PermissionSetExternalCredentialPrincipalAccess\"/>\n <xsd:element name=\"externalDataSourceAccesses\" minOccurs=\"0\" maxOccurs=\"unbounded\" type=\"tns:PermissionSetExternalDataSourceAccess\"/>\n <xsd:element name=\"fieldPermissions\" minOccurs=\"0\" maxOccurs=\"unbounded\" type=\"tns:PermissionSetFieldPermissions\"/>\n <xsd:element name=\"flowAccesses\" minOccurs=\"0\" maxOccurs=\"unbounded\" type=\"tns:PermissionSetFlowAccess\"/>\n <xsd:element name=\"genComputingSummaryDefAccesses\" minOccurs=\"0\" maxOccurs=\"unbounded\" type=\"tns:PermissionSetGenComputingSummaryDefAccess\"/>\n <xsd:element name=\"hasActivationRequired\" minOccurs=\"0\" type=\"xsd:boolean\"/>\n <xsd:element name=\"label\" type=\"xsd:string\"/>\n <xsd:element name=\"license\" minOccurs=\"0\" type=\"xsd:string\"/>\n <xsd:element name=\"objectPermissions\" minOccurs=\"0\" maxOccurs=\"unbounded\" type=\"tns:PermissionSetObjectPermissions\"/>\n <xsd:element name=\"pageAccesses\" minOccurs=\"0\" maxOccurs=\"unbounded\" type=\"tns:PermissionSetApexPageAccess\"/>\n <xsd:element name=\"recordTypeVisibilities\" minOccurs=\"0\" maxOccurs=\"unbounded\" type=\"tns:PermissionSetRecordTypeVisibility\"/>\n <xsd:element name=\"servicePresenceStatusAccesses\" minOccurs=\"0\" maxOccurs=\"unbounded\" type=\"tns:PermissionSetServicePresenceStatusAccess\"/>\n <xsd:element name=\"tabSettings\" minOccurs=\"0\" maxOccurs=\"unbounded\" type=\"tns:PermissionSetTabSetting\"/>\n <xsd:element name=\"userPermissions\" minOccurs=\"0\" maxOccurs=\"unbounded\" type=\"tns:PermissionSetUserPermission\"/>\n </xsd:sequence>\n </xsd:extension>\n </xsd:complexContent>\n</xsd:complexType>\n<xsd:complexType name=\"PermissionSetAgentAccess\">\n <xsd:sequence>\n <xsd:element name=\"agentName\" type=\"xsd:string\"/>\n <xsd:element name=\"enabled\" type=\"xsd:boolean\"/>\n </xsd:sequence>\n</xsd:complexType>\n<xsd:complexType name=\"PermissionSetApexClassAccess\">\n <xsd:sequence>\n <xsd:element name=\"apexClass\" type=\"xsd:string\"/>\n <xsd:element name=\"enabled\" type=\"xsd:boolean\"/>\n </xsd:sequence>\n</xsd:complexType>\n<xsd:complexType name=\"PermissionSetApexPageAccess\">\n <xsd:sequence>\n <xsd:element name=\"apexPage\" type=\"xsd:string\"/>\n <xsd:element name=\"enabled\" type=\"xsd:boolean\"/>\n </xsd:sequence>\n</xsd:complexType>\n<xsd:complexType name=\"PermissionSetApplicationVisibility\">\n <xsd:sequence>\n <xsd:element name=\"application\" type=\"xsd:string\"/>\n <xsd:element name=\"visible\" type=\"xsd:boolean\"/>\n </xsd:sequence>\n</xsd:complexType>\n<xsd:complexType name=\"PermissionSetCustomMetadataTypeAccess\">\n <xsd:sequence>\n <xsd:element name=\"enabled\" type=\"xsd:boolean\"/>\n <xsd:element name=\"name\" type=\"xsd:string\"/>\n </xsd:sequence>\n</xsd:complexType>\n<xsd:complexType name=\"PermissionSetCustomPermissions\">\n <xsd:sequence>\n <xsd:element name=\"enabled\" type=\"xsd:boolean\"/>\n <xsd:element name=\"name\" type=\"xsd:string\"/>\n </xsd:sequence>\n</xsd:complexType>\n<xsd:complexType name=\"PermissionSetCustomSettingAccess\">\n <xsd:sequence>\n <xsd:element name=\"enabled\" type=\"xsd:boolean\"/>\n <xsd:element name=\"name\" type=\"xsd:string\"/>\n </xsd:sequence>\n</xsd:complexType>\n<xsd:complexType name=\"PermissionSetEmailRoutingAddressAccess\">\n <xsd:sequence>\n <xsd:element name=\"enabled\" type=\"xsd:boolean\"/>\n <xsd:element name=\"name\" type=\"xsd:string\"/>\n </xsd:sequence>\n</xsd:complexType>\n<xsd:complexType name=\"PermissionSetExternalCredentialPrincipalAccess\">\n <xsd:sequence>\n <xsd:element name=\"enabled\" type=\"xsd:boolean\"/>\n <xsd:element name=\"externalCredentialPrincipal\" type=\"xsd:string\"/>\n </xsd:sequence>\n</xsd:complexType>\n<xsd:complexType name=\"PermissionSetExternalDataSourceAccess\">\n <xsd:sequence>\n <xsd:element name=\"enabled\" type=\"xsd:boolean\"/>\n <xsd:element name=\"externalDataSource\" type=\"xsd:string\"/>\n </xsd:sequence>\n</xsd:complexType>\n<xsd:complexType name=\"PermissionSetFieldPermissions\">\n <xsd:sequence>\n <xsd:element name=\"editable\" type=\"xsd:boolean\"/>\n <xsd:element name=\"field\" type=\"xsd:string\"/>\n <xsd:element name=\"readable\" minOccurs=\"0\" type=\"xsd:boolean\"/>\n </xsd:sequence>\n</xsd:complexType>\n<xsd:complexType name=\"PermissionSetFlowAccess\">\n <xsd:sequence>\n <xsd:element name=\"enabled\" type=\"xsd:boolean\"/>\n <xsd:element name=\"flow\" type=\"xsd:string\"/>\n </xsd:sequence>\n</xsd:complexType>\n<xsd:complexType name=\"PermissionSetGenComputingSummaryDefAccess\">\n <xsd:sequence>\n <xsd:element name=\"configName\" type=\"xsd:string\"/>\n <xsd:element name=\"enabled\" type=\"xsd:boolean\"/>\n </xsd:sequence>\n</xsd:complexType>\n<xsd:complexType name=\"PermissionSetObjectPermissions\">\n <xsd:sequence>\n <xsd:element name=\"allowCreate\" type=\"xsd:boolean\"/>\n <xsd:element name=\"allowDelete\" type=\"xsd:boolean\"/>\n <xsd:element name=\"allowEdit\" type=\"xsd:boolean\"/>\n <xsd:element name=\"allowRead\" type=\"xsd:boolean\"/>\n <xsd:element name=\"modifyAllRecords\" type=\"xsd:boolean\"/>\n <xsd:element name=\"object\" type=\"xsd:string\"/>\n <xsd:element name=\"viewAllFields\" minOccurs=\"0\" type=\"xsd:boolean\"/>\n <xsd:element name=\"viewAllRecords\" type=\"xsd:boolean\"/>\n </xsd:sequence>\n</xsd:complexType>\n<xsd:complexType name=\"PermissionSetRecordTypeVisibility\">\n <xsd:sequence>\n <xsd:element name=\"recordType\" type=\"xsd:string\"/>\n <xsd:element name=\"visible\" type=\"xsd:boolean\"/>\n </xsd:sequence>\n</xsd:complexType>\n<xsd:complexType name=\"PermissionSetServicePresenceStatusAccess\">\n <xsd:sequence>\n <xsd:element name=\"enabled\" type=\"xsd:boolean\"/>\n <xsd:element name=\"servicePresenceStatus\" type=\"xsd:string\"/>\n </xsd:sequence>\n</xsd:complexType>\n<xsd:complexType name=\"PermissionSetTabSetting\">\n <xsd:sequence>\n <xsd:element name=\"tab\" type=\"xsd:string\"/>\n <xsd:element name=\"visibility\" type=\"tns:PermissionSetTabVisibility\"/>\n </xsd:sequence>\n</xsd:complexType>\n<xsd:simpleType name=\"PermissionSetTabVisibility\">\n <xsd:restriction base=\"xsd:string\">\n <xsd:enumeration value=\"None\"/>\n <xsd:enumeration value=\"Available\"/>\n <xsd:enumeration value=\"Visible\"/>\n </xsd:restriction>\n</xsd:simpleType>\n<xsd:complexType name=\"PermissionSetUserPermission\">\n <xsd:sequence>\n <xsd:element name=\"enabled\" type=\"xsd:boolean\"/>\n <xsd:element name=\"name\" type=\"xsd:string\"/>\n </xsd:sequence>\n</xsd:complexType>\n```",
|
||
"declarative_metadata_sample_definition": [
|
||
{
|
||
"description": "The following is an example of a PermissionSet component.",
|
||
"code": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<PermissionSet xmlns=\"http://soap.sforce.com/2006/04/metadata\">\n <description>Grants all rights needed for an HR administrator to manage employees.</description>\n <label>HR Administration</label>\n <userLicense>Salesforce</userLicense>\n <applicationVisibilities>\n <application>JobApps__Recruiting</application>\n <visible>true</visible>\n </applicationVisibilities>\n <userPermissions>\n <enabled>true</enabled>\n <name>ApiEnabled</name>\n </userPermissions>\n <objectPermissions>\n <allowCreate>true</allowCreate>\n <allowDelete>true</allowDelete>\n <allowEdit>true</allowEdit>\n <allowRead>true</allowRead>\n <viewAllRecords>true</viewAllRecords>\n <modifyAllRecords>true</modifyAllRecords>\n <viewAllFields>true</viewAllFields>\n <object>Job_Request__c</object>\n </objectPermissions>\n <fieldPermissions>\n <editable>true</editable>\n <field>Job_Request__c.Salary__c</field>\n <readable>true</readable>\n </fieldPermissions>\n <pageAccesses>\n <apexPage>Job_Request_Web_Form</apexPage>\n <enabled>true</enabled>\n </pageAccesses>\n <classAccesses>\n <apexClass>Send_Email_Confirmation</apexClass>\n <enabled>true</enabled>\n </classAccesses>\n <tabSettings>\n <tab>Job_Request__c</tab>\n <visibility>Available</visibility>\n </tabSettings>\n <recordTypeVisibilities>\n <recordType>Recruiting.DevManager</recordType>\n <visible>true</visible>\n </recordTypeVisibilities>\n</PermissionSet>"
|
||
}
|
||
]
|
||
} |