How to add FreeBSD users/groups with whitespaces in the name, so NFSv4 and SAMBA can use them?

From: Aurélien_Couderc <aurelien.couderc2002_at_gmail.com>
Date: Sun, 15 Mar 2026 09:45:00 UTC
Both SAMBA and NFSv4 have to deal with user and group names with
<space> in their strings.
Common example is the Windows/OSX "Domain Users".

Is there any solution in FreeBSD pw to add such groups and users?
Because pw groupadd group -n 'Domain_Users' -g 2016029 does not work.

Aurélien
-- 
Aurélien Couderc <aurelien.couderc2002@gmail.com>
Big Data/Data mining expert, chess enthusiast