Salesforce has good support for checking the running user for a Custom Permission. However Salesforce does not have good support for checking any provided user for a Custom Permission.
Write a Custom Permission checker that accepts one user Id and one Custom Permission API Name, and return a Boolean TRUE if the User has the permission, or FALSE if the user does NOT have the permission.
Write an invocable apex class that applies this in bulk to a list of Users.
Salesforce has good support for checking the running user for a Custom Permission. However Salesforce does not have good support for checking any provided user for a Custom Permission.
Write a Custom Permission checker that accepts one user Id and one Custom Permission API Name, and return a Boolean TRUE if the User has the permission, or FALSE if the user does NOT have the permission.
Write an invocable apex class that applies this in bulk to a list of Users.