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

Thomas Dorsey 20 Reputation points
2023-07-24T17:12:42.64+00:00

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"}}

Link: https://developer.microsoft-tst.com/en-us/graph/changes?$filterby=v1.0,Removal&from=2021-09-01&to=2021-10-01;rel="deprecation";type="text/html"

, https://developer.microsoft-tst.com/en-us/graph/changes?$filterby=v1.0,Removal&from=2021-09-01&to=2021-10-01;rel="deprecation";type="text/html"

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

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

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"
        }
    }
}

Thanks,

Thomas

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

Accepted answer
  1. CarlZhao-MSFT 40,311 Reputation points
    2023-07-25T09:49:47.5+00:00

    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