You can access the configuration settings of the Group By Widget by clicking on the three dots in the top right corner of the widget and selecting Settings.
The Group By Widget saves your configured settings permanently. Your configuration persists even if you change items or groupings on the board. You can change the settings of your widget at any time.