Create acceptedSender

Add a new user or group to the acceptedSender list.

Specify the user or group in @odata.id in the request body. Users in the accepted senders list can post to conversations of the group . Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error.

Prerequisites

One of the following scopes is required to execute this API: Group.ReadWrite.All

HTTP request

POST /groups/{id}/acceptedSenders/$ref

Request headers

Header Value
Authorization Bearer {token}. Required.

Request body

In the request body, supply the id of a user or group object.

Response

This method returns 204, No Content response code and no response body.

Example

Request

Here is an example of the request.

POST https://graph.microsoft.com/v1.0/groups/{id}/acceptedSenders/$ref
Content-type: application/json
Content-length: 30

{
  "@odata.id":"https://graph.microsoft.com/v1.0/users/alexd@contoso.com"
}
Response

Here is an example of the response.

HTTP/1.1 204 No Content