Hi @Sameer Bhat ,
Hope you are doing well,
Using Graph API C# We can get the Group ID Details by passing Group Email/Displayname
Please find the below sample code
var groups = await graphClient.Groups
.Request()
.Filter("mail eq 'GroupEmail'")
.Select("id,displayName")
.GetAsync();
With the Below Graph API endpoint we can get Group ID Details
https://graph.microsoft.com/v1.0/groups?$filter=mail eq 'XXXXXXXXXXXXXXXXXXXX'&$select=id,displayName
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.