Is it possible? Are there any limitations to consider? I have a use case where if a certain relationship is maybe, we would assign a permission set that grants access to a knowledge base data category.
Turns out it's very easy:
PermissionSetAssignment psa = new PermissionSetAssignment
(PermissionSetId = myPermissionSetId, AssigneeId = myAssigneeId);
This site survives thanks to advertising. Disable AdBlock to see the whole correct answer at no cost! We promise you will not find boring advertisements. Find out how to disable Adblock by clicking on this link. Remember to update the page once you have disabled it.