Invalid Request Using Graph Invite Endpoint - "RequireSignIn and SendInvitation cannot both be false"

Thomas Dorsey 20 Reputation points

Receiving 400 Bad Request error when attempting to use the Invite endpoint for a folder in a SharePoint document library. Request header payload has "RequireSignIn" set to true and SendInvitation set to false.

HTTP/1.1 400 Bad Request

Cache-Control: no-store, no-cache

Vary: Accept-Encoding

Strict-Transport-Security: max-age=31536000

request-id: 729043af-4f33-48e2-9706-8dc1e1b51516

client-request-id: 729043af-4f33-48e2-9706-8dc1e1b51516

x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"South Central US","Slice":"E","Ring":"5","ScaleUnit":"004","RoleInstance":"SA2PEPF00001A30"}}



Deprecation: Fri, 03 Sep 2021 23:59:59 GMT

Sunset: Sun, 01 Oct 2023 23:59:59 GMT

Date: Mon, 24 Jul 2023 16:56:14 GMT

Content-Type: application/json

Content-Encoding: gzip

Content-Length: 190

{"error":{"code":"invalidRequest","message":"RequireSignIn and SendInvitation cannot both be false","innerError":{"date":"2023-07-24T16:56:15","request


Can verify the same error is received when attempting the POST via Graph Explorer.

    "error": {
        "code": "invalidRequest",
        "message": "RequireSignIn and SendInvitation cannot both be false",
        "innerError": {
            "date": "2023-07-24T16:56:52",
            "request-id": "cb928d1b-6299-4215-bcce-b60576c46940",
            "client-request-id": "104729e1-c9d5-59a4-00d3-90ad5263ef51"



Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
9,937 questions
{count} votes

Accepted answer
  1. CarlZhao-MSFT 34,701 Reputation points

    Hi @Thomas Dorsey

    According to my tests, this error only occurs when both "RequireSignIn" and "SendInvitation" are set to false:

    User's image

    Therefore, double check your request body to make sure "RequireSignIn" and "SendInvitation" are not both set to false.

    User's image

    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.

0 additional answers

Sort by: Most helpful