PermissionSetLicenseAssign

Represents the association between a User and a PermissionSetLicense. This object is available in API version 29.0 and later.
Note

Note

The relationship name for PermissionSetLicenseAssign is PermissionSetLicenseAssignments.

Supported Calls

create()delete()describeSObjects()query()retrieve()

Fields

Field Name Details
AssigneeId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the User to assign the permission set license specified in PermissionSetLicenseId.
PermissionSetLicenseId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the permission set license the user is assigned to.

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.

For example, to search for all of the permission sets assigned to a particular user:
SELECT Id, PermissionSetLicenseId
FROM PermissionSetLicenseAssign
WHERE AssigneeId = '005D0000001RFek'
To search for all users assigned to a particular permission set license:
SELECT AssigneeId 
FROM PermissionSetLicenseAssign
WHERE 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.

See Also