Ansible Tower Inventory clarification

How will I specify the credentials to be used for a group of machines using ansible tower UI. if it is single machine, I can create a credential and select it in template. if it is a group of machine, Do I need to use the same username on all machines??