Hello @Rising Flight,
Thank you for reaching out to Microsoft Q&A Community.
You should remove the quotes around the roles key. The right syntax should be roles = @("owner"), not "roles" = @("owner"). You can find more details in New-MgChatMember
Hope this information is helpful. Please feel free to reach out again if you need any help.
Looking forward to your response.
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.