Replace user attribute values in the target IDM
/userManagement/v1/user/{id}
Request
-
id(required): string
User ID provided by target IAM system maps to SCIM User resource "id" attribute
- application/json
object-
customAttributes: object
customAttributes
Additional Properties Allowed:
trueCustom attributes, extenstions to core SCIM 2 schema used in the target IAM. -
profile(required): string
User profile as per BuyingExample:
Subscriber -
scimAttributes(required): object
scimAttributes
Additional Properties Allowed:
trueCore SCIM 2 attributes as per RFC7643
objecttrue{
"subscriberName":"BJEN",
"subscriberAccount":{
"id":"SUB_1",
"type":"Account"
}
}objecttrue{
"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"
}
]
}Response
- application/json
- application/json;charset=utf-8
200 Response
object-
customAttributes: object
customAttributes
Additional Properties Allowed:
trueCustom attributes, extenstions to core SCIM 2 schema used in the target IAM. -
id: string
Unique identification of the user as created in the target systemExample:
User_ID1 -
profile: string
User profile as per BuyingExample:
Subscriber -
scimAttributes: object
scimAttributes
Additional Properties Allowed:
trueCore SCIM 2 attributes as per RFC7643
objecttrue{
"subscriberName":"BJEN",
"subscriberAccount":{
"id":"SUB_1",
"type":"Account"
}
}objecttrue{
"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
object-
@baseType: string
When sub-classing, this defines the super-class.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name.
-
code(required): string
Application relevant detail, defined in the API or a common list.
-
message: string
More details and corrective actions related to the error which can be shown to a client user.
-
reason(required): string
Explanation of the reason for the error which can be shown to a client user.
-
referenceError: string
(uri)
URI of documentation describing the error.
-
status: string
HTTP Error code extension
401 Response
object-
@baseType: string
When sub-classing, this defines the super-class.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name.
-
code(required): string
Application relevant detail, defined in the API or a common list.
-
message: string
More details and corrective actions related to the error which can be shown to a client user.
-
reason(required): string
Explanation of the reason for the error which can be shown to a client user.
-
referenceError: string
(uri)
URI of documentation describing the error.
-
status: string
HTTP Error code extension
403 Response
object-
@baseType: string
When sub-classing, this defines the super-class.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name.
-
code(required): string
Application relevant detail, defined in the API or a common list.
-
message: string
More details and corrective actions related to the error which can be shown to a client user.
-
reason(required): string
Explanation of the reason for the error which can be shown to a client user.
-
referenceError: string
(uri)
URI of documentation describing the error.
-
status: string
HTTP Error code extension
500 Response
object-
@baseType: string
When sub-classing, this defines the super-class.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name.
-
code(required): string
Application relevant detail, defined in the API or a common list.
-
message: string
More details and corrective actions related to the error which can be shown to a client user.
-
reason(required): string
Explanation of the reason for the error which can be shown to a client user.
-
referenceError: string
(uri)
URI of documentation describing the error.
-
status: string
HTTP Error code extension
Examples
The following example shows how to create or update an user by submitting a PUT request on the REST resource using cURL.
cURL Command
curl -H 'Authorization: Bearer <Token>' -X PUT
https://{FABRIC_HOST}/userManagement/v1/user/{id} -H
"Content-Type: application/json" -D @create_update_usermanagement.json|
json_pp
Example of Request Body
The following shows an example of the request body in JSON format.
{
"profile": "Subscriber",
"scimAttributes": {
"userName": "bjensen@example.com",
"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"
}
]
},
"customAttributes": {
"userKey": "BJEN1"
}
}
Example of Response Body
-
The following shows an example of the response body in JSON format.
{ "id":"User_ID1", "profile":"Subscriber", "scimAttributes":{ "userName":"bjensen@example.com", "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" } ] }, "customAttributes":{ "userKey": "BJEN1" } } -
SCIM configuration not found.
The following shows an example of the response body in JSON format.
{ "code": "CXI_SCIM_0002", "message": "SCIM configuration not found", "reason": "SCIM configuration not found", "status": "", "referenceError": "" } -
No associated configuration for the passed user profile.
The following shows an example of the response body in JSON format.
{ "code": "CXI_SCIM_0003", "message": "Configuration not found for user profile", "reason": "Configuration not found for user profile", "status": "", "referenceError": "" } -
Request validation failed as a required attribute is missing in the request.
The following shows an example of the response body in JSON format.
{ "code": "CXI_SCIM_0004", "message": "Required attribute missing in the request", "reason": "Required attribute missing in the request", "status": "", "referenceError": "" } -
Target IAM is down or unreachable.
The following shows an example of the response body in JSON format.
{ "code": "CXI_SCIM_0005", "message": "Target IAM system not reachable", "reason": "Target IAM system not reachable", "status": "", "referenceError": "" }