Hi,
I have a question on how to retrieve the user details from M365 admin center. I understand there is this "Export users" function from the portal. But I need to establish an automated data feed from Microsoft365 admin center into SQL server DB for reporting purpose. We are mainly interested in understanding which user has what licenses. 
I was wondering if Graph API is the right type of API to retrieve such user details. I tested https://graph.microsoft.com/v1.0/users but it doesn't give License info from the users (e.g. Unlicensed vs Power BI etcs)
Apart from API option, is there a report subscription function from this M365 portal? So that the user details can be sent as a csv file to my email on a weekly/monthly basis.
Thanks for any suggestions.
