function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
krupananda reddykrupananda reddy 

Accessing user license information via apex .

How do i get the organization information i.e. user licenses remaining, used and for which type of user it is being used in Apex ?
goabhigogoabhigo
As of now there is no easy way to do this - https://success.salesforce.com/ideaView?id=0873000000070Wr

There are multiple discussions/links that can help:
https://www.salesforce.com/developer/docs/api/Content/sforce_api_objects_organization.htm (http://salesforce.stackexchange.com/questions/3833/company-information-in-apex)
http://salesforce.stackexchange.com/questions/3833/company-information-in-apex

Specifically this one - http://salesforce.stackexchange.com/questions/3916/getting-remaining-licenses-of-customer-portal-using-apex

--
Abhi