I have a batch job which gets a number of users in the start interface.
So I implement the following APIs
global Database.QueryLocator start(Database.BatchableContext bc)
global void execute(Database.BatchableContext bc, List<User> users)
global void finish(Database.BatchableContext bc)
I am wondering is there anyway I can get a handle to all users (not a batch of users) in the finish method?
Note: I was hoping to do this and keep my class stateless.
Thanks.