Sample Message Exchange — Creating and adding the user to a group

Request

POST /scim/v1/mypharma/Bulk HTTP 1.1
Host: example.com
Authorization: Basic Y3VzdG9tZXIuYWRtaW51c2VyOnBhc3N3b3Jk=
Accept: application/json
Content-Type: application/json
Content-Length: ...
{
    "schemas" : [
        "urn:scim:schemas:core:2.0:BulkRequest"
    ],
    "failOnErrors" : 1,
    "Operations" : [
        {
            "method" : "POST",
            "path" : "/Users",
            "bulkId" : "qwerty",
            "data" : {
                "schemas" : [
                    "urn:scim:schemas:core:2.0:User"
                ],
                "externalId" : "bulk.user@mypharma.com",
                "userName" : "bulk.user@mypharma.com",
                "name" : {
                    "familyName" : "User",
                    "givenName" : "Bulk"
                },
                "emails" : [
                    {
                        "value" : "bulk.user@mypharma.com",
                        "type" : "work"
                    }
                ],
                "password" : "Password1"
            }
        },
        {
            "method" : "PATCH",
            "path" : "/Groups/mypharma.lshdme",
            "data" : {
                "op" : "add",
                "path" : "members",
                "value" : [
                    {
                        "value" : "bulkId:qwerty"
                    }
                ]
            }
        }
    ]
}

Response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: ...
{
    "schemas" : [
        "urn:scim:schemas:core:2.0:BulkResponse"
    ],
    "Operations" : [
        {
            "location" : "http://hs-identity-api.oracleindustry.com/scim/v1/mypharma/Users/c1f6f0df5e80498bb0d34c62b27694c9",
            "method" : "POST",
            "bulkId" : "qwerty", 
            "path" : "/Users",
            "status" : {
                "code" : "201"
            }
        },
        {
            "method" : "PATCH",
            "path" : "/Groups/mypharma.lshdme",
             "status" : {
                "code" : "200"
            }
        }
    ]
}