The following will generate a report of all licensed users in Office 365. You will have to connect to Office 365 PowerShell environment prior to being able to run this script to generate your report.
Get-MSOLUser -All | select userprincipalname,islicensed,{$_.Licenses.AccountSkuId} | Export-CSV c:\userlist.csv -NoTypeInformation