"Argument "content" is null" when pushing groups

I am implementing SCIM provisioning to push users and groups from my Okta dev instance into my application. When I try to push the group via the admin console, I get the error:

Unable to update Group Push mapping target App group The Expanse: Error while updating user group membership for group The-Expanse: argument “content” is null

I can’t tell what “content” is in this context.

Logging the request I can see that this is the POST that is coming into my app from Okta:

{
  "schemas": [
    "urn:ietf:params:scim:schemas:core:2.0:Group"
  ],
  "displayName": "The Expanse",
  "members": [
    {
      "value": "1035",
      "display": "eheinlein+ab@mydomain.com"
    },
    {
      "value": "1034",
      "display": "eheinlein+jh@mydomain.com"
    },
    {
      "value": "1036",
      "display": "eheinlein+ca@mydomain.com"
    },
    {
      "value": "1038",
      "display": "eheinlein+nn@mydomain.com"
    },
    {
      "value": "1037",
      "display": "eheinlein+ak@mydomain.com"
    }
  ]
}

I can confirm that the group is successfully created, and my app returns a 201 Created with a Group body (which does include the group ID):

{
    "displayName": "The-Expanse",
    "schemas": [
        "urn:ietf:params:scim:schemas:core:2.0:Group"
    ],
    "members": [
        {
            "display": "James Holden",
            "value": "1034",
            "$ref": "/scim/v2/Users/1034"
        },
        {
            "display": "Amos Burton",
            "value": "1035",
            "$ref": "/scim/v2/Users/1035"
        },
        {
            "display": "Chrisjen Avasarala",
            "value": "1036",
            "$ref": "/scim/v2/Users/1036"
        },
        {
            "display": "Alex Kamal",
            "value": "1037",
            "$ref": "/scim/v2/Users/1037"
        },
        {
            "display": "Naomi Nagata",
            "value": "1038",
            "$ref": "/scim/v2/Users/1038"
        }
    ],
    "id": "a8287417-3e1f-486f-879f-38ad821d23b1"
}

What is the “content” argument that the error message is referring to?

Update: figured it out! The issue wasn’t with the POST to create the group, but with the follow up GET to get the group by an ID. I had introduced a bug on my side that caused the group to not be returned. Fixing that bug resolved the group sync.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.