Update an attribute for a SCIM user

PATCH {{baseUrl}}/scim/v2/organizations/:org/Users/:scim_user_id

Allows you to change a provisioned user's individual attributes. To change a user's values, you must provide a specific Operations JSON format that contains at least one of the add, remove, or replace operations. For examples and more information on the SCIM operations format, see the SCIM specification.

Note: Complicated SCIM path selectors that include filters are not supported. For example, a path selector defined as "path": "emails[type eq \"work\"]" will not work.

Warning: If you set active:false using the replace operation (as shown in the JSON example below), it removes the user from the organization, deletes the external identity, and deletes the associated :scim_user_id.

{
  "Operations":[{
    "op":"replace",
    "value":{
      "active":false
    }
  }]
}

Request Body

{"Operations"=>[{"op"=>"<string>", "path"=>"<string>", "value"=>{"active"=>"<boolean>", "userName"=>"<string>", "externalId"=>"<string>", "givenName"=>"<string>", "familyName"=>"<string>"}}], "schemas"=>["<string>", "<string>"]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;schemas&quot;:[&quot;urn:ietf:params:scim:schemas:core:2.0:User&quot;],&quot;id&quot;:&quot;edefdfedf-050c-11e7-8d32&quot;,&quot;externalId&quot;:&quot;a7d0f98382&quot;,&quot;userName&quot;:&quot;mona.octocat@okta.example.com&quot;,&quot;displayName&quot;:&quot;Monalisa Octocat&quot;,&quot;name&quot;:{&quot;givenName&quot;:&quot;Monalisa&quot;,&quot;familyName&quot;:&quot;Octocat&quot;,&quot;formatted&quot;:&quot;Monalisa Octocat&quot;},&quot;emails&quot;:[{&quot;value&quot;:&quot;mona.octocat@okta.example.com&quot;,&quot;primary&quot;:true},{&quot;value&quot;:&quot;monalisa@octocat.github.com&quot;}],&quot;active&quot;:true,&quot;meta&quot;:{&quot;resourceType&quot;:&quot;User&quot;,&quot;created&quot;:&quot;2017-03-09T16:11:13-05:00&quot;,&quot;lastModified&quot;:&quot;2017-03-09T16:11:13-05:00&quot;,&quot;location&quot;:&quot;https://api.github.com/scim/v2/organizations/octo-org/Users/edefdfedf-050c-11e7-8d32&quot;}}