Hello @MOD Administrator ,
Thanks for reaching Microsoft QnA, it seems from your query the API https://groups.microsoft.com/beta/termStore/groups
is wrongly referred, it should be graph.microsoft.com not groups.microsoft.com https://graph.microsoft.com/beta/termStore/groups
.
By using GET https://graph.microsoft.com/beta/termStore/groups
I am successfully able to get term store groups, please refer to my test result below.
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".