How to add all of the users who viewed a file to a group
Step 1: Click on the desired file's viewer list icon

Step 2: Select the users you would like to add to a group

Step 3: Click on the "Add users to group" icon

Step 4: Select the desired group to add the users to

You can also add users to a group from the project user section.