Created membership and get group id funcs