Hi @Akshith Reddy Thalla,
The parameter groupId is the id of a Microsoft 365 group. You can see all your groups via Microsoft 365 admin center >> Active teams & groups.
With the Below Graph API endpoint, we can get Group ID details by group mail.
https://graph.microsoft.com/v1.0/groups?$filter=mail eq 'XXX'&$select=id,displayName
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.