SCIM 2.0

Update a user

replace, add, remove operations; active: false deactivates the user (mobile sessions and API keys are revoked, records stay; the last active admin can't be deactivated). active: true needs a free seat.

PATCH/api/scim/v2/Users/{id}

Authorization

Authorizationheaderrequired
SCIM key (Settings → Apps → SCIM).

Path parameters

idstringrequired
User id.
Request
curl -X PATCH https://ornek.solk.app/api/scim/v2/Users/2 \
  -H "Authorization: Bearer $SCIM_TOKEN" \
  -H "Content-Type: application/scim+json" \
  -d '{
  "schemas": [
    "urn:ietf:params:scim:api:messages:2.0:PatchOp"
  ],
  "Operations": [
    {
      "op": "replace",
      "path": "active",
      "value": false
    }
  ]
}'
Response
{
  "schemas": [
    "urn:ietf:params:scim:schemas:core:2.0:User",
    "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"
  ],
  "id": "2",
  "userName": "ayse.demir@ornekkimya.com.tr",
  "displayName": "Ayşe Demir",
  "name": {
    "formatted": "Ayşe Demir",
    "givenName": "Ayşe",
    "familyName": "Demir"
  },
  "active": false,
  "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User": {
    "department": "Satış"
  },
  "meta": {
    "resourceType": "User",
    "location": "https://ornek.solk.app/api/scim/v2/Users/2"
  },
  "emails": [
    {
      "value": "ayse.demir@ornekkimya.com.tr",
      "type": "work",
      "primary": true
    }
  ]
}

Example responses were captured from a v22 installation running sample data; lists are shortened to two items.