ADFS - Roles and Groups with Rules

I am trying to get the roles and groups associated with my ADFS user. I have follow this question here. Groups and roles not returned to client application - Auth0 Community
but it does not seem to work still.

I wrote out the whole user object to the debugger but there are no roles inside of the user object. I also wrote out context but that does not contain any of the groups either.

Under the user area after they sign in they have Identity Provider Attributes and it has theirs groups inside of there. How do I get this transfered to the JWT Token?
I have tried doing this as an OIDC comformant application and then unchecking it to see if that matters. Is there anything that I am missing here?

Would be nice if this question could be answered? How to use Rules to add user roles based on AD group membership - Auth0 Community

function (user, context, callback) {
  // TODO: implement your rule
  var namespace = '';
  context.accessToken[namespace + 'roles'] = user.roles;
  context.accessToken[namespace + 'groups'] = user.groups;
      callback(null, user, context);

I thought the user object inside of the rules was coming from the provider and should provide everything? Inside of the user section in Auth0 it has the groups filled in. Is this a problem with Auth0 not providing the correct information?

The above code was correct, but there was another rule that was auto generated that caused the issue.

This rule been automatically generated by auth0-authz-extension
Once I disabled this rule it worked fine.