Within a group, your role is defined as the way you communicate with others in your group.
The way a person behaves, the position, the way the person interacts with the rest of the members of the group determines the role that this person would perform. Leadership, expectations from the other members of the group, assignment etc.