Apex methods to deal with licensed users.
- A method similar to UserInfo.isCurrentUserLicensed, but which I can specify a userId for, so I can check if any user is licensed for my package. I log statistics on opportunities and other objects when they change, and use the OwnerId as the key into my system. I only want to log the statistic if the OwnerId is a licensed user, but right now all I can get is the license state of the currently logged in user.
- A method that enables me to get a list of all the users that are licensed for my application. My application enables the sales manager to create teams of people to compete and collaborate toward goals. I only want licensed users to show up in the list of employees available to be assigned to teams. Currently, there is no way to do this.