You need to sign in to do that
Don't have an account?
krupananda 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 ?
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