How to map Azure AD Role Assigned group to Nextcloud?

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 21.0.2
Operating system and version (eg, Ubuntu 20.04): Plesk Server
Apache or nginx version (eg, Apache 2.4.25): Apache ?
PHP version (eg, 7.4): PHP 7.3.29

The issue you are facing:
I would like to be able to map the groups a user belongs to in Azure AD to Nextcloud?
I’m using SAML/SSO plugin (Configured and working correctly). Users are able to login but managing quotas and Nextcloud groups is a pain.
I want to create security groups in Azure AD groups for “Users” and “Admins”
So when I add users to “Admins” they automatically get the Admin permissions and when adding users will be just users.
As can be seen below. I have created the Admin role but is not working (mapping correctly).

image

How can this be done?
How can a user assign to Admin group be assign as Admin in Nextcloud?

Did you find a way to make this work?