Is there a standard procedure to do this?
And (if not) how do I get the encrypted password?
You could use code like this one from an old forum post:
https://forums.modx.com/thread/97372/adding-users-programmatically
I think this should still work.
Maybe with MODX 3 you have to use the fully qualified class names (e.g. $modx->newObject('MODX\\Revolution\\modUser')
instead of $modx->newObject('modUser')
).
Many thnx. This works.