I am looking for soql which could fetch me all the license used for all inactive and active users in one shot. similar to displaying company license information in native SFDC environment.
I am working on displaying the license information on VF such that i can have my own custom activation and deactivation of users in organization.
Any light on this is greatly appreciated.