wgUI is a python UI/library for using wireguard. It allows the managment of users and creation of user config files. The private key for the users is never written to disk.
I created this script to run on the server as it needs to have access to the config file but alternatives may be possible.
Example 1 is a random config file used to try out the script Example 2 is the same as Example1 except that I ran the setup wizard on the script so that it shows the additional fields.