Object Reference for the Salesforce Platform
Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
PermissionSetLicenseAssign
The relationship name for PermissionSetLicenseAssign is PermissionSetLicenseAssignments.
Note
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve()
Special Access Rules
As of Summer ’20 and later, only users who have one of these permissions can access this object:
- View Setup and Configuration
- Assign Permission Sets
Fields
| Field Name | Details |
|---|---|
| AssigneeId |
|
| IsRevoked |
|
| LastCreatedByChangeId |
|
| LastDeletedByChangeId |
|
| PermissionSetLicenseId |
|
Usage
Use the PermissionSetLicenseAssign object for querying permission set license assignments to find out which permission set licenses are assigned to which users. Because each user can be assigned to many permission set licenses, each PermissionSetLicenseAssign ID represents the association of a single user and single permission set license.
1SELECT Id, PermissionSetLicenseId
2FROM PermissionSetLicenseAssign
3WHERE AssigneeId = '005D0000001RFek'1SELECT AssigneeId
2FROM PermissionSetLicenseAssign
3WHERE PermissionSetLicenseId = '0PLD000000003mwOAA'You can also create a new permission set license assignment, or use delete to remove a permission set license that’s been assigned to a user. To update an assignment, delete an existing assignment and insert a new one.