Thomas Segato
Thomas Segato

Reputation: 5257

Add User to Group without notifications

With the code below you can Users to a Group. Is there any way to disable notifications? I don't want this to trigger an email to the users added.

var user1 = client.Users["[email protected]"]
  .Request()
  .GetAsync()
  .Result;               

client      
  .Groups[groupId]
  .Owners
  .References
  .Request()
  .AddAsync(user1)
  .Wait();

Upvotes: 0

Views: 317

Answers (1)

Stephan
Stephan

Reputation: 2590

You are using the .net client for the Microsoft Graph. The request you're referring to is calling the Add Group Owner endpoint. This endpoint doesn't have any other requests parameters.

So the answer is No, you can't. At least not by sending a different request.

There is also a Uservoice request to enable admins to disable the email notifications when you're added to a group.

Upvotes: 2

Related Questions