Vote 240  points

Apex methods to deal with licensed users.

Salesforce Platform, Apex & Visualforce, Application Distribution

Under Point Threshold

  1. 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. 
  2. 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.

4 years ago · 2 Comments ·Merge Idea · Report Abuse

1 to 2 of 2



from AppExchange


Help us to keep IdeaExchange clean by pointing out overlapping ideas. We'll investigate your suggestion and merge the ideas if it makes sense.



Thanks for your merge suggestion. We will review it shortly and merge the ideas if applicable. takes abuse situations very seriously. Examples of abuse include but are not limited to posting of offensive language or fraudulent statements. To help us process your request as quickly as possible, please fill out the form below describing the situation. For privacy and security reasons, the final outcome of an abuse case may not be revealed to the person who reported it.


Thank you for your feedback. We take abuse seriously and will investigate this issue and take appropriate action.