“Argument “content” is null” when pushing groups

Currently trying to implement SCIM provisioning and I’m getting the following error when pushing groups in the management console:

Unable to update Group Push mapping target App group test group 0000: 
Error while updating user group membership for group test group 0000: 
argument "content" is null

This appears to be the exact same problem as this thread, although I’m not entirely sure how the OP managed to fix their problem. I assume the error is caused by a follow-up request by Okta but it sounds like I might not be returning the correct JSON?

My steps are:

  • Create a new group in the Okta management console
  • Push the group to my test application

I can see the request being made to the Groups/create route in my SCIM server:

{
    "schemas": [
        "urn:ietf:params:scim:schemas:core:2.0:Group"
    ],
    "displayName": "test group 0000",
    "members": []
}

and the response being returned:

{
    "members": [],
    "schemas": [
        "urn:ietf:params:scim:schemas:core:2.0:Group"
    ],
    "displayName": "test group 0000",
    "id": "a2dfb9ba-3d8f-4ba9-ad6f-b7253c1ee123",
    "meta": {
        "resourceType": "Group"
    }
}

This sems to be in line with the Okta SCIM documentation. Note that the group appears to be successfully created.

Does anyone have any idea what I might be doing wrong?

Fixed. For anyone with the same problem: Even though you return a Group object from the create request, Okta will make a follow up GET request to your SCIM server to Groups/{groupId}. Make sure this route is actually returning data and externally accessible! :person_facepalming:

2 Likes

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