Update a provisioned organization membership

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

Replaces an existing provisioned user's information. You must provide all the information required for the user as if you were provisioning them for the first time. Any existing user information that you don't provide will be removed. If you want to only update a specific attribute, use the Update an attribute for a SCIM user endpoint instead.

You must at least provide the required values for the user: userName, name, and emails.

Warning: Setting active: false removes the user from the organization, deletes the external identity, and deletes the associated {scim_user_id}.

Request Body

{"userName"=>"<string>", "name"=>{"givenName"=>"<string>", "familyName"=>"<string>", "formatted"=>"<string>"}, "emails"=>[{"value"=>"<string>", "type"=>"<string>", "primary"=>"<boolean>"}], "schemas"=>["<string>", "<string>"], "displayName"=>"<string>", "externalId"=>"<string>", "groups"=>["<string>", "<string>"], "active"=>"<boolean>"}

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;}}