The below can be used to add a local user to a Mikrotik using a script or at the CLI
/user add name=setusername password=setpassword group=write
Just change “setusername” to the desired name and “setpassword” to the desired password (be warned this is in plain text and care needs to be taken). Then set the group to either full, read, write or the name of the custom group.