Ambari provides an option to have the users created automatically post user creation as mentioned in the following doc
It can be done by enabling the following property inside the "/etc/ambari-server/conf/ambari.properties"
Add the script path to the ambari properties file:
Followed by Ambari Server Restart.
# ambari-server restart