I want to enable licensing for my managed package and had few questions:
The licensing would be on a per user basis. My managed package runs a scheduled job in system context and performs some operations for Users which are licensed.
How can I check license for a set of users other than current user?
I'm aware that we can check licenses for the current user. But checking for licenses for X number of users would require a DML operation in every run. What are the best practices for checking for licensed users?
How does LMA work for such cases?
- How do you write unit tests for licensed users before security review? Since you do not have access to LMA org?