The memberOf attribute references the DN of the group.
I'd suggest using an attribute of the user, like role, rather then memberOf.
Also remember that the Gluu Server is usually a consumer of identity. There needs to be some IDM process that keeps the Gluu Sever properly fed with user data. Or you can use the built in cache refresh process to synchronize and external LDAP server (and then use the cache refresh interception script to transform attribute values--i.e. perhaps re-write the DN of the group to something more meaningful.)