Revise the base select for groups based on user or anonymous