Merge in the required change for the QueryPermissionsMethod