I did setup my Google Apps for Work Unlimited account to act as SAML2 Identity Provider and register my web application as Service Provider (as explained in the links below). It works great, I can login into my app after login into google with a user. My problem now is that I need to grant that user access to resources based on its google role or group membership and cannot figure out how to send that membership information back to the service provider. It seems that I cannot use the Attribute Mapping function to map the "groups" user field. Anybody know if this is a Google Apps for Work Unlimited limitation>Should I be able to send the group membership in another way?. How?. I know role and group membership are totally different things. I just need a way to differentiate user privileges. Maybe you can think another way to differentiate them?. I need to know, for example, whether they are administrators or just users in Google Apps. How can i do that?
https://support.google.com/a/answer/6087519?hl=en
https://robinpowered.com/blog/how-to-set-up-saml-with-google-apps/