Fixes #18763 -- Added with_perm to User manager.

Should be ready for a review.
as noted in other PR, think we can omit a newline before a single assert