This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Assigns a permission set or permission set group to all user with the specified profile. | |
* Additional filter criteria can be passed in if the users needs filtered further. | |
* Example: Only assign permission set to community users on the Salesforce account | |
* String filter = 'Contact.Account.Name = \'Salesforce\''; | |
* BatchGrantPermissionSet('Community User Profile', 'Salesforce_Account_Privs', filter); | |
*/ | |
public class BatchGrantPermissionSet implements Database.Batchable<sObject> { | |
String query {get; set;} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Originally: | |
https://gist.github.com/7565976a89d5da1511ce | |
Hi Donald (and Martin), | |
Thanks for pinging me; it's nice to know Typesafe is keeping tabs on this, and I | |
appreciate the tone. This is a Yegge-long response, but given that you and | |
Martin are the two people best-situated to do anything about this, I'd rather | |
err on the side of giving you too much to think about. I realize I'm being very | |
critical of something in which you've invested a great deal (both financially |