{"id":"meta_permissionset","title":"PermissionSet","content":"<a name=\"meta_permissionset\"><!-- --></a><h1 class=\"helpHead1\">PermissionSet</h1><div class=\"body refbody\">\n<div class=\"shortdesc\"><span class=\"ph\" id=\"permissionset_shortdesc\"><a name=\"permissionset_shortdesc\"><!-- --></a>Represents a set of permissions that's used to grant\n            more access to one or more users without changing their profile or reassigning profiles.\n            You can use permission sets to grant access but not to deny access.</span></div>\n\n        <div class=\"section\">\n            <p class=\"p\">This type extends the <a class=\"xref\" href=\"atlas.en-us.258.0.api_meta.meta/api_meta/metadata.htm\" title=\"The base class for all metadata types. You can’t edit this object. A component is an instance of a metadata type.\">Metadata</a> metadata type and inherits its\n                    <span class=\"keyword parmname\">fullName</span> field.</p>\n\n            <p class=\"p\">In API version 40.0 and later, when you retrieve permission set metadata, all content\n                exposed in Metadata API for the permission sets is included. The metadata includes\n                Apex associated with the permission set, CRUD, and so on. Likewise, when you deploy\n                a permission set, you must include all of its metadata to avoid accidentally\n                overwriting the permission set’s contents.</p>\n\n            <p class=\"p\">In API version 39.0 and earlier, retrieving or deploying permission set metadata\n                returns only app and system permissions assigned to the permission set. Junction\n                metadata (such as Apex, CRUD) are included only if the metadata for the related\n                component is also included in the package definition.</p>\n\n            <p class=\"p\">In API version 29.0 and later, you can retrieve and\n                deploy access settings for these managed components in profiles and permission\n                sets:</p>\n\n            <p class=\"p\">For more information, see the Managed Component Access section of <a class=\"xref\" href=\"https://developer.salesforce.com/docs/atlas.en-us.258.0.api_meta.meta/api_meta/manifest_samples.htm\" target=\"_blank\">Sample package.xml Manifest Files</a> in the\n                    <cite class=\"cite\">Metadata API Developer Guide</cite>.</p>\n\n        </div>\n\n        <div class=\"section\">\n<h2 class=\"helpHead2\">Declarative Metadata File Suffix and Directory Location</h2>\n\n            \n            <p class=\"p\">Permission sets are stored in the <span class=\"ph filepath\">permissionsets</span> directory. The\n                file name matches the permission set API name and the extension is\n                    <span class=\"ph filepath\">.permissionset</span>. For example, a permission set with the name\n                    <em class=\"ph i\">User_Management_Perms</em> is stored in\n                    <span class=\"ph filepath\">permissionsets/User_Management_Perms.permissionset</span>.</p>\n\n        </div>\n\n        <div class=\"section\">\n<h2 class=\"helpHead2\">Version</h2>\n\n            \n            <p class=\"p\">Permission sets are available in API version 22.0 and later.</p>\n\n        </div>\n\n        <div class=\"section\">\n<h2 class=\"helpHead2\">Special Access Rules</h2>\n<div class=\"p\">\n<p class=\"p\">As of Summer ’20 and later, only users who\n                have one of these permissions can access this type:</p>\n<ul class=\"ul bulletList\">\n                <li class=\"li\">View Setup and Configuration</li>\n\n                <li class=\"li\">Manage Session Permission Set Activations</li>\n\n                <li class=\"li\">Assign Permission Sets</li>\n\n                <li class=\"li\">Manage Profiles and Permission Sets</li>\n\n            </ul>\nTo view the following settings, assignments, and permissions for standard and\n            custom objects in a specified permission set, the View Setup and Configuration\n            permission is required.<ul class=\"ul bulletList\">\n                <li class=\"li\">Client settings</li>\n\n                <li class=\"li\">Field permissions</li>\n\n                <li class=\"li\">Layout assignments</li>\n\n                <li class=\"li\">Object permissions</li>\n\n                <li class=\"li\">Permission dependencies</li>\n\n                <li class=\"li\">Permission set tab settings</li>\n\n                <li class=\"li\">Permission set group components</li>\n\n                <li class=\"li\">Record types</li>\n\n            </ul>\n</div>\n</div>\n\n        <div class=\"section\">\n<h2 class=\"helpHead2\">Fields</h2>\n\n            \n            \n<div class=\"data colSort\"><table class=\"featureTable sort_table\" summary=\"\">\n                    \n                    \n                    \n                    <thead class=\"thead sorted\" align=\"left\">\n                        <tr>\n                            <th class=\"featureTableHeader  \" id=\"d697307e172\">Field</th>\n\n                            <th class=\"featureTableHeader  \" id=\"d697307e175\">Field Type</th>\n\n                            <th class=\"featureTableHeader  \" id=\"d697307e178\">Description</th>\n\n                        </tr>\n\n                    </thead>\n\n                    <tbody class=\"tbody\">\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e172\" data-title=\"Field\"><span class=\"keyword parmname\">agentAccesses</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e175\" data-title=\"Field Type\">\n<a class=\"xref\" href=\"#permissionset_agentaccess\">PermissionSetAgentAccess</a>[]</td>\n\n                            <td class=\"entry\" headers=\"d697307e178\" data-title=\"Description\">Indicates which agents are visible to users assigned to this\n                                permission set. Available in API version 63.0 and later.</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e172\" data-title=\"Field\"><span class=\"keyword parmname\">applicationVisibilities</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e175\" data-title=\"Field Type\">\n<a class=\"xref\" href=\"#PermissionSetApplicationVisibility_title\">PermissionSetApplicationVisibility</a>[]</td>\n\n                            <td class=\"entry\" headers=\"d697307e178\" data-title=\"Description\">Indicates which apps are visible to users assigned to this\n                                permission set. Available in API version 29.0 and later. In API\n                                version 29.0, this field supports custom apps only. In API version\n                                30.0 and later, this field supports both standard and custom\n                                apps.</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e172\" data-title=\"Field\"><span class=\"keyword parmname\">classAccesses</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e175\" data-title=\"Field Type\">\n<a class=\"xref\" href=\"#PermissionSetApexClassAccess_title\">PermissionSetApexClassAccess</a>[]</td>\n\n                            <td class=\"entry\" headers=\"d697307e178\" data-title=\"Description\">Indicates which top-level Apex classes have methods that users\n                                assigned to this permission set can execute. Available in API\n                                version 23.0 and later.</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e172\" data-title=\"Field\"><span class=\"keyword parmname\">customMetadataTypeAccesses</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e175\" data-title=\"Field Type\">\n<a class=\"xref\" href=\"#PermissionSetCustomMetadataTypeAccess_title\">PermissionSetCustomMetadataTypeAccess</a>[]</td>\n\n                            <td class=\"entry\" headers=\"d697307e178\" data-title=\"Description\">Indicates the custom metadata types that are read-accessible to a\n                                user assigned to this permission set. Available in API version 47.0\n                                and later.</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e172\" data-title=\"Field\"><span class=\"keyword parmname\">customPermissions</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e175\" data-title=\"Field Type\">\n<a class=\"xref\" href=\"#PermissionSetCustomPermissions_title\">PermissionSetCustomPermissions</a>[]</td>\n\n                            <td class=\"entry\" headers=\"d697307e178\" data-title=\"Description\">Indicates which custom permissions are available to users\n                                assigned to this permission set. Available in API version 31.0 and\n                                later.</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e172\" data-title=\"Field\"><span class=\"keyword parmname\">customSettingAccesses</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e175\" data-title=\"Field Type\">\n<a class=\"xref\" href=\"#PermissionSetCustomSettingAccesses_title\">PermissionSetCustomSettingAccesses</a>[]</td>\n\n                            <td class=\"entry\" headers=\"d697307e178\" data-title=\"Description\">Indicates the custom settings that are read-accessible to a user\n                                assigned to this permission set. Available in API version 47.0 and\n                                later.</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e172\" data-title=\"Field\"><span class=\"keyword parmname\">description</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e175\" data-title=\"Field Type\">string</td>\n\n                            <td class=\"entry\" headers=\"d697307e178\" data-title=\"Description\">The permission set description. Limit: 255 characters.</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e172\" data-title=\"Field\"><span class=\"keyword parmname\">emailRoutingAddressAccesses</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e175\" data-title=\"Field Type\">\n<a class=\"xref\" href=\"#PermissionSetEmailRoutingAddressAccess_title\">PermissionSetEmailRoutingAddressAccess</a>[]</td>\n\n                            <td class=\"entry\" headers=\"d697307e178\" data-title=\"Description\">Indicates the Email Routing Address permissions that are\n                                available to users assigned to a permission set. Available in API\n                                version 62.0 and later.</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e172\" data-title=\"Field\"><span class=\"keyword parmname\">externalCredentialPrincipalAccesses</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e175\" data-title=\"Field Type\">\n<a class=\"xref\" href=\"#PermissionSetExternalCredentialPrincipalAccess_title\">PermissionSetExternalCredentialPrincipalAccess</a>[]</td>\n\n                            <td class=\"entry\" headers=\"d697307e178\" data-title=\"Description\">Indicates which external credential principals are available to\n                                users assigned to this permission set. Available in API version 59.0\n                                and later.</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e172\" data-title=\"Field\"><span class=\"keyword parmname\">externalDataSourceAccesses</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e175\" data-title=\"Field Type\">\n<a class=\"xref\" href=\"#PermissionSetExternalDataSourceAccess_title\">PermissionSetExternal DataSourceAccess</a>[]</td>\n\n                            <td class=\"entry\" headers=\"d697307e178\" data-title=\"Description\">Indicates which data sources with identity type of <span class=\"keyword parmname\">Per\n                                    User</span> are available to users assigned to this\n                                permission set. Available in API version 27.0 and later.</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e172\" data-title=\"Field\"><span class=\"keyword parmname\">fieldPermissions</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e175\" data-title=\"Field Type\">\n<a class=\"xref\" href=\"#PermissionSetFieldPermissions_title\">PermissionSetFieldPermissions</a>[]</td>\n\n                            <td class=\"entry\" headers=\"d697307e178\" data-title=\"Description\">Indicates which fields are accessible to a user assigned to this\n                                permission set, and the kind of access available (readable or\n                                editable). Available in API version 23.0 and later.</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e172\" data-title=\"Field\"><span class=\"keyword parmname\">flowAccesses</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e175\" data-title=\"Field Type\">\n<a class=\"xref\" href=\"#PermissionSetFlowAccess_title\">PermissionSetFlowAccess</a>[]</td>\n\n                            <td class=\"entry\" headers=\"d697307e178\" data-title=\"Description\">Indicates which flows can be accessed by a user assigned to this\n                                permission set. Available in API version 47.0 and later.</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e172\" data-title=\"Field\"><span class=\"keyword parmname\">hasActivationRequired</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e175\" data-title=\"Field Type\">boolean</td>\n\n                            <td class=\"entry\" headers=\"d697307e178\" data-title=\"Description\">Indicates whether the permission set requires an associated\n                                active session (<samp class=\"codeph nolang\">true</samp>) or not\n                                    (<samp class=\"codeph nolang\">false</samp>). Available in API\n                                version 37.0 and later.</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e172\" data-title=\"Field\"><span class=\"keyword parmname\">label</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e175\" data-title=\"Field Type\">string</td>\n\n                            <td class=\"entry\" headers=\"d697307e178\" data-title=\"Description\">Required. The permission set label. Limit: 80 characters.</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e172\" data-title=\"Field\"><span class=\"keyword parmname\">license</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e175\" data-title=\"Field Type\">string</td>\n\n                            <td class=\"entry\" headers=\"d697307e178\" data-title=\"Description\">Either the related permission set license or the user license\n                                associated with this permission set. Available in API version 38.0\n                                and later. Use this field instead of\n                                    <span class=\"keyword parmname\">userLicense</span>, which is deprecated and only\n                                available up to API Version 37.0.</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e172\" data-title=\"Field\"><span class=\"keyword parmname\">objectPermissions</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e175\" data-title=\"Field Type\">\n<a class=\"xref\" href=\"#permissionSetObjectPermissions_title\">PermissionSetObjectPermissions</a>[]</td>\n\n                            <td class=\"entry\" headers=\"d697307e178\" data-title=\"Description\">Indicates the objects that are accessible to a user assigned to\n                                this permission set, and the kind of access available (create, read,\n                                edit, delete, and so on). Available in API version 23.0 and\n                                later.</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e172\" data-title=\"Field\"><span class=\"keyword parmname\">pageAccesses</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e175\" data-title=\"Field Type\">\n<a class=\"xref\" href=\"#PermissionSetApexPageAccess_title\">PermissionSetApexPageAccess</a>[]</td>\n\n                            <td class=\"entry\" headers=\"d697307e178\" data-title=\"Description\">Indicates which Visualforce pages that users assigned to this\n                                permission set can execute. Available in API version 23.0 and\n                                later.</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e172\" data-title=\"Field\"><span class=\"keyword parmname\">recordTypeVisibilities</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e175\" data-title=\"Field Type\">\n<a class=\"xref\" href=\"#PermissionSetRecordTypeVisibility_title\">PermissionSetRecordTypeVisibility</a>[]</td>\n\n                            <td class=\"entry\" headers=\"d697307e178\" data-title=\"Description\">Indicates which record types are visible to users assigned to\n                                this permission set. Available in API version 29.0 and later. This\n                                field is never retrieved or deployed for inactive record\n                                types.</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e172\" data-title=\"Field\"><span class=\"keyword parmname\">ServicePresenceStatusAccesses</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e175\" data-title=\"Field Type\"><a class=\"xref\" href=\"#section_w4v_tg4_1fc\">PermissionSetServicePresenceStatusAccess[]</a></td>\n\n                            <td class=\"entry\" headers=\"d697307e178\" data-title=\"Description\">Indicates which Service presence statuses that the user assigned\n                                to this profile can execute. Available in API version 64.0 and\n                                later.</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e172\" data-title=\"Field\"><span class=\"keyword parmname\">tabSettings</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e175\" data-title=\"Field Type\">\n<a class=\"xref\" href=\"#PermissionSetTabVisibility_title\">PermissionSetTabVisibility</a>[]</td>\n\n                            <td class=\"entry\" headers=\"d697307e178\" data-title=\"Description\">Indicates the tab visibility settings for this permission set.\n                                Available in API version 26.0 and later.</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e172\" data-title=\"Field\"><span class=\"keyword parmname\">userLicense</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e175\" data-title=\"Field Type\">string</td>\n\n                            <td class=\"entry\" headers=\"d697307e178\" data-title=\"Description\">Deprecated. The user license for the permission set. A user\n                                license determines the baseline of features that the user can\n                                access. Every user must have exactly one user license. Available up\n                                to API version 37.0. In API version 38.0 and later, use\n                                    <span class=\"keyword parmname\">license</span>.</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e172\" data-title=\"Field\"><span class=\"keyword parmname\">userPermissions</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e175\" data-title=\"Field Type\">\n<a class=\"xref\" href=\"#permissionSetUserPermissions_title\">PermissionSetUserPermissions</a>[]</td>\n\n                            <td class=\"entry\" headers=\"d697307e178\" data-title=\"Description\">Specifies an app or system permission (such as “API\n                                Enabled”) and whether it's enabled for this permission set.\n                                In API version 28.0 and earlier, this field retrieves all user\n                                permissions, enabled or disabled. In API version 29.0 and later,\n                                this field retrieves only enabled user permissions. In API Version\n                                40.0 and later, if a permission isn’t specified for a deployment,\n                                it’s disabled.</td>\n\n                        </tr>\n\n                    </tbody>\n\n                </table></div>\n\n        </div>\n\n        <div class=\"section\" id=\"permissionset_agentaccess\">\n<a name=\"permissionset_agentaccess\"><!-- --></a><h2 class=\"helpHead2\">PermissionSetAgentAccess</h2>\n\n            \n            <p class=\"p\">PermissionSetAgentAccess represents the agent access configuration for users assigned\n                through a permission set.</p>\n\n            \n<div class=\"data colSort\"><table class=\"featureTable sort_table\" summary=\"\">\n                    \n                    \n                    \n                    <thead class=\"thead sorted\" align=\"left\">\n                        <tr>\n                            <th class=\"featureTableHeader  \" id=\"d697307e566\">Field Name</th>\n\n                            <th class=\"featureTableHeader  \" id=\"d697307e569\">Field Type</th>\n\n                            <th class=\"featureTableHeader  \" id=\"d697307e572\">Description</th>\n\n                        </tr>\n\n                    </thead>\n\n                    <tbody class=\"tbody\">\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e566\" data-title=\"Field Name\"><span class=\"keyword parmname\">agentName</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e569\" data-title=\"Field Type\">string</td>\n\n                            <td class=\"entry\" headers=\"d697307e572\" data-title=\"Description\">Required. The name of the employee agent.</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e566\" data-title=\"Field Name\"><span class=\"keyword parmname\">enabled</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e569\" data-title=\"Field Type\">boolean</td>\n\n                            <td class=\"entry\" headers=\"d697307e572\" data-title=\"Description\">Required. Indicates whether users assigned to this permission set\n                                can use the Agentforce Employee Agent (<samp class=\"codeph java\">true</samp>) or not (<samp class=\"codeph java\">false</samp>).</td>\n\n                        </tr>\n\n                    </tbody>\n\n                </table></div>\n\n        </div>\n\n        <div class=\"section\" id=\"PermissionSetApplicationVisibility_title\">\n<a name=\"PermissionSetApplicationVisibility_title\"><!-- --></a><h2 class=\"helpHead2\">PermissionSetApplicationVisibility</h2>\n\n            \n            <p class=\"p\"><a class=\"xref\" href=\"#PermissionSetApplicationVisibility_title\">PermissionSetApplicationVisibility</a>\n                determines whether an app is visible to a user assigned to this permission set.</p>\n\n            \n<div class=\"data colSort\"><table class=\"featureTable sort_table\" summary=\"\">\n                    \n                    \n                    \n                    <thead class=\"thead sorted\" align=\"left\">\n                        <tr>\n                            <th class=\"featureTableHeader  \" id=\"d697307e640\">Field Name</th>\n\n                            <th class=\"featureTableHeader  \" id=\"d697307e643\">Field Type</th>\n\n                            <th class=\"featureTableHeader  \" id=\"d697307e646\">Description</th>\n\n                        </tr>\n\n                    </thead>\n\n                    <tbody class=\"tbody\">\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e640\" data-title=\"Field Name\"><span class=\"keyword parmname\">application</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e643\" data-title=\"Field Type\">string</td>\n\n                            <td class=\"entry\" headers=\"d697307e646\" data-title=\"Description\">Required. The app name.</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e640\" data-title=\"Field Name\"><span class=\"keyword parmname\">visible</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e643\" data-title=\"Field Type\">boolean</td>\n\n                            <td class=\"entry\" headers=\"d697307e646\" data-title=\"Description\">Required. Indicates whether this app is visible to users assigned\n                                to this permission set (<samp class=\"codeph java\">true</samp>) or\n                                not (<samp class=\"codeph java\">false</samp>).</td>\n\n                        </tr>\n\n                    </tbody>\n\n                </table></div>\n\n        </div>\n\n        <div class=\"section\" id=\"PermissionSetApexClassAccess_title\">\n<a name=\"PermissionSetApexClassAccess_title\"><!-- --></a><h2 class=\"helpHead2\">PermissionSetApexClassAccess</h2>\n\n            \n            <p class=\"p\"><a class=\"xref\" href=\"#PermissionSetApexClassAccess_title\">PermissionSetApexClassAccess</a> represents the\n                Apex class access for users assigned to a permission set.</p>\n\n            \n<div class=\"data colSort\"><table class=\"featureTable sort_table\" summary=\"\">\n                    \n                    \n                    \n                    <thead class=\"thead sorted\" align=\"left\">\n                        <tr>\n                            <th class=\"featureTableHeader  \" id=\"d697307e714\">Field</th>\n\n                            <th class=\"featureTableHeader  \" id=\"d697307e717\">Field Type</th>\n\n                            <th class=\"featureTableHeader  \" id=\"d697307e720\">Description</th>\n\n                        </tr>\n\n                    </thead>\n\n                    <tbody class=\"tbody\">\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e714\" data-title=\"Field\"><span class=\"keyword parmname\" id=\"permSetApexClass_field\"><a name=\"permSetApexClass_field\"><!-- --></a>apexClass</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e717\" data-title=\"Field Type\">string</td>\n\n                            <td class=\"entry\" headers=\"d697307e720\" data-title=\"Description\">Required. The Apex class name.</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e714\" data-title=\"Field\"><span class=\"keyword parmname\">enabled</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e717\" data-title=\"Field Type\">boolean</td>\n\n                            <td class=\"entry\" headers=\"d697307e720\" data-title=\"Description\">Required. Indicates whether users assigned to this permission set\n                                can execute methods in the top-level class (<samp class=\"codeph java\">true</samp>) or not (<samp class=\"codeph java\">false</samp>).</td>\n\n                        </tr>\n\n                    </tbody>\n\n                </table></div>\n\n        </div>\n\n        <div class=\"section\" id=\"PermissionSetCustomMetadataTypeAccess_title\">\n<a name=\"PermissionSetCustomMetadataTypeAccess_title\"><!-- --></a><h2 class=\"helpHead2\">PermissionSetCustomMetadataTypeAccess</h2>\n\n            \n            <p class=\"p\"><a class=\"xref\" href=\"#PermissionSetCustomMetadataTypeAccess_title\">PermissionSetCustomMetadataTypeAccess</a>\n                represents the custom metadata type access for users assigned to a permission set.\n                Available in API version 47.0 and later.</p>\n\n            \n<div class=\"data colSort\"><table class=\"featureTable sort_table\" summary=\"\">\n                    \n                    \n                    \n                    <thead class=\"thead sorted\" align=\"left\">\n                        <tr>\n                            <th class=\"featureTableHeader  \" id=\"d697307e788\">Field</th>\n\n                            <th class=\"featureTableHeader  \" id=\"d697307e791\">Field Type</th>\n\n                            <th class=\"featureTableHeader  \" id=\"d697307e794\">Description</th>\n\n                        </tr>\n\n                    </thead>\n\n                    <tbody class=\"tbody\">\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e788\" data-title=\"Field\"><span class=\"keyword parmname\">enabled</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e791\" data-title=\"Field Type\">boolean</td>\n\n                            <td class=\"entry\" headers=\"d697307e794\" data-title=\"Description\">Required. Indicates whether the records for this custom metadata\n                                type are readable (<samp class=\"codeph java\">true</samp>) or not\n                                    (<samp class=\"codeph java\">false</samp>).</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e788\" data-title=\"Field\"><span class=\"keyword parmname\">name</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e791\" data-title=\"Field Type\">string</td>\n\n                            <td class=\"entry\" headers=\"d697307e794\" data-title=\"Description\">Required. The custom metadata type name.</td>\n\n                        </tr>\n\n                    </tbody>\n\n                </table></div>\n\n        </div>\n\n        <div class=\"section\" id=\"PermissionSetCustomPermissions_title\">\n<a name=\"PermissionSetCustomPermissions_title\"><!-- --></a><h2 class=\"helpHead2\">PermissionSetCustomPermissions</h2>\n\n            \n            <p class=\"p\">PermissionSetCustomPermissions represents the custom permissions access for users\n                assigned to a permission set. Only enabled custom permissions are retrieved.</p>\n\n            \n<div class=\"data colSort\"><table class=\"featureTable sort_table\" summary=\"\">\n                    \n                    \n                    \n                    <thead class=\"thead sorted\" align=\"left\">\n                        <tr>\n                            <th class=\"featureTableHeader  \" id=\"d697307e859\">Field Name</th>\n\n                            <th class=\"featureTableHeader  \" id=\"d697307e862\">Field Type</th>\n\n                            <th class=\"featureTableHeader  \" id=\"d697307e865\">Description</th>\n\n                        </tr>\n\n                    </thead>\n\n                    <tbody class=\"tbody\">\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e859\" data-title=\"Field Name\"><span class=\"keyword parmname\">enabled</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e862\" data-title=\"Field Type\">boolean</td>\n\n                            <td class=\"entry\" headers=\"d697307e865\" data-title=\"Description\">Required. Indicates whether the custom permission is enabled\n                                    (<samp class=\"codeph java\">true</samp>) or not (<samp class=\"codeph java\">false</samp>).</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e859\" data-title=\"Field Name\"><span class=\"keyword parmname\">name</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e862\" data-title=\"Field Type\">string</td>\n\n                            <td class=\"entry\" headers=\"d697307e865\" data-title=\"Description\">Required. The custom permission name.</td>\n\n                        </tr>\n\n                    </tbody>\n\n                </table></div>\n\n        </div>\n\n        <div class=\"section\" id=\"PermissionSetCustomSettingAccesses_title\">\n<a name=\"PermissionSetCustomSettingAccesses_title\"><!-- --></a><h2 class=\"helpHead2\">PermissionSetCustomSettingAccesses</h2>\n\n            \n            <p class=\"p\">PermissionSetCustomSettingAccesses represents the custom setting access for users\n                assigned to a permission set. Available in API version 47.0 and later.</p>\n\n            \n<div class=\"data colSort\"><table class=\"featureTable sort_table\" summary=\"\">\n                    \n                    \n                    \n                    <thead class=\"thead sorted\" align=\"left\">\n                        <tr>\n                            <th class=\"featureTableHeader  \" id=\"d697307e930\">Field</th>\n\n                            <th class=\"featureTableHeader  \" id=\"d697307e933\">Field Type</th>\n\n                            <th class=\"featureTableHeader  \" id=\"d697307e936\">Description</th>\n\n                        </tr>\n\n                    </thead>\n\n                    <tbody class=\"tbody\">\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e930\" data-title=\"Field\"><span class=\"keyword parmname\">enabled</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e933\" data-title=\"Field Type\">boolean</td>\n\n                            <td class=\"entry\" headers=\"d697307e936\" data-title=\"Description\">Required. Indicates whether the records for this custom setting\n                                are readable (<samp class=\"codeph java\">true</samp>) or not\n                                    (<samp class=\"codeph java\">false</samp>).</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e930\" data-title=\"Field\"><span class=\"keyword parmname\">name</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e933\" data-title=\"Field Type\">string</td>\n\n                            <td class=\"entry\" headers=\"d697307e936\" data-title=\"Description\">Required. The custom setting name.</td>\n\n                        </tr>\n\n                    </tbody>\n\n                </table></div>\n\n        </div>\n\n        <div class=\"section\" id=\"PermissionSetEmailRoutingAddressAccess_title\">\n<a name=\"PermissionSetEmailRoutingAddressAccess_title\"><!-- --></a><h2 class=\"helpHead2\">PermissionSetEmailRoutingAddressAccess</h2>\n\n            \n            <p class=\"p\">PermissionSetEmailRoutingAddressAccess represents the Email Routing Address access\n                for users assigned to a permission set. Only enabled email routing addresses are\n                retrieved.</p>\n\n            \n<div class=\"data colSort\"><table class=\"featureTable sort_table\" summary=\"\">\n                    \n                    \n                    \n                    <thead class=\"thead sorted\" align=\"left\">\n                        <tr>\n                            <th class=\"featureTableHeader  \" id=\"d697307e1002\">Field</th>\n\n                            <th class=\"featureTableHeader  \" id=\"d697307e1005\">Field Type</th>\n\n                            <th class=\"featureTableHeader  \" id=\"d697307e1008\">Description</th>\n\n                        </tr>\n\n                    </thead>\n\n                    <tbody class=\"tbody\">\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e1002\" data-title=\"Field\"><span class=\"keyword parmname\">enabled</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e1005\" data-title=\"Field Type\">boolean</td>\n\n                            <td class=\"entry\" headers=\"d697307e1008\" data-title=\"Description\">Required. Indicates whether the custom permission is enabled\n                                    (<samp class=\"codeph java\">true</samp>) or not (<samp class=\"codeph java\">false</samp>).</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e1002\" data-title=\"Field\"><span class=\"keyword parmname\">name</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e1005\" data-title=\"Field Type\">string</td>\n\n                            <td class=\"entry\" headers=\"d697307e1008\" data-title=\"Description\">Required. Represents an organization's Email-to-Case routing\n                                address.</td>\n\n                        </tr>\n\n                    </tbody>\n\n                </table></div>\n\n        </div>\n\n        <div class=\"section\" id=\"PermissionSetExternalCredentialPrincipalAccess_title\">\n<a name=\"PermissionSetExternalCredentialPrincipalAccess_title\"><!-- --></a><h2 class=\"helpHead2\">PermissionSetExternalCredentialPrincipalAccess</h2>\n<p class=\"p\"><a class=\"xref\" href=\"#PermissionSetExternalCredentialPrincipalAccess_title\">PermissionSetExternalCredentialPrincipalAccess</a> represents the access to the external credential’s principals. Users assigned to\n                the permission set can make callouts using a named credential that references the\n                external credential. Available in API version 59.0 and later.</p>\n\n<div class=\"data colSort\"><table class=\"featureTable sort_table\" summary=\"\">\n                    \n                    \n                    \n                    <thead class=\"thead sorted\" align=\"left\">\n                        <tr>\n                            <th class=\"featureTableHeader  \" id=\"d697307e1073\">Field</th>\n\n                            <th class=\"featureTableHeader  \" id=\"d697307e1076\">Field Type</th>\n\n                            <th class=\"featureTableHeader  \" id=\"d697307e1079\">Description</th>\n\n                        </tr>\n\n                    </thead>\n\n                    <tbody class=\"tbody\">\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e1073\" data-title=\"Field\"><span class=\"keyword parmname\">enabled</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e1076\" data-title=\"Field Type\">boolean</td>\n\n                            <td class=\"entry\" headers=\"d697307e1079\" data-title=\"Description\">Required. Indicates whether external credential principal access\n                                is enabled on the permission set (<samp class=\"codeph java\">true</samp>) or not (<samp class=\"codeph java\">false</samp>).</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e1073\" data-title=\"Field\"><span class=\"keyword parmname\">externalCredentialPrincipal</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e1076\" data-title=\"Field Type\">string</td>\n\n                            <td class=\"entry\" headers=\"d697307e1079\" data-title=\"Description\">Required. The name of the external credential and principal,\n                                separated by a dash. For example, <samp class=\"codeph nolang\">myExternalCredential-myPrincipal</samp>.<p class=\"p\">If the external\n                                    credential and principal are part of a package, include the\n                                    package’s namespace prefix with the principal’s name using this\n                                    format: <samp class=\"codeph nolang\">namespacePrefix__<var class=\"keyword varname\">myExternalCredential-myPrincipal</var></samp>.\n                                    Use two underscores (__) between the namespace prefix and the\n                                    external credential principal’s name.</p>\n\n                            </td>\n\n                        </tr>\n\n                    </tbody>\n\n                </table></div>\n</div>\n\n        <div class=\"section\" id=\"PermissionSetExternalDataSourceAccess_title\">\n<a name=\"PermissionSetExternalDataSourceAccess_title\"><!-- --></a><h2 class=\"helpHead2\">PermissionSetExternalDataSourceAccess</h2>\n\n            \n            <p class=\"p\"><a class=\"xref\" href=\"#PermissionSetExternalDataSourceAccess_title\">PermissionSetExternalDataSourceAccess</a>\n                represents the data source access for users with identity type of <span class=\"keyword parmname\">Per\n                    User</span>. Available in API version 27.0 and later.</p>\n\n            \n<div class=\"data colSort\"><table class=\"featureTable sort_table\" summary=\"\">\n                    \n                    \n                    \n                    <thead class=\"thead sorted\" align=\"left\">\n                        <tr>\n                            <th class=\"featureTableHeader  \" id=\"d697307e1160\">Field</th>\n\n                            <th class=\"featureTableHeader  \" id=\"d697307e1163\">Field Type</th>\n\n                            <th class=\"featureTableHeader  \" id=\"d697307e1166\">Description</th>\n\n                        </tr>\n\n                    </thead>\n\n                    <tbody class=\"tbody\">\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e1160\" data-title=\"Field\"><span class=\"keyword parmname\">enabled</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e1163\" data-title=\"Field Type\">boolean</td>\n\n                            <td class=\"entry\" headers=\"d697307e1166\" data-title=\"Description\">Required. Indicates whether the data source is enabled (<samp class=\"codeph java\">true</samp>) or not (<samp class=\"codeph java\">false</samp>).</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e1160\" data-title=\"Field\"><span class=\"keyword parmname\">externalDataSource</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e1163\" data-title=\"Field Type\">string</td>\n\n                            <td class=\"entry\" headers=\"d697307e1166\" data-title=\"Description\">The name of the external data source.</td>\n\n                        </tr>\n\n                    </tbody>\n\n                </table></div>\n\n        </div>\n\n        <div class=\"section\" id=\"PermissionSetFieldPermissions_title\">\n<a name=\"PermissionSetFieldPermissions_title\"><!-- --></a><h2 class=\"helpHead2\">PermissionSetFieldPermissions</h2>\n\n            \n            <p class=\"p\"><a class=\"xref\" href=\"#PermissionSetFieldPermissions_title\">PermissionSetFieldPermissions</a> represents the\n                field permissions for users assigned to a permission set. In API version 30.0 and\n                later, permissions for required fields can’t be retrieved or deployed. In API\n                version 54.0 and later, only field permissions enabled in the permission set are\n                returned in queries.</p>\n\n            <p class=\"p\">As of API version 38.0, you can change field permissions to make a field editable\n                using the Metadata API for fields that you can't change through the user interface.\n                For example, you can deploy <samp class=\"codeph nolang\">Asset.ProductCode</samp>\n                as an editable field even though you can't through the user interface.</p>\n\n            <div class=\"box message info\"><div class=\"inner\"><div class=\"bd\"><div class=\"media\">\n<img class=\"img mtm\" src=\"/docs/resources/img/en-us/258.0?doc_id=images%2Ficon_note.png&folder=api_meta\" alt=\"Note\"><div class=\"mediaBd\">\n<h4 class=\"mbs\">Note</h4>\n<p>If the View All Fields object permission is enabled for an object in the\n                permission set, the individual fields aren't returned under <span class=\"keyword parmname\">fieldPermissions</span>.\n                However, if you later disable the View All Fields object permission, the fields are\n                returned under <span class=\"keyword parmname\">fieldPermissions</span> and you can remove access to the fields\n                manually.</p>\n</div>\n</div></div></div></div>\n\n            \n<div class=\"data colSort\"><table class=\"featureTable sort_table\" summary=\"\">\n                    \n                    \n                    \n                    <thead class=\"thead sorted\" align=\"left\">\n                        <tr>\n                            <th class=\"featureTableHeader  \" id=\"d697307e1249\">Field</th>\n\n                            <th class=\"featureTableHeader  \" id=\"d697307e1252\">Field Type</th>\n\n                            <th class=\"featureTableHeader  \" id=\"d697307e1255\">Description</th>\n\n                        </tr>\n\n                    </thead>\n\n                    <tbody class=\"tbody\">\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e1249\" data-title=\"Field\"><span class=\"keyword parmname\">editable</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e1252\" data-title=\"Field Type\">boolean</td>\n\n                            <td class=\"entry\" headers=\"d697307e1255\" data-title=\"Description\">Required. Indicates whether the field can be edited by the users\n                                assigned to this permission set (<samp class=\"codeph java\">true</samp>) or not (<samp class=\"codeph java\">false</samp>).</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e1249\" data-title=\"Field\"><span class=\"keyword parmname\" id=\"permSetFieldPerms_field\"><a name=\"permSetFieldPerms_field\"><!-- --></a>field</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e1252\" data-title=\"Field Type\">string</td>\n\n                            <td class=\"entry\" headers=\"d697307e1255\" data-title=\"Description\">Required. The API name of the field (such as <samp class=\"codeph nolang\">Warehouse__c.Description__c</samp>).<p class=\"p\">When referencing\n                                    shared Activity fields, specify Event or Task. For example,\n                                        <samp class=\"codeph nolang\">Event.Meeting__c</samp>.</p>\n</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e1249\" data-title=\"Field\"><span class=\"keyword parmname\">readable</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e1252\" data-title=\"Field Type\">boolean</td>\n\n                            <td class=\"entry\" headers=\"d697307e1255\" data-title=\"Description\">Indicates whether the field can be read by the users assigned to\n                                this permission set (<samp class=\"codeph java\">true</samp>) or not\n                                    (<samp class=\"codeph java\">false</samp>).</td>\n\n                        </tr>\n\n                    </tbody>\n\n                </table></div>\n\n        </div>\n\n        <div class=\"section\" id=\"PermissionSetFlowAccess_title\">\n<a name=\"PermissionSetFlowAccess_title\"><!-- --></a><h2 class=\"helpHead2\">PermissionSetFlowAccess</h2>\n\n            \n            <p class=\"p\"><a class=\"xref\" href=\"#PermissionSetFlowAccess_title\">PermissionSetFlowAccess</a> represents which\n                flows a permission set grants access to. Available in API version 47.0 and\n                later.</p>\n\n            \n<div class=\"data colSort\"><table class=\"featureTable sort_table\" summary=\"\">\n                    \n                    \n                    \n                    <thead class=\"thead sorted\" align=\"left\">\n                        <tr>\n                            <th class=\"featureTableHeader  \" id=\"d697307e1350\">Field</th>\n\n                            <th class=\"featureTableHeader  \" id=\"d697307e1353\">Field Type</th>\n\n                            <th class=\"featureTableHeader  \" id=\"d697307e1356\">Description</th>\n\n                        </tr>\n\n                    </thead>\n\n                    <tbody class=\"tbody\">\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e1350\" data-title=\"Field\"><span class=\"keyword parmname\">enabled</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e1353\" data-title=\"Field Type\">boolean</td>\n\n                            <td class=\"entry\" headers=\"d697307e1356\" data-title=\"Description\">Required. Indicates whether users assigned this permission set\n                                can access the flow (<samp class=\"codeph java\">true</samp>) or not\n                                    (<samp class=\"codeph java\">false</samp>) The default value is\n                                    <samp class=\"codeph java\">false</samp>.</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e1350\" data-title=\"Field\"><span class=\"keyword parmname\">flow</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e1353\" data-title=\"Field Type\">string</td>\n\n                            <td class=\"entry\" headers=\"d697307e1356\" data-title=\"Description\">Required. The name of the flow to which access is\n                                granted.</td>\n\n                        </tr>\n\n                    </tbody>\n\n                </table></div>\n\n        </div>\n\n        <div class=\"section\" id=\"permissionSetObjectPermissions_title\">\n<a name=\"permissionSetObjectPermissions_title\"><!-- --></a><h2 class=\"helpHead2\">PermissionSetObjectPermissions</h2>\n\n            \n            <p class=\"p\"><a class=\"xref\" href=\"#permissionSetObjectPermissions_title\">PermissionSetObjectPermissions</a> represents the object permissions for a permission set.\n                Use one of these elements for each permission.</p>\n\n            \n<div class=\"data colSort\"><table class=\"featureTable sort_table\" summary=\"\">\n                    \n                    \n                    \n                    <thead class=\"thead sorted\" align=\"left\">\n                        <tr>\n                            <th class=\"featureTableHeader  \" id=\"d697307e1427\">Field</th>\n\n                            <th class=\"featureTableHeader  \" id=\"d697307e1430\">Field Type</th>\n\n                            <th class=\"featureTableHeader  \" id=\"d697307e1433\">Description</th>\n\n                        </tr>\n\n                    </thead>\n\n                    <tbody class=\"tbody\">\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e1427\" data-title=\"Field\"><span class=\"keyword parmname\">allowCreate</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e1430\" data-title=\"Field Type\">boolean</td>\n\n                            <td class=\"entry\" headers=\"d697307e1433\" data-title=\"Description\">Required. Indicates whether the object referenced by the <a class=\"xref\" href=\"#permSetObjectPerms_object\"><span class=\"keyword parmname\">object</span></a> field can be created by the users assigned to this\n                                permission set (<samp class=\"codeph java\">true</samp>) or not\n                                    (<samp class=\"codeph java\">false</samp>).</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e1427\" data-title=\"Field\"><span class=\"keyword parmname\">allowDelete</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e1430\" data-title=\"Field Type\">boolean</td>\n\n                            <td class=\"entry\" headers=\"d697307e1433\" data-title=\"Description\">Required. Indicates whether the object referenced by the <a class=\"xref\" href=\"#permSetObjectPerms_object\"><span class=\"keyword parmname\">object</span></a> field can be deleted by the users assigned to this\n                                permission set (<samp class=\"codeph java\">true</samp>) or not\n                                    (<samp class=\"codeph java\">false</samp>).</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e1427\" data-title=\"Field\"><span class=\"keyword parmname\">allowEdit</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e1430\" data-title=\"Field Type\">boolean</td>\n\n                            <td class=\"entry\" headers=\"d697307e1433\" data-title=\"Description\">Required. Indicates whether the object referenced by the <a class=\"xref\" href=\"#permSetObjectPerms_object\"><span class=\"keyword parmname\">object</span></a> field can be edited by the users assigned to this\n                                permission set (<samp class=\"codeph java\">true</samp>) or not\n                                    (<samp class=\"codeph java\">false</samp>).</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e1427\" data-title=\"Field\"><span class=\"keyword parmname\">allowRead</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e1430\" data-title=\"Field Type\">boolean</td>\n\n                            <td class=\"entry\" headers=\"d697307e1433\" data-title=\"Description\">Required. Indicates whether the object referenced by the <a class=\"xref\" href=\"#permSetObjectPerms_object\"><span class=\"keyword parmname\">object</span></a> field can be viewed by the users assigned to this\n                                permission set (<samp class=\"codeph java\">true</samp>) or not\n                                    (<samp class=\"codeph java\">false</samp>).</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e1427\" data-title=\"Field\"><span class=\"keyword parmname\">modifyAllRecords</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e1430\" data-title=\"Field Type\">boolean</td>\n\n                            <td class=\"entry\" headers=\"d697307e1433\" data-title=\"Description\">Required. Indicates whether all records for the object referenced\n                                by the <a class=\"xref\" href=\"#permSetObjectPerms_object\"><span class=\"keyword parmname\">object</span></a> field can be viewed, edited, or deleted by the users\n                                assigned to this permission set (<samp class=\"codeph java\">true</samp>) or not (<samp class=\"codeph java\">false</samp>), regardless of the sharing settings for the object.\n                                Includes private records (records with no parent object). Similar to\n                                the Modify All Data user permission, but limited to the individual\n                                object level.</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e1427\" data-title=\"Field\"><span class=\"keyword parmname\" id=\"permSetObjectPerms_object\"><a name=\"permSetObjectPerms_object\"><!-- --></a>object</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e1430\" data-title=\"Field Type\">string</td>\n\n                            <td class=\"entry\" headers=\"d697307e1433\" data-title=\"Description\">Required. The API name of the object (such as <samp class=\"codeph nolang\">Warehouse__c</samp>).</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e1427\" data-title=\"Field\"><span class=\"keyword parmname\">viewAllFields</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e1430\" data-title=\"Field Type\">string</td>\n\n                            <td class=\"entry\" headers=\"d697307e1433\" data-title=\"Description\">Indicates whether all fields and field data for the object\n                                referenced by the <a class=\"xref\" href=\"#permSetObjectPerms_object\"><span class=\"keyword parmname\">object</span></a> field can be viewed by the users assigned to this\n                                permission set (<samp class=\"codeph java\">true</samp>) or not\n                                    (<samp class=\"codeph java\">false</samp>). Available in API\n                                version 63.0 and later.</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e1427\" data-title=\"Field\"><span class=\"keyword parmname\">viewAllRecords</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e1430\" data-title=\"Field Type\">boolean</td>\n\n                            <td class=\"entry\" headers=\"d697307e1433\" data-title=\"Description\">Required. Indicates whether all records for the object referenced\n                                by the <a class=\"xref\" href=\"#permSetObjectPerms_object\"><span class=\"keyword parmname\">object</span></a> field can be viewed by the users assigned to this\n                                permission set (<samp class=\"codeph java\">true</samp>) or not\n                                    (<samp class=\"codeph java\">false</samp>), regardless of the\n                                sharing settings for the object. This setting includes private\n                                records (records with no parent object). The\n                                    <span class=\"keyword parmname\">viewAllRecords</span> field is similar to the View\n                                All Data user permission but limited to the individual object\n                                level.</td>\n\n                        </tr>\n\n                    </tbody>\n\n                </table></div>\n\n        </div>\n\n        <div class=\"section\" id=\"PermissionSetApexPageAccess_title\">\n<a name=\"PermissionSetApexPageAccess_title\"><!-- --></a><h2 class=\"helpHead2\">PermissionSetApexPageAccess</h2>\n\n            \n            <p class=\"p\"><a class=\"xref\" href=\"#PermissionSetApexPageAccess_title\">PermissionSetApexPageAccess</a> represents the\n                Visualforce page access for users assigned to a permission set.</p>\n\n            \n<div class=\"data colSort\"><table class=\"featureTable sort_table\" summary=\"\">\n                    \n                    \n                    \n                    <thead class=\"thead sorted\" align=\"left\">\n                        <tr>\n                            <th class=\"featureTableHeader  \" id=\"d697307e1658\">Field</th>\n\n                            <th class=\"featureTableHeader  \" id=\"d697307e1661\">Field Type</th>\n\n                            <th class=\"featureTableHeader  \" id=\"d697307e1664\">Description</th>\n\n                        </tr>\n\n                    </thead>\n\n                    <tbody class=\"tbody\">\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e1658\" data-title=\"Field\"><span class=\"keyword parmname\" id=\"permSetApexPage_field\"><a name=\"permSetApexPage_field\"><!-- --></a>apexPage</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e1661\" data-title=\"Field Type\">string</td>\n\n                            <td class=\"entry\" headers=\"d697307e1664\" data-title=\"Description\">Required. The Visualforce page name.</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e1658\" data-title=\"Field\"><span class=\"keyword parmname\">enabled</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e1661\" data-title=\"Field Type\">boolean</td>\n\n                            <td class=\"entry\" headers=\"d697307e1664\" data-title=\"Description\">Required. Indicates whether users assigned to this permission set\n                                can execute the Visualforce page (<samp class=\"codeph java\">true</samp>) or not (<samp class=\"codeph java\">false</samp>).</td>\n\n                        </tr>\n\n                    </tbody>\n\n                </table></div>\n\n        </div>\n\n        <div class=\"section\" id=\"PermissionSetRecordTypeVisibility_title\">\n<a name=\"PermissionSetRecordTypeVisibility_title\"><!-- --></a><h2 class=\"helpHead2\">PermissionSetRecordTypeVisibility</h2>\n\n            \n            <p class=\"p\"><a class=\"xref\" href=\"#PermissionSetRecordTypeVisibility_title\">PermissionSetRecordTypeVisibility</a> represents\n                the visibility of record types for this permission set.</p>\n\n            \n<div class=\"data colSort\"><table class=\"featureTable sort_table\" summary=\"\">\n                    \n                    \n                    \n                    <thead class=\"thead sorted\" align=\"left\">\n                        <tr>\n                            <th class=\"featureTableHeader  \" id=\"d697307e1732\">Field</th>\n\n                            <th class=\"featureTableHeader  \" id=\"d697307e1735\">Field Type</th>\n\n                            <th class=\"featureTableHeader  \" id=\"d697307e1738\">Description</th>\n\n                        </tr>\n\n                    </thead>\n\n                    <tbody class=\"tbody\">\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e1732\" data-title=\"Field\"><span class=\"keyword parmname\">recordType</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e1735\" data-title=\"Field Type\">string</td>\n\n                            <td class=\"entry\" headers=\"d697307e1738\" data-title=\"Description\">Required. The record type name, for example <samp class=\"codeph nolang\">Account.MyRecordType</samp>.</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e1732\" data-title=\"Field\"><span class=\"keyword parmname\">visible</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e1735\" data-title=\"Field Type\">boolean</td>\n\n                            <td class=\"entry\" headers=\"d697307e1738\" data-title=\"Description\">Required. Indicates whether the record type is visible to users\n                                assigned to this permission set (<samp class=\"codeph java\">true</samp>) or not (<samp class=\"codeph java\">false</samp>).</td>\n\n                        </tr>\n\n                    </tbody>\n\n                </table></div>\n\n        </div>\n\n        <div class=\"section\" id=\"PermissionSetTabVisibility_title\">\n<a name=\"PermissionSetTabVisibility_title\"><!-- --></a><h2 class=\"helpHead2\">PermissionSetTabSetting</h2>\n\n            \n            <p class=\"p\"><a class=\"xref\" href=\"#PermissionSetTabVisibility_title\">PermissionSetTabSetting</a> represents the\n                tab settings for a permission set.</p>\n\n            \n<div class=\"data colSort\"><table class=\"featureTable sort_table\" summary=\"\">\n                    \n                    \n                    \n                    <thead class=\"thead sorted\" align=\"left\">\n                        <tr>\n                            <th class=\"featureTableHeader  \" id=\"d697307e1809\">Field</th>\n\n                            <th class=\"featureTableHeader  \" id=\"d697307e1812\">Field Type</th>\n\n                            <th class=\"featureTableHeader  \" id=\"d697307e1815\">Description</th>\n\n                        </tr>\n\n                    </thead>\n\n                    <tbody class=\"tbody\">\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e1809\" data-title=\"Field\"><span class=\"keyword parmname\">tab</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e1812\" data-title=\"Field Type\">string</td>\n\n                            <td class=\"entry\" headers=\"d697307e1815\" data-title=\"Description\">Required. The tab name.</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e1809\" data-title=\"Field\"><span class=\"keyword parmname\">visibility</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e1812\" data-title=\"Field Type\">PermissionSetTabVisibility (<a class=\"xref\" href=\"atlas.en-us.258.0.api_meta.meta/api_meta/meta_objects_intro.htm#enumeration_title\">enumeration</a> of type string)</td>\n\n                            <td class=\"entry\" headers=\"d697307e1815\" data-title=\"Description\">Required. Indicates the visibility settings for the tab. Valid\n                                values are:<ul class=\"ul bulletList\">\n                                    <li class=\"li\">\n<samp class=\"codeph java\">Available</samp>—The tab\n                                        is available on the All Tabs page. Individual users can\n                                        customize their display to make the tab visible in any\n                                        app.</li>\n\n                                    <li class=\"li\">\n<samp class=\"codeph java\">None</samp>—The tab isn’t\n                                        available on the All Tabs page or visible in any apps.</li>\n\n                                    <li class=\"li\">\n<samp class=\"codeph java\">Visible</samp>—The tab is\n                                        available on the All Tabs page and appears in the visible\n                                        tabs for its associated app. Individual users can customize\n                                        their display to hide the tab or make it visible in other\n                                        apps.</li>\n\n                                </ul>\n</td>\n\n                        </tr>\n\n                    </tbody>\n\n                </table></div>\n\n        </div>\n\n        <div class=\"section\" id=\"permissionSetUserPermissions_title\">\n<a name=\"permissionSetUserPermissions_title\"><!-- --></a><h2 class=\"helpHead2\">PermissionSetUserPermission</h2>\n\n            \n            <p class=\"p\">In API version 28.0 and earlier, <a class=\"xref\" href=\"#permissionSetUserPermissions_title\">PermissionSetUserPermission</a> represents an app or system permission for a permission\n                set. In API version 29.0 and later, this field retrieves only enabled user\n                permissions. Use one of these elements for each permission.</p>\n\n            \n<div class=\"data colSort\"><table class=\"featureTable sort_table\" summary=\"\">\n                    \n                    \n                    \n                    <thead class=\"thead sorted\" align=\"left\">\n                        <tr>\n                            <th class=\"featureTableHeader  \" id=\"d697307e1901\">Field</th>\n\n                            <th class=\"featureTableHeader  \" id=\"d697307e1904\">Field Type</th>\n\n                            <th class=\"featureTableHeader  \" id=\"d697307e1907\">Description</th>\n\n                        </tr>\n\n                    </thead>\n\n                    <tbody class=\"tbody\">\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e1901\" data-title=\"Field\"><span class=\"keyword parmname\">enabled</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e1904\" data-title=\"Field Type\">boolean</td>\n\n                            <td class=\"entry\" headers=\"d697307e1907\" data-title=\"Description\">Required. Indicates whether the permission is enabled (<samp class=\"codeph java\">true</samp>) or disabled (<samp class=\"codeph java\">false</samp>).</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e1901\" data-title=\"Field\"><span class=\"keyword parmname\">name</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e1904\" data-title=\"Field Type\">string</td>\n\n                            <td class=\"entry\" headers=\"d697307e1907\" data-title=\"Description\">Required. The name of the permission.</td>\n\n                        </tr>\n\n                    </tbody>\n\n                </table></div>\n\n        </div>\n\n        <div class=\"section\" id=\"section_w4v_tg4_1fc\">\n<a name=\"section_w4v_tg4_1fc\"><!-- --></a><h2 class=\"helpHead2\">PermissionSetServicePresenceStatusAccess</h2>\n\n            \n            <p class=\"p\">Represents the presence statuses that reps assigned to this profile have access.\n                Available in API version 64.0 and later.</p>\n\n            \n<div class=\"data colSort\"><table class=\"featureTable sort_table\" summary=\"\">\n                    \n                    \n                    \n                    <thead class=\"thead sorted\" align=\"left\">\n                        <tr>\n                            <th class=\"featureTableHeader  \" id=\"d697307e1972\">Field</th>\n\n                            <th class=\"featureTableHeader  \" id=\"d697307e1975\">Field Type</th>\n\n                            <th class=\"featureTableHeader  \" id=\"d697307e1978\">Description</th>\n\n                        </tr>\n\n                    </thead>\n\n                    <tbody class=\"tbody\">\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e1972\" data-title=\"Field\"><span class=\"keyword parmname\">servicePresenceStatus</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e1975\" data-title=\"Field Type\">string</td>\n\n                            <td class=\"entry\" headers=\"d697307e1978\" data-title=\"Description\">Required. The name of Service Presence Status.</td>\n\n                        </tr>\n\n                        <tr>\n                            <td class=\"entry\" headers=\"d697307e1972\" data-title=\"Field\"><span class=\"keyword parmname\">enabled</span></td>\n\n                            <td class=\"entry\" headers=\"d697307e1975\" data-title=\"Field Type\">boolean</td>\n\n                            <td class=\"entry\" headers=\"d697307e1978\" data-title=\"Description\">Required. Indicates whether the rep assigned to this profile has\n                                access to the presence status (<samp class=\"codeph java\">true</samp>) or not (<samp class=\"codeph java\">false</samp>).</td>\n\n                        </tr>\n\n                    </tbody>\n\n                </table></div>\n\n        </div>\n\n        <div class=\"section\" id=\"twb_sample\">\n<a name=\"twb_sample\"><!-- --></a><h2 class=\"helpHead2\">Declarative Metadata Sample Definition</h2>\n\n            \n            <p class=\"p\">The following is an example of a PermissionSet component.</p>\n\n            <div class=\"codeSection xml\"><pre class=\"codeblock brush:xml\"><span class=\"tag\">&lt;?xml</span><span class=\"attribute\"> version=</span>\"1.0\"<span class=\"attribute\"> encoding=</span>\"UTF-8\"?&gt;\n<span class=\"tag\">&lt;PermissionSet</span><span class=\"attribute\"> xmlns=</span>\"http://soap.sforce.com/2006/04/metadata\"&gt;\n    <span class=\"tag\">&lt;description</span>&gt;Grants all rights needed for an HR administrator to manage employees.<span class=\"tag\">&lt;/description</span>&gt;\n    <span class=\"tag\">&lt;label</span>&gt;HR Administration<span class=\"tag\">&lt;/label</span>&gt;\n    <span class=\"tag\">&lt;userLicense</span>&gt;Salesforce<span class=\"tag\">&lt;/userLicense</span>&gt;\n    <span class=\"tag\">&lt;applicationVisibilities</span>&gt;\n        <span class=\"tag\">&lt;application</span>&gt;JobApps__Recruiting<span class=\"tag\">&lt;/application</span>&gt;\n        <span class=\"tag\">&lt;visible</span>&gt;true<span class=\"tag\">&lt;/visible</span>&gt;\n    <span class=\"tag\">&lt;/applicationVisibilities</span>&gt;\n    <span class=\"tag\">&lt;userPermissions</span>&gt;\n        <span class=\"tag\">&lt;enabled</span>&gt;true<span class=\"tag\">&lt;/enabled</span>&gt;\n        <span class=\"tag\">&lt;name</span>&gt;ApiEnabled<span class=\"tag\">&lt;/name</span>&gt;\n    <span class=\"tag\">&lt;/userPermissions</span>&gt;\n    <span class=\"tag\">&lt;objectPermissions</span>&gt;\n        <span class=\"tag\">&lt;allowCreate</span>&gt;true<span class=\"tag\">&lt;/allowCreate</span>&gt;\n        <span class=\"tag\">&lt;allowDelete</span>&gt;true<span class=\"tag\">&lt;/allowDelete</span>&gt;\n        <span class=\"tag\">&lt;allowEdit</span>&gt;true<span class=\"tag\">&lt;/allowEdit</span>&gt;\n        <span class=\"tag\">&lt;allowRead</span>&gt;true<span class=\"tag\">&lt;/allowRead</span>&gt;\n        <span class=\"tag\">&lt;viewAllRecords</span>&gt;true<span class=\"tag\">&lt;/viewAllRecords</span>&gt;\n        <span class=\"tag\">&lt;modifyAllRecords</span>&gt;true<span class=\"tag\">&lt;/modifyAllRecords</span>&gt;\n        <span class=\"tag\">&lt;viewAllFields</span>&gt;true<span class=\"tag\">&lt;/viewAllFields</span>&gt;\n        <span class=\"tag\">&lt;object</span>&gt;Job_Request__c<span class=\"tag\">&lt;/object</span>&gt;\n    <span class=\"tag\">&lt;/objectPermissions</span>&gt;\n    <span class=\"tag\">&lt;fieldPermissions</span>&gt;\n        <span class=\"tag\">&lt;editable</span>&gt;true<span class=\"tag\">&lt;/editable</span>&gt;\n        <span class=\"tag\">&lt;field</span>&gt;Job_Request__c.Salary__c<span class=\"tag\">&lt;/field</span>&gt;\n        <span class=\"tag\">&lt;readable</span>&gt;true<span class=\"tag\">&lt;/readable</span>&gt;\n    <span class=\"tag\">&lt;/fieldPermissions</span>&gt;\n    <span class=\"tag\">&lt;pageAccesses</span>&gt;\n        <span class=\"tag\">&lt;apexPage</span>&gt;Job_Request_Web_Form<span class=\"tag\">&lt;/apexPage</span>&gt;\n        <span class=\"tag\">&lt;enabled</span>&gt;true<span class=\"tag\">&lt;/enabled</span>&gt;\n    <span class=\"tag\">&lt;/pageAccesses</span>&gt;\n    <span class=\"tag\">&lt;classAccesses</span>&gt;\n      <span class=\"tag\">&lt;apexClass</span>&gt;Send_Email_Confirmation<span class=\"tag\">&lt;/apexClass</span>&gt;\n      <span class=\"tag\">&lt;enabled</span>&gt;true<span class=\"tag\">&lt;/enabled</span>&gt;\n    <span class=\"tag\">&lt;/classAccesses</span>&gt;\n    <span class=\"tag\">&lt;tabSettings</span>&gt;\n        <span class=\"tag\">&lt;tab</span>&gt;Job_Request__c<span class=\"tag\">&lt;/tab</span>&gt;\n        <span class=\"tag\">&lt;visibility</span>&gt;Available<span class=\"tag\">&lt;/visibility</span>&gt;\n    <span class=\"tag\">&lt;/tabSettings</span>&gt;\n    <span class=\"tag\">&lt;recordTypeVisibilities</span>&gt;\n        <span class=\"tag\">&lt;recordType</span>&gt;Recruiting.DevManager<span class=\"tag\">&lt;/recordType</span>&gt;\n        <span class=\"tag\">&lt;visible</span>&gt;true<span class=\"tag\">&lt;/visible</span>&gt;\n    <span class=\"tag\">&lt;/recordTypeVisibilities</span>&gt;\n<span class=\"tag\">&lt;/PermissionSet</span>&gt;</pre></div>\n\n            <p class=\"p\">The following is an example package.xml manifest used to retrieve the PermissionSet\n                metadata for an organization. When you retrieve permission sets, also retrieve the\n                related components with assigned permissions. For example, to retrieve\n                    <span class=\"keyword parmname\">objectPermissions</span> and <span class=\"keyword parmname\">fieldPermissions</span>\n                for a custom object, you must also retrieve the CustomObject component.</p>\n\n            <div class=\"codeSection xml\"><pre class=\"codeblock brush:xml\"><span class=\"tag\">&lt;?xml</span><span class=\"attribute\"> version=</span>\"1.0\"<span class=\"attribute\"> encoding=</span>\"UTF-8\"?&gt;\n<span class=\"tag\">&lt;Package</span><span class=\"attribute\"> xmlns=</span>\"http://soap.sforce.com/2006/04/metadata\"&gt;\n    <span class=\"tag\">&lt;types</span>&gt;\n        <span class=\"tag\">&lt;members</span>&gt;Job_Request__c<span class=\"tag\">&lt;/members</span>&gt;\n        <span class=\"tag\">&lt;name</span>&gt;CustomTab<span class=\"tag\">&lt;/name</span>&gt;\n    <span class=\"tag\">&lt;/types</span>&gt;\n    <span class=\"tag\">&lt;types</span>&gt;\n        <span class=\"tag\">&lt;members</span>&gt;Job_Request__c<span class=\"tag\">&lt;/members</span>&gt;\n        <span class=\"tag\">&lt;name</span>&gt;CustomObject<span class=\"tag\">&lt;/name</span>&gt;\n    <span class=\"tag\">&lt;/types</span>&gt;\n    <span class=\"tag\">&lt;types</span>&gt;\n        <span class=\"tag\">&lt;members</span>&gt;JobApps__Recruiting<span class=\"tag\">&lt;/members</span>&gt;\n        <span class=\"tag\">&lt;name</span>&gt;CustomApplication<span class=\"tag\">&lt;/name</span>&gt;\n    <span class=\"tag\">&lt;/types</span>&gt;\n    <span class=\"tag\">&lt;types</span>&gt;\n        <span class=\"tag\">&lt;members</span>&gt;Recruiting.DevManager<span class=\"tag\">&lt;/members</span>&gt;\n        <span class=\"tag\">&lt;name</span>&gt;RecordType<span class=\"tag\">&lt;/name</span>&gt;\n    <span class=\"tag\">&lt;/types</span>&gt;\n    <span class=\"tag\">&lt;types</span>&gt;\n        <span class=\"tag\">&lt;members</span>&gt;*<span class=\"tag\">&lt;/members</span>&gt;\n        <span class=\"tag\">&lt;name</span>&gt;PermissionSet<span class=\"tag\">&lt;/name</span>&gt;\n    <span class=\"tag\">&lt;/types</span>&gt;\n    <span class=\"tag\">&lt;version</span>&gt;65.0<span class=\"tag\">&lt;/version</span>&gt;\n<span class=\"tag\">&lt;/Package</span>&gt;</pre></div>\n\n        </div>\n\n        <div class=\"section\">\n<h2 class=\"helpHead2\">Wildcard Support in the Manifest File</h2>\n\n      \n      <p class=\"p\" id=\"d25865e1968-d26124e32\"><a name=\"d25865e1968-d26124e32\"><!-- --></a>This metadata type supports the wildcard character <samp class=\"codeph nolang\">*</samp> (asterisk) in the <span class=\"ph filepath\">package.xml</span> manifest\n        file. For information about using the manifest file, see <a class=\"xref\" href=\"atlas.en-us.258.0.api_meta.meta/api_meta/file_based_zip_file.htm\" title=\"The deploy() and retrieve() calls are used to deploy and retrieve a .zip file. Within the .zip file is a project manifest (package.xml) that lists what to retrieve or deploy, and one or more XML components that are organized into folders.\">Deploying and Retrieving Metadata with the Zip File</a>.</p>\n\n    </div>\n\n    </div><div id=\"sfdc:seealso\" class=\"related-links\"></div>"}