An auto admin account can be created on macOS at enrollment time. Macs must be enrolled through Automated Device Enrollment (ADE) to use this feature.
To set up an auto admin account, create or open a macOS ADE enrollment profile and enable the Auto Admin Account option.
Auto Admin Short Name
This will be the "short name" or username of the auto admin account. It will be the username used to log into the account if it's hidden from the login window, and will be the name of its user folder.
Auto Admin Full Name
This is optional, and is the auto admin account's full displayed name.
Auto Admin Password
If you provide a password, it will be used as the auto admin account's password for all devices enrolled through the ADE profile. Otherwise, a random password will be generated for each device, and it will be periodically changed automatically.
In either case, you can view the current auto admin password for an enrolled Mac under the Users tab on its device detail page.
Hide auto admin account from login window
If this option is selected, then the auto admin account will be hidden from the user list on the login window, and you will need to type the username to log into it. The user will also be hidden from the Users section in System Settings.
The account's existence will not be completely concealed. For example, its home folder can still be seen under /Users by anyone logged into the system.
Don't grant administrative privileges to user account created in Setup Assistant
Normally, the user account that's created via first-time setup through Setup Assistant will be granted administrative privileges automatically. If you enable this option, then the Setup Assistant created account will be a standard user, and the auto admin will be the only admin account on the Mac.