You either create a GPO per mapped drive using the security filtering I.e GPO map drive A security filter members of groupa
GPO groupB shared drive security filter groupB
The other is to use a single logins vbscript/powershell script that has drive mapping a which includes verification of group membership as a condition. There are examples of vbscript said, powershell and batch scripts tart conditionally map drives.
The script would either obe part of the GPO or the login script under the user's AD profile using netlogon script.
I tried the attached in GPP but it doesn't work.