Now that MS provides us a way to have more flexibility to give admin rights on the O365 platform (https://blogs.office.com/2015/05/05/whats-new-in-office-365-administration-from-microsoft-ignite/), we started to give more and more permissions to more users. So I thought about creating a script to report who is having which rights.
Here is the script : http://poshcode.org/get/5965
Don’t forget to fill the fields $Office365Account and $Office365Password with your O365 Admin credentials.
You can get more information on the different roles here : https://support.office.com/en-us/article/Assigning-admin-roles-in-Office-365-EAC4D046-1AFD-4F1A-85FC-8219C79E1504?ui=en-US&rs=en-US&ad=US