GroupOrbits
GroupOrbits[group, {p1, …}] returns the orbits of the points pi under the action of the elements of group.
GroupOrbits[group, {p1, …}, f]finds the orbits under the group action given by a functionf.
Examples
GroupOrbits[SymmetricGroup[4], {1, 2, 3, 4}]GroupOrbits[CyclicGroup[3], Range[6]]Please visit the official Wolfram Language Reference for more details.