{"id":"sforce_api_objects_permissionsetlicense","title":"PermissionSetLicense","content":"<a name=\"sforce_api_objects_permissionsetlicense\"><!-- --></a><h1 class=\"helpHead1\">PermissionSetLicense</h1><div class=\"body\">\n<div class=\"shortdesc\">\n<span class=\"ph\" id=\"summary\"><a name=\"summary\"><!-- --></a>Represents a license that’s used to enable one or more users to\n      receive a specified permission without changing their profile or reassigning profiles. You can\n      use permission set licenses to grant access, but not to deny access. </span>This object is\n    available in API version 29.0 and later.</div>\n\n    <div class=\"section\">\n<h2 class=\"helpHead2\">Supported Calls</h2>\n\n      \n      <p class=\"p\"><samp class=\"codeph nolang\">describeLayout()</samp>, <samp class=\"codeph nolang\">describeSObjects()</samp>, <samp class=\"codeph nolang\">query()</samp>, <samp class=\"codeph nolang\">retrieve()</samp></p>\n\n    </div>\n\n    <div class=\"section\">\n<h2 class=\"helpHead2\">Special Access Rules</h2>\n\n      \n      <p class=\"p\">As of Spring ’20 and later, only your Salesforce org's internal users can access this\n        object.</p>\n\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          <thead class=\"thead sorted\" align=\"left\">\n            <tr>\n              <th class=\"featureTableHeader  \" id=\"d1515682e86\">Field Name</th>\n\n              <th class=\"featureTableHeader  \" id=\"d1515682e89\">Details</th>\n\n            </tr>\n\n          </thead>\n\n          <tbody class=\"tbody\">\n            <tr>\n              <td class=\"entry\" headers=\"d1515682e86\" data-title=\"Field Name\"><span class=\"keyword parmname\">DeveloperName</span></td>\n\n              <td class=\"entry\" headers=\"d1515682e89\" data-title=\"Details\">\n                <dl class=\"dl detailList\">\n                  \n                    <dt class=\"dt dlterm\">Type</dt>\n\n                    <dd class=\"dd\">string</dd>\n\n                  \n                  \n                    <dt class=\"dt dlterm\">Properties</dt>\n\n                    <dd class=\"dd\">Filter, Group, Sort</dd>\n\n                  \n                  \n                    <dt class=\"dt dlterm\">Description</dt>\n\n                    <dd class=\"dd\">\n                      <p class=\"p\">The unique name of the object in the API. This name can contain only\n                        underscores and alphanumeric characters, and must be unique in your org. It\n                        must begin with a letter, not include spaces, not end with an underscore,\n                        and not contain two consecutive\n                        underscores.</p>\n\n                    </dd>\n\n                  \n                  \n                    <dd class=\"dd\">\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/264.0?doc_id=images%2Ficon_note.png&folder=object_reference\" alt=\"Note\"><div class=\"mediaBd\">\n<h4 class=\"mbs\">Note</h4>\n<p>When creating large sets of data, always specify a unique\n                          <span class=\"keyword parmname\">DeveloperName</span> for each record. If no\n                          <span class=\"keyword parmname\">DeveloperName</span> is specified, performance slows down\n                        while Salesforce generates one for each record.</p>\n</div>\n</div></div></div></div>\n\n                    </dd>\n\n                    <dd class=\"dd\">\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/264.0?doc_id=images%2Ficon_note.png&folder=object_reference\" alt=\"Note\"><div class=\"mediaBd\">\n<h4 class=\"mbs\">Note</h4>\n<p>Only users with View DeveloperName OR View Setup and Configuration\n                        permission can view, group, sort, and filter this field.</p>\n</div>\n</div></div></div></div>\n\n                    </dd>\n\n                  \n                </dl>\n\n              </td>\n\n            </tr>\n\n            <tr>\n              <td class=\"entry\" headers=\"d1515682e86\" data-title=\"Field Name\"><span class=\"keyword parmname\">ExpirationDate</span></td>\n\n              <td class=\"entry\" headers=\"d1515682e89\" data-title=\"Details\">\n                <dl class=\"dl detailList\">\n                  \n                    <dt class=\"dt dlterm\">Type</dt>\n\n                    <dd class=\"dd\">date</dd>\n\n                  \n                  \n                    <dt class=\"dt dlterm\">Properties</dt>\n\n                    <dd class=\"dd\">Filter, Group, Nillable, Sort</dd>\n\n                  \n                  \n                    <dt class=\"dt dlterm\">Description</dt>\n\n                    <dd class=\"dd\">The date at which the permission set license expires.</dd>\n\n                  \n                </dl>\n\n              </td>\n\n            </tr>\n\n            <tr>\n              <td class=\"entry\" headers=\"d1515682e86\" data-title=\"Field Name\"><span class=\"keyword parmname\">IsAvailableForIntegrations</span></td>\n\n              <td class=\"entry\" headers=\"d1515682e89\" data-title=\"Details\">\n                <dl class=\"dl detailList\">\n                  \n                    <dt class=\"dt dlterm\">Type</dt>\n\n                    <dd class=\"dd\">boolean</dd>\n\n                  \n                  \n                    <dt class=\"dt dlterm\">Properties</dt>\n\n                    <dd class=\"dd\">Defaulted on create, Filter, Group, Sort</dd>\n\n                  \n                  \n                    <dt class=\"dt dlterm\">Description</dt>\n\n                    <dd class=\"dd\">Indicates whether the permission set license is enabled for integrations\n                        (<samp class=\"codeph nolang\">true</samp>) or not (<samp class=\"codeph nolang\">false</samp>). When this field is set to <samp class=\"codeph nolang\">true</samp>, Salesforce integration features can\n                      access data. The default value is <samp class=\"codeph nolang\">false</samp>.\n                      This field is read-only in the API and can be edited only in Setup.</dd>\n\n                    <dd class=\"dd\">If integrations are required for feature functionality and the license isn't\n                      enabled for integrations, you receive an error when setting up the\n                      session-based permission set or executing the feature. Only enable\n                      integrations if necessary for the feature.</dd>\n\n                  \n                </dl>\n\n              </td>\n\n            </tr>\n\n            <tr>\n              <td class=\"entry\" headers=\"d1515682e86\" data-title=\"Field Name\">\n<span class=\"keyword parmname\">IsSupplementLicense</span> (Developer Preview)</td>\n\n              <td class=\"entry\" headers=\"d1515682e89\" data-title=\"Details\">\n                <dl class=\"dl detailList\">\n                  \n                    <dt class=\"dt dlterm\">Type</dt>\n\n                    <dd class=\"dd\">boolean</dd>\n\n                  \n                  \n                    <dt class=\"dt dlterm\">Properties</dt>\n\n                    <dd class=\"dd\">Defaulted on create, Filter, Group, Sort</dd>\n\n                  \n                  \n                    <dt class=\"dt dlterm\">Description</dt>\n\n                    <dd class=\"dd\">Indicates whether a custom permission set license is a supplement license\n                        (<samp class=\"codeph nolang\">true</samp>) or a foundation license (<samp class=\"codeph nolang\">false</samp>). The default value is <samp class=\"codeph nolang\">false</samp>.</dd>\n\n                    <dd class=\"dd\">This field is only available if the Partner Licensing Platform developer\n                      preview is enabled. This field is available in API version 55.0 and\n                        later.<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/264.0?doc_id=images%2Ficon_note.png&folder=object_reference\" alt=\"Note\"><div class=\"mediaBd\">\n<h4 class=\"mbs\">Note</h4>\n<p>The Partner Licensing Platform is available as a developer\n                        preview. The Partner Licensing Platform isn’t generally available unless or\n                        until Salesforce announces its general availability in documentation or in\n                        press releases or public statements. All commands, parameters, and other\n                        features are subject to change or deprecation at any time, with or without\n                        notice. Don't implement functionality developed with these commands or tools\n                        in your production package.</p>\n</div>\n</div></div></div></div>\n</dd>\n\n                  \n                </dl>\n\n              </td>\n\n            </tr>\n\n            <tr>\n              <td class=\"entry\" headers=\"d1515682e86\" data-title=\"Field Name\"><span class=\"keyword parmname\">Language</span></td>\n\n              <td class=\"entry\" headers=\"d1515682e89\" data-title=\"Details\">\n                <dl class=\"dl detailList\">\n                  \n                    <dt class=\"dt dlterm\">Type</dt>\n\n                    <dd class=\"dd\">picklist</dd>\n\n                  \n                  \n                    <dt class=\"dt dlterm\">Properties</dt>\n\n                    <dd class=\"dd\">Filter, Group, Restricted picklist, Sort</dd>\n\n                  \n                  \n                    <dt class=\"dt dlterm\">Description</dt>\n\n                    <dd class=\"dd\">\n                      <p class=\"p\">The language of the permission set license.</p>\n\n                    </dd>\n\n                  \n                </dl>\n\n              </td>\n\n            </tr>\n\n            <tr>\n              <td class=\"entry\" headers=\"d1515682e86\" data-title=\"Field Name\"><span class=\"keyword parmname\">MasterLabel</span></td>\n\n              <td class=\"entry\" headers=\"d1515682e89\" data-title=\"Details\">\n                <dl class=\"dl detailList\">\n                  \n                    <dt class=\"dt dlterm\">Type</dt>\n\n                    <dd class=\"dd\">string</dd>\n\n                  \n                  \n                    <dt class=\"dt dlterm\">Properties</dt>\n\n                    <dd class=\"dd\">Filter, Group, Sort</dd>\n\n                  \n                  \n                    <dt class=\"dt dlterm\">Description</dt>\n\n                    <dd class=\"dd\">The label of the permission set license. Label is <strong class=\"ph uicontrol\">Permission Set\n                        License Label</strong>.</dd>\n\n                  \n                </dl>\n\n              </td>\n\n            </tr>\n\n            <tr>\n              <td class=\"entry\" headers=\"d1515682e86\" data-title=\"Field Name\"><span class=\"keyword parmname\">MaximumPermissions<var class=\"keyword varname\">PermissionName</var></span></td>\n\n              <td class=\"entry\" headers=\"d1515682e89\" data-title=\"Details\">\n                <dl class=\"dl detailList\">\n                  \n                    <dt class=\"dt dlterm\">Type</dt>\n\n                    <dd class=\"dd\">boolean</dd>\n\n                  \n                  \n                    <dt class=\"dt dlterm\">Properties</dt>\n\n                    <dd class=\"dd\">Filter</dd>\n\n                  \n                  \n                    <dt class=\"dt dlterm\">Description</dt>\n\n                    <dd class=\"dd\">One field for each permission. For example,\n                        <span class=\"keyword parmname\">MaximumPermissionsIdentityConnect</span> corresponds to the\n                      “Use Identity Connect” permission.<p class=\"p\">If\n                          <kbd class=\"ph userinput\">true</kbd>, this PermissionSetLicense grants the\n                        specified permission. The number of fields varies depending on the\n                        permissions available for the organization.</p>\n</dd>\n\n                  \n                </dl>\n\n              </td>\n\n            </tr>\n\n            <tr>\n              <td class=\"entry\" headers=\"d1515682e86\" data-title=\"Field Name\"><span class=\"keyword parmname\">PermissionSetLicenseKey</span></td>\n\n              <td class=\"entry\" headers=\"d1515682e89\" data-title=\"Details\">\n                <dl class=\"dl detailList\">\n                  \n                    <dt class=\"dt dlterm\">Type</dt>\n\n                    <dd class=\"dd\">string</dd>\n\n                  \n                  \n                    <dt class=\"dt dlterm\">Properties</dt>\n\n                    <dd class=\"dd\">Filter, Group, idLookup, Sort</dd>\n\n                  \n                  \n                    <dt class=\"dt dlterm\">Description</dt>\n\n                    <dd class=\"dd\">A string that uniquely identifies a particular permission set license.</dd>\n\n                  \n                </dl>\n\n              </td>\n\n            </tr>\n\n            <tr>\n              <td class=\"entry\" headers=\"d1515682e86\" data-title=\"Field Name\"><span class=\"keyword parmname\">Status</span></td>\n\n              <td class=\"entry\" headers=\"d1515682e89\" data-title=\"Details\">\n                <dl class=\"dl detailList\">\n                  \n                    <dt class=\"dt dlterm\">Type</dt>\n\n                    <dd class=\"dd\">picklist</dd>\n\n                  \n                  \n                    <dt class=\"dt dlterm\">Properties</dt>\n\n                    <dd class=\"dd\">Filter, Group, Restricted picklist, Sort</dd>\n\n                  \n                  \n                    <dt class=\"dt dlterm\">Description</dt>\n\n                    <dd class=\"dd\">The status of a permission set license. If <span class=\"keyword parmname\">Active</span>, the\n                      permission set license is available. If <span class=\"keyword parmname\">Disabled</span>, the\n                      permission set license has expired.</dd>\n\n                  \n                </dl>\n\n              </td>\n\n            </tr>\n\n            <tr>\n              <td class=\"entry\" headers=\"d1515682e86\" data-title=\"Field Name\"><span class=\"keyword parmname\">TotalLicenses</span></td>\n\n              <td class=\"entry\" headers=\"d1515682e89\" data-title=\"Details\">\n                <dl class=\"dl detailList\">\n                  \n                    <dt class=\"dt dlterm\">Type</dt>\n\n                    <dd class=\"dd\">int</dd>\n\n                  \n                  \n                    <dt class=\"dt dlterm\">Properties</dt>\n\n                    <dd class=\"dd\">Filter, Group, Sort</dd>\n\n                  \n                  \n                    <dt class=\"dt dlterm\">Description</dt>\n\n                    <dd class=\"dd\">The total number of this permission set license that are available to your\n                      organization.</dd>\n\n                  \n                </dl>\n\n              </td>\n\n            </tr>\n\n            <tr>\n              <td class=\"entry\" headers=\"d1515682e86\" data-title=\"Field Name\"><span class=\"keyword parmname\">UsedLicenses</span></td>\n\n              <td class=\"entry\" headers=\"d1515682e89\" data-title=\"Details\">\n                <dl class=\"dl detailList\">\n                  \n                    <dt class=\"dt dlterm\">Type</dt>\n\n                    <dd class=\"dd\">int</dd>\n\n                  \n                  \n                    <dt class=\"dt dlterm\">Properties</dt>\n\n                    <dd class=\"dd\">Filter, Group, Sort</dd>\n\n                  \n                  \n                    <dt class=\"dt dlterm\">Description</dt>\n\n                    <dd class=\"dd\">The number of this permission set license that are currently assigned to\n                      users.</dd>\n\n                  \n                </dl>\n\n              </td>\n\n            </tr>\n\n          </tbody>\n\n        </table></div>\n\n    </div>\n\n    <div class=\"section\">\n<h2 class=\"helpHead2\">Usage</h2>\n\n      \n      <p class=\"p\">Users with the “View Setup and Configuration” permission can use the\n        PermissionSetLicense object to view the set of currently defined permission set licenses in\n        your organization.</p>\n\n      <p class=\"p\">Use the PermissionSetLicense object to query existing permission licenses.</p>\n\n      <div class=\"p\">For example, to return a list of all active permission set\n        licenses:<div class=\"codeSection soql\"><pre class=\"codeblock brush:plain\">SELECT MasterLabel \nFROM PermissionSetLicense\nWHERE Status = 'Active'</pre></div>\nWhen combined with the PermissionSetLicenseAssign object,\n        you can create a nested query that returns all users assigned to a particular permission set\n        license like “Identity\n        Connect”:<div class=\"codeSection soql\"><pre class=\"codeblock brush:plain\">SELECT MasterLabel, (SELECT AssigneeId FROM PermissionSetLicenseAssign) \nFROM PermissionSetLicense \nWHERE MaximumPermissionsIdentityConnect=true</pre></div>\n</div>\n\n    </div>\n\n  </div><div id=\"sfdc:seealso\" class=\"related-links\">\n<div class=\"relinfo\">\n<h4>See Also</h4>\n<ul class=\"unstyled\"><li><div><a class=\"link\" href=\"atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_permissionsetlicenseassign.htm\" title=\"Represents the association between a User and a PermissionSetLicense. This object is available in API version 29.0 and later.\">PermissionSetLicenseAssign</a></div></li></ul>\n</div>\n</div>"}