Hi @chenzhixin
Make sure you have one of the Group.Read.All
or Group.ReadWrite.All
delegated permissions. Additionally, the logged in user must be the owner of the group.
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.