If you want only a certain group to access an assignment, you need to create a group in the GROUP OPERATIONS menu in the COURSE INFORMATION tab. Later, while making the HOMEWORK settings, you need to select the group you created in the access section.
Click to watch “group creation” video.