Fix handling of groups when creating a new user
Update restdoc