hi @tamalika01
at this log statement what are you seeing after making the change suggested by @zeel_sinojia,
log.warn(ruleName + " - requestEndPoint before = " + requestEndPoint);
Also in your before operation rule you are getting group details form plan but not sending it anywhere. I believe this is still not complete.
Can you remove redundant code from the rule and try it out once.
Thanks,
Uday