LDAP group mappings with multiple role requirements

I would like to set the a group mapping to check two groups in order to set access rights. For example, the user should get Admin rights over Organization 1 if they have the groups grafana-admin and grafana-organization. If they have one and not the other, they shouldn’t get the access.

I’ve tried something like this:
group_dn = “(&(CN=A,DC=example,DC=org)(CN=B,DC=example,DC=org))”
org_id = 1
org_role = “Admin”
which was a long shot, and didn’t work.

Is there any way to do this?