For the users, it’s almost a simple button. (Though it’s a little difficult to find because usually you don’t visit group pages. You could probably reverse engineer the API and create a component with a button that does the same at a different place).
But the user can only select a query and run it: