How to Remove a member from a group #116
-
Hi, I didn't find the method to Remove a member from a group (Remove Member) in the msgraph sdk using GoLang. I tried the following, but Delete method is not available in the latest version(v0.15.0) also : Could you please point me to an example/documentation where I can know more about this? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @anju979git requestBuilder := NewServiceAnnouncementRequestBuilder("https://graph.microsoft.com/v1.0/groups/{group-id}/members/{members-id}/$ref", requestAdapter)
requestBuilder.Delete(nil) |
Beta Was this translation helpful? Give feedback.
Hi @anju979git
Thanks for trying the Go SDK and for reaching out.
This SDK is auto-generated based on metadata, and I believe the metadata is incorrect, hence why this method is missing.
I've logged an issue in the metadata repo.
While we fix that, you can use another request builder as a workaround like so.
msgraph-sdk-go/admin/serviceannouncement/service_announcement_request_builder.go
Line 76 in 7d7ebff