FYI - This is already possible using the form alter hook. I added how to do this to the Embedding Media With CKEditor documents a couple of years ago. See:
Haven't tried it yet, but don't see why this will not work for CKEditor 5 as well.
Perhaps the focus of this issue should be to add tests to ensure that code using this method does not break.
Semi old request but in case anyone has a need like this there is a module that will do what the requestor asks for:
https://www.drupal.org/project/user_expire β
No need to add code to this module.
cgmonroe β created an issue.
Hmm, not sure why the token test failed. Trying a different variation that just skips setting the name if the originame parameter does not exist.
Patch to fix this problem
cgmonroe β created an issue.