function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
santhosh  konsanthosh kon 

How to assign permission set to 2000 users at a time?

Best Answer chosen by santhosh kon
pconpcon
You can (via the data loader or batches of anonymous apex) create an instance of the PermissionSetAssignement object [1].  Just set the AssigneeId and the PermissionSetId to our user's id and your permission set id

[1] https://www.salesforce.com/developer/docs/api/Content/sforce_api_objects_permissionsetassignment.htm