Newer Version Available
PermissionSetLicense
Represents a license that’s used to enable one or more users to receive a specified permission without changing their profile or reassigning profiles. You can use permission set licenses to grant access, but not to deny access. This object is available in API version 29.0 and later.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
| Field Name | Details |
|---|---|
| DeveloperName |
|
| ExpirationDate |
|
| Language |
|
| MasterLabel |
|
| MaximumPermissionsPermissionName |
|
| 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