Add, Update or Remove User Information
patch
/rest/v16/scim/users/{id}
This endpoint performs an operation to add user information, update existing user information or remove existing user information for a specified user. The endpoint supports a single operation request or multiple operation requests performed sequentially.
Request
Supported Media Types
- application/json
- application/scim+json
Path Parameters
-
id(required): string
ID of the user
Root Schema : Patch request model
Type:
object
Title:
Patch request model
Request to update a user with minimal user payload
Show Source
-
Operations(required):
array Operations
Title:
Operations
update patch operation
Nested Schema : Operations
Type:
array
Title:
Operations
update patch operation
Show Source
-
Array of:
object Collab queue operation properties
Title:
Collab queue operation properties
Nested Schema : Collab queue operation properties
Type:
object
Title:
Show Source
Collab queue operation properties
-
description:
string
Title:
Description
Description of the operation. This is only intended for human consumption and its format may change at any time. -
submissionTime:
string
Title:
Submission time
Approximate time when the operation was submitted, in ISO8601 format. This is NOT used to determine the ordering of operations within the queue. -
submitterCompanyName:
string
Title:
Submitter company name
Company name of the user who submitted the operation. -
submitterLoginName:
string
Title:
Submitter login name
Login name of the user who submitted the operation. -
uuid:
string
Title:
Operation uuid
Unique identifier of the operation.
Response
Supported Media Types
- application/json
Default Response
Response of the updated user.
Root Schema : user-response
Type:
Show Source
object
-
active:
boolean
Title:
User status
Status of the User -
emails:
array Email
Title:
Email
Email of the User -
enterpriseUser:
object enterpriseUser
-
extensionUser:
object extensionUser
-
id:
string
Title:
Unique resource Id of the User
Unique resource Id of the User -
meta:
object metaData
-
name:
object Name
Title:
Name
Full name of the user -
phoneNumbers:
array Phone Numbers
Title:
Phone Numbers
Phone numbers of the User -
preferredLanguage:
string
Title:
Preferred Language
Preferred language of the User -
schemas:
array Schemas
Title:
Schemas
Schemas used in the response -
timezone:
string
Title:
timezone
Time zone of the user -
title:
string
Title:
Job title of the User
Job title of the User -
userName:
string
Title:
Username
Login Name of the user
Nested Schema : enterpriseUser
Type:
Show Source
object
-
organization:
string
Title:
Organization
company name of the user
Nested Schema : extensionUser
Type:
Show Source
object
-
addresses:
array addresses
-
approvalDelegate:
string
Title:
Approval Delegate
Approval Delegate -
currency:
string
Title:
Currency Code
Preferred Currency Code of the user -
dateFormat:
integer
Title:
Date Format Id
Date Format Id -
enabledForSso:
string
Title:
Enabled For SSO
Enabled For SSO -
externalSsoId:
string
Title:
externalSsoId
External SSO Id -
fax:
string
Title:
Fax Number
Fax of the user -
isAccessAdminPermEnabled:
boolean
Title:
Access Admin Permission Enabled
Access Admin Permission Enabled -
isNotifyEmail:
boolean
Title:
Is Notification Preference Email
Is Notification Preference Email -
isNotifyFax:
boolean
Title:
Is Notification Preference Fax
Is Notification preference Fax -
isProxyPermEnabled:
boolean
Title:
Proxy permission enabled
Proxy permission enabled -
isSuperUserPermEnabled:
boolean
Title:
Is Superuser Permission Enabled
Is Superuser Permission Enabled -
isWebServicesOnly:
boolean
Title:
Web Services Only
Web Services Only -
numberFormat:
integer
Title:
Number Format Id
Number Format Id -
partnerLogin:
string
Title:
Partner Login
Partner Login of the user -
SeparateShipAddr:
boolean
Title:
Separate ship address
Separate ship address -
sfdcOrgId:
string
Title:
Sfdc Organization ID
Sfdc Organization ID -
units:
integer
Title:
Units
Units -
userType:
string
Title:
Type of the user
Type of the user
Nested Schema : metaData
Type:
Show Source
object
-
created:
string
Title:
Created date
Created date of the user -
lastModified:
string
Title:
LastModified
LastModified date of the user -
location:
string
Title:
location
Location of the resource -
resourceType:
string
Title:
ResourceType
Type of the resource -
version:
string
Title:
version
Version of the resource
Nested Schema : Name
Type:
object
Title:
Name
Full name of the user
Show Source
-
familyName:
string
Title:
FamilyName
Last Name of the user -
givenName(required):
string
Title:
GivenName
First name of the user
Nested Schema : Phone Numbers
Type:
array
Title:
Phone Numbers
Phone numbers of the User
Show Source
Nested Schema : email
Type:
Show Source
object
-
primary:
boolean
Title:
primary
Whether email is primary or not -
type:
string
Title:
type
Type of the email -
value(required):
string
Title:
value
value of the email
Nested Schema : address
Type:
Show Source
object
-
address1:
string
Title:
Shipping/Billing Address 1
Shipping/Billing Address 1 -
address2:
string
Title:
Shipping/Billing Address 2
Shipping/Billing Address 2 -
companyName:
string
Title:
Shipping/Billing Company
Shipping/Billing Company -
companyName2:
string
Title:
Shipping/Billing Company2
Shipping/Billing Company2 -
country:
string
Title:
Shipping/Billing Country
Shipping/Billing Country -
email:
string
Title:
Shipping/Billing Email
Shipping/Billing Email -
fax:
string
Title:
Shipping/Billing Fax
Shipping/Billing Fax -
locality:
string
Title:
Shipping/Billing Locality
Shipping/Billing Locality -
name:
object Shipping/Billing Full name
Title:
Shipping/Billing Full name
Shipping/Billing Full name -
phone:
string
Title:
Shipping/Billing Phone
Shipping/Billing Phone -
postalCode:
string
Title:
Shipping/Billing Postal Code
Shipping/Billing Postal Code -
region:
string
Title:
Shipping/Billing Region
Shipping/Billing Region -
type:
string
Title:
Address Type
Allowed Values:[ "BILL_TO", "SHIP_TO" ]
Address Type
Nested Schema : Shipping/Billing Full name
Type:
object
Title:
Shipping/Billing Full name
Shipping/Billing Full name
Show Source
-
familyName:
string
Title:
Shipping/Billing FamilyName
Shipping/Billing FamilyName -
givenName:
string
Title:
Shipping/Billing GivenName
Shipping/Billing GivenName
Nested Schema : phoneNumber
Type:
Show Source
object
-
primary:
boolean
Title:
primary
Whether phone number is primary or not -
type:
string
Title:
type
Type of the phone number -
value:
string
Title:
value
value of the phone number
Examples
The following example shows how to add user information, update existing user information, or remove existing user information by submitting a PATCH request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X POST -i -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" -H "Accept: application/json" https://sitename.oracle.com/rest/v16/scim/users/559a595d-fa7b-43b1-853b-f4ff30b779de
Request Body Sample
{ "schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"], "operations": [{ "op": "replace", "value": { "active": true } }, { "op": "remove", "path": "phoneNumbers" }, { "op": "add", "path": "name", "value": { "familyName": "jones", "givenName": "lisa" } }, { "op": "replace", "path": "urn:ietf:params:scim:schemas:extension:oracle:2.0:CPQ:User", "value": { "userType": "FULLACCESS1", "addresses": [{ "country": "UK", "name": { "familyName": "jones", "givenName": "lisa" } } ] } }, { "op": "remove", "path": "urn:ietf:params:scim:schemas:extension:oracle:2.0:CPQ:User.addresses.name.givenName" }, { "op": "add", "path": "urn:ietf:params:scim:schemas:extension:oracle:2.0:CPQ:User.addresses[type eq \"SHIP_TO\" and country eq \"UK\" ]", "value": [{ "country": "JPN", "name": { "familyName": "jones", "givenName": "lisa" } } ] } ] }
Response Body Sample
{ "schemas": [ "urn:ietf:params:scim:schemas:extension:oracle:2.0:CPQ:User", "urn:ietf:params:scim:schemas:core:2.0:User", "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User" ], "id": "559a595d-fa7b-43b1-853b-f4ff30b779de", "meta": { "resourceType": "User", "created": "2023-01-12T00:49:54.000Z", "lastModified": "2023-01-12T00:49:55.000Z", "version": "v15", "location": "http://sitename.oracle.com/rest/v16/scim/users/559a595d-fa7b-43b1-853b-f4ff30b779de" }, "userName": "lisaJones", "emails": [ { "value": "lisa.jones@companyemail.com", "type": "WORK", "primary": true } ], "active": true, "preferredLanguage": "en_US", "name": { "familyName": "jones", "givenName": "lisa" }, "title": "FullAccess User", "timezone": "America/New_York", "urn:ietf:params:scim:schemas:extension:oracle:2.0:CPQ:User": { "userType": "FULL_ACCESS", "currency": "EUR", "dateFormat": 3, "numberFormat": 0, "units": 1, "enabledForSso": "SSO_ENABLED", "separateShipaddr": false, "addresses": [ { "type": "BILL_TO", "name": { "familyName": "jones", "givenName": "lisa" }, "address1": "2 waters park dr", "address2": "Po2 suite 240-2", "locality": "SanMateo", "companyName": "PO2", "region": "California", "postalCode": "94403", "country": "UK", "phone": "650-403-6322", "fax": "650-403-6322", "email": "lisa.jones@companyemail.com" }, { "type": "SHIP_TO", "name": { "familyName": "jones", "givenName": "lisa" }, "address1": "2 waters park dr", "address2": "Po2 suite 240-2", "locality": "SanMateo", "companyName": "po2", "region": "California", "postalCode": "94403", "country": "JPN", "phone": "650-403-6322", "fax": "650-403-6322", "email": "lisa.jones@companyemail.com" } ], "isNotifyEmail": false, "isSuperUserPermEnabled": false, "isAccessAdminPermEnabled": false, "isProxyPermEnabled": false, "isNotifyFax": false, "isWebServicesOnly": false }, "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User": { "organization": "phoenix60388" } }