How to get all users of office 365 and their permissions in SharePoint hosted app and is it even possible ?
I want to get everyone's permissions and display content based on permissions of current user.
Putting this in document ready will give you an array with the current user's groups. From there you could query the list with groups and features that work for those groups (you would have to build and maintain this). Using SPServices GetListItems you can print to the page the groups and features that match what is in the array.