How to add a new user to the users table without being an administrator?

I am using static user levels.

The current userlevel is 1, witch has full access to the users table (List, Add, Del…)

The new userlevel pretending to add is 2, a user with fewer permissions and, of course, no access to the users table.

When I try to add the new user, I get a message stating that current user (1) is not authorized to assing the id user ()

Using the Administrator account (-1 userlevel) works correctly

How can do it?

Only administrators can manage the user table. However, if you make sure that it is safe for your project, you can create a view from the user table and insert records via the view. (Single table view is updatable.)

Yes, it works. I’m not entirely convinced by that approach, but it works for me for now.

Thanks for the guidance!