I've done a fair amount of research but either I'm having trouble formulating the context to create relevant results or the information is hard to find.
I have a production ubuntu 16.04 server attached to a domain with SSSD. When a cronjob runs in a user's crontab it creates the output file with the the correct username but with the incorrect group. The output is created with group owner "Domain Group" instead of the folder's gid set with chgrp chgrp "correct domain group" /foldername. Files that are manually created and automatically created by manually invoking the script /bin/bash /path/to/script.sh create the file output with the correct user and group owners.
The desired outcome is to have the file created with the correct group owner without having to sort of hack together chmod after the output is created.