Update user in the target IDM

patch

/userManagement/v1/user/{id}

This operation updates the existing user in the target IDM.

Request

Path Parameters
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
User update request from upstream spoke system
Show Source
Nested Schema : Operations
Type: array
Show Source
Nested Schema : Operation
Type: object
Show Source
Nested Schema : value
Type: object
value to be updated
Example:
{
    "familyName":"Jensen",
    "givenName":"Barbara",
    "middleName":"Jane",
    "honorificPrefix":"Ms.",
    "honorificSuffix":"III"
}
Back to Top

Response

Supported Media Types

200 Response

User updated succesfully in target IDM
Body ()
Root Schema : UserResponseObject
Type: object
Show Source
Nested Schema : customAttributes
Type: object
Additional Properties Allowed: true
Custom attributes, extenstions to core SCIM 2 schema used in the target IAM.
Example:
{
    "subscriberName":"BJEN",
    "subscriberAccount":{
        "id":"SUB_1",
        "type":"Account"
    }
}
Nested Schema : scimAttributes
Type: object
Additional Properties Allowed: true
Core SCIM 2 attributes as per RFC7643
Example:
{
    "userName":"bjensen@example.com",
    "displayName":"Babs Jensen",
    "nickName":"Babs",
    "name":{
        "familyName":"Jensen",
        "givenName":"Barbara",
        "middleName":"Jane",
        "honorificPrefix":"Ms.",
        "honorificSuffix":"III"
    },
    "emails":[
        {
            "value":"bjensen@example.com",
            "type":"work",
            "primary":true
        },
        {
            "value":"babs@jensen.org",
            "type":"home"
        }
    ]
}

400 Response

Request validation failed
Body ()
Root Schema : Error
Type: object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)
Show Source

401 Response

Authorization failure. The authorization header is invalid or missing
Body ()
Root Schema : Error
Type: object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)
Show Source

403 Response

Operation is not permitted based on the supplied authorization.
Body ()
Root Schema : Error
Type: object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)
Show Source

405 Response

PATCH Operation is not supported in target IDP.
Body ()
Root Schema : Error
Type: object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)
Show Source

500 Response

Internal Server Error
Body ()
Root Schema : Error
Type: object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)
Show Source
Back to Top

Examples

The following example shows how to update a workspace client by submitting a PATCH request on the REST resource using cURL.

cURL Command

curl -H 'Authorization: Bearer <Token>' -X PATCH https://{FABRIC_HOST}/userManagement/v1/user/{id} -H "Content-Type: application/json" -D @update_usermanagement.json| json_pp

Example of Request Body

The following shows an example of the request body in JSON format.

{
  "profile": "subscriber",
  "Operations": [
    {
      "operation": "replace",
      "path": "scimAttributes:name",
      "value": {
        "givenName": "veerendra",
        "familyName": "patil"
      }
    },
    {
      "operation": "add",
      "path": "customAttributes:userKey",
      "value": "123456"
    },
    {
      "operation": "remove",
      "path": "customAttributes:workspace"
    }
  ]
}

Example of Response Body

The following shows an example of the response body in JSON format.

{
  "profile": "subscriber",
  "scimAttributes": {
    "userName": "anything",
    "name": {
      "givenName": "veerendra",
      "familyName": "patil",
      "formatted": "veerendra patil"
    },
    "emails": [
      {
        "value": "test@example.com",
        "type": "work",
        "primary": true
      }
    ]
  },
  "customAttributes": {
    "userKey": "123456"
  }
}
Back to Top