Username change for certain group members

I would like that users who are part of certain groups can not change their username once they get added to the group. Is it possible to do this?

No, there aren’t any settings for that. Could you just globally disable username changes by changing the username change period setting? Otherwise you’d need a custom plugin.