Newer Version Available
PermissionSetLicense
Supported Calls
describeSObjects(), query(), retrieve()
Special Access Rules
As of Spring ’20 and later, only your Salesforce org's internal users can access this object.
Fields
| Field Name | Details |
|---|---|
| DeveloperName |
|
| ExpirationDate |
|
| Language |
|
| MasterLabel |
|
| MaximumPermissionsPermissionName |
|
| MaximumPermissionsShowCompanyNameAsUserBadge |
|
| PermissionSetLicenseKey |
|
| Status |
|
| TotalLicenses |
|
| UsedLicenses |
|
Usage
Users with the “View Setup and Configuration” permission can use the PermissionSetLicense object to view the set of currently defined permission set licenses in your organization.
Use the PermissionSetLicense object to query existing permission licenses.
1SELECT MasterLabel
2FROM PermissionSetLicense
3WHERE Status = 'Active'1SELECT MasterLabel, (SELECT AssigneeId FROM PermissionSetLicenseAssignments)
2FROM PermissionSetLicense
3WHERE MaximumPermissionsIdentityConnect=true