Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Salesforce by (11.9k points)

I am using the LMA (License Management Application) and want to know if it is possible to programmaticaly tell if a user has been licensed for my package.

Imagine if I wanted users of the application to see each other's application specific data - at minimum I would need a list of users that are licensed to use the application.

Is this possible? I want to be able to add code to the package that can be used to make decisions based on whether users have been granted a license seat through the LMA's "Manage Licenses" process.

Update: I've discovered that you can tell if the currently logged in user is licensed via the UserInfo.isCurrentUserLicensed(namespace) method - but so far no way to get a list of all licensed users.

1 Answer

0 votes
by (32.1k points)

UserInfo.isCurrentUserLicensed (namespace) is a method related to licensing from apex. But, there is presently no way to get all the licensed users of an application programmatically.

Browse Categories

...