On permutation properties in groups and semigroups