Hi @Ankitha Kini ,
You can use the following endpoint to get files shared with a group.
GET /groups/{groupId}/drive/sharedWithMe
Refer to the documentation drive-sharedwithme.
Hope this helps.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".