Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Updating a User

Function

This API is used to update a user.

URI

PUT /{tenant_id}/scim/v2/Users/{user_id}

Table 1 Path parameters

Parameter

Mandatory

Type

Description

tenant_id

Yes

String

Globally unique ID of a tenant

user_id

Yes

String

Globally unique ID of a user

Request Parameters

Table 2 Parameters in the request header

Parameter

Mandatory

Type

Description

Authorization

Yes

String

Bearer token

Table 3 Parameters in the request body

Parameter

Mandatory

Type

Description

id

No

String

Globally unique ID of a user

externalId

No

String

External ID

userName

No

String

Username, which uniquely identifies a user

name

No

Object

Name of a user

displayName

No

String

Display name of a user

nickName

No

String

Nickname of a user

profileUrl

No

String

URL associated with a user

emails

No

Array of objects

Email addresses of a user

addresses

No

Array of objects

Addresses of a user

phoneNumbers

No

Array of objects

Phone numbers of a user

userType

No

String

User type

title

No

String

User title

preferredLanguage

No

String

User's preferred language

locale

No

String

Geographical area or location of a user

timezone

No

String

Time zone of a user

active

No

Boolean

Whether a user is enabled

schemas

No

Array of strings

Summary

urn:ietf:params:scim:schemas:extension:enterprise:2.0:User

No

Object

Object that contains the user's work-related information

Table 4 name

Parameter

Mandatory

Type

Description

formatted

No

String

Formatted name to be displayed

familyName

No

String

Family name of a user

givenName

No

String

Given name of a user

middleName

No

String

Middle name of a user

honorificPrefix

No

String

Prefix of a user name

honorificSuffix

No

String

Suffix of a user name

Table 5 emails

Parameter

Mandatory

Type

Description

value

Yes

String

Email address

type

No

String

Email address type

primary

Yes

Boolean

Whether the value is the user's primary email address

Table 6 addresses

Parameter

Mandatory

Type

Description

formatted

No

String

Formatted address to be displayed

streetAddress

No

String

Street

locality

No

String

Location

region

No

String

Region

postalCode

No

String

Postal code

country

No

String

Country or region

type

No

String

Address type

primary

No

Boolean

Whether the address is the user's primary address

Table 7 phoneNumbers

Parameter

Mandatory

Type

Description

value

No

String

Phone number

type

No

String

Phone number type

primary

No

Boolean

Whether the value is the user's primary phone number

Table 8 urn:ietf:params:scim:schemas:extension:enterprise:2.0:User

Parameter

Mandatory

Type

Description

costCenter

No

String

Cost center

Minimum length: 1

Maximum length: 1024

department

No

String

Department

Minimum length: 1

Maximum length: 1024

division

No

String

Division

Minimum length: 1

Maximum length: 1024

employeeNumber

No

String

Employee ID

Minimum length: 1

Maximum length: 1024

manager

No

Object

Manager

organization

No

String

Organization

Minimum length: 1

Maximum length: 1024

Table 9 manager

Parameter

Mandatory

Type

Description

value

No

String

Manager

Minimum length: 1

Maximum length: 1024

Response Parameters

Status code: 200

Table 10 Parameters in the response body

Parameter

Type

Description

id

String

Globally unique ID of a user

externalId

String

External ID

meta

Object

Metadata

schemas

Array of strings

Summary

userName

String

Username, which uniquely identifies a user

name

Object

Name of a user

displayName

String

Display name of a user

nickName

String

Nickname of a user

title

String

User title

userType

String

User type

preferredLanguage

String

User's preferred language

locale

String

Geographical area or location of a user

timezone

String

Time zone of a user

active

Boolean

Whether a user is enabled

emails

Array of objects

Email addresses of a user

addresses

Array of objects

Addresses of a user

phoneNumbers

Array of objects

Phone numbers of a user

urn:ietf:params:scim:schemas:extension:enterprise:2.0:User

Object

Object that contains the user's work-related information

Table 11 meta

Parameter

Type

Description

resourceType

String

Resource type

created

String

Resource creation time

lastModified

String

Last resource update time

Table 12 name

Parameter

Type

Description

formatted

String

Formatted name to be displayed

familyName

String

Family name of a user

givenName

String

Given name of a user

middleName

String

Middle name of a user

honorificPrefix

String

Prefix of a user name

honorificSuffix

String

Suffix of a user name

Table 13 emails

Parameter

Type

Description

value

String

Email address

type

String

Email address type

primary

Boolean

Whether the value is the user's primary email address

Table 14 addresses

Parameter

Type

Description

formatted

String

Formatted address to be displayed

streetAddress

String

Street

locality

String

Location

region

String

Region

postalCode

String

Postal code

country

String

Country or region

type

String

Address type

primary

Boolean

Whether the address is the user's primary address

Table 15 phoneNumbers

Parameter

Type

Description

value

String

Phone number

type

String

Phone number type

primary

Boolean

Whether the value is the user's primary phone number

Table 16 urn:ietf:params:scim:schemas:extension:enterprise:2.0:User

Parameter

Type

Description

costCenter

String

Cost center

Minimum length: 1

Maximum length: 1024

department

String

Department

Minimum length: 1

Maximum length: 1024

division

String

Division

Minimum length: 1

Maximum length: 1024

employeeNumber

String

Employee ID

Minimum length: 1

Maximum length: 1024

manager

Object

Manager

organization

String

Organization

Minimum length: 1

Maximum length: 1024

Table 17 manager

Parameter

Type

Description

value

String

Manager

Minimum length: 1

Maximum length: 1024

Status code: 400

Table 18 Parameters in the response body

Parameter

Type

Description

schema

String

Summary

schemas

Array of strings

Summary list

detail

String

Exception details

status

Integer

Status code

timeStamp

String

Timestamp

Status code: 403

Table 19 Parameters in the response body

Parameter

Type

Description

schema

String

Summary

schemas

Array of strings

Summary list

detail

String

Exception details

status

Integer

Status code

timeStamp

String

Timestamp

Status code: 404

Table 20 Parameters in the response body

Parameter

Type

Description

schema

String

Summary

schemas

Array of strings

Summary list

detail

String

Exception details

status

Integer

Status code

timeStamp

String

Timestamp

Status code: 409

Table 21 Parameters in the response body

Parameter

Type

Description

schema

String

Summary

schemas

Array of strings

Summary list

detail

String

Exception details

status

Integer

Status code

timeStamp

String

Timestamp

Status code: 500

Table 22 Parameters in the response body

Parameter

Type

Description

schema

String

Summary

schemas

Array of strings

Summary list

detail

String

Exception details

status

Integer

Status code

timeStamp

String

Timestamp

Example Request

Updating a user

PUT https://{hostname}/{tenant_id}/scim/v2/Users/{user_id}

{
  "id" : "ac6aa714-daa7-1aaa-aaa2-6715aaaa4dd9",
  "externalId" : "123456",
  "userName" : "xxx",
  "name" : {
    "formatted" : "xxx",
    "familyName" : "xxx",
    "givenName" : "xxx",
    "middleName" : "xxx",
    "honorificPrefix" : "xxx",
    "honorificSuffix" : "xxx"
  },
  "displayName" : "xxx",
  "nickName" : "xxx",
  "profileUrl" : "xxx",
  "emails" : [ {
    "value" : "xxx",
    "type" : "work",
    "primary" : true
  } ],
  "addresses" : [ {
    "formatted" : "xxx",
    "streetAddress" : "xxx",
    "locality" : "xxx",
    "region" : "xxx",
    "postalCode" : "123456",
    "country" : "xxx",
    "type" : "work",
    "primary" : true
  } ],
  "phoneNumbers" : [ {
    "value" : "xxx",
    "type" : "work",
    "primary" : true
  } ],
  "userType" : "xxx",
  "title" : "xxx",
  "preferredLanguage" : "zh-CN",
  "locale" : "zh-CN",
  "timezone" : "xxx",
  "active" : true,
  "schemas" : [ "urn:ietf:params:scim:schemas:core:2.0:User" ]
}

Example Response

Status code: 201

Successful

{
  "id" : "ac6aa714-daa7-1aaa-aaa2-6715aaaa4dd9",
  "externalId" : "123456",
  "meta" : {
    "resourceType" : "User",
    "created" : "2023-04-08T14:53:43Z",
    "lastModified" : "2023-04-16T21:32:55Z"
  },
  "schemas" : [ "urn:ietf:params:scim:schemas:core:2.0:User" ],
  "userName" : "xxx",
  "name" : {
    "formatted" : "xxx",
    "familyName" : "xxx",
    "givenName" : "xxx",
    "middleName" : "xxx",
    "honorificPrefix" : "xxx",
    "honorificSuffix" : "xxx"
  },
  "displayName" : "xxx",
  "nickName" : "xxx",
  "title" : "xxx",
  "userType" : "xxx",
  "preferredLanguage" : "zh-CN",
  "locale" : "zh-CN",
  "timezone" : "xxx",
  "active" : true,
  "emails" : [ {
    "value" : "xxx",
    "type" : "work",
    "primary" : true
  } ],
  "addresses" : [ {
    "formatted" : "xxx",
    "streetAddress" : "xxx",
    "locality" : "xxx",
    "region" : "xxx",
    "postalCode" : "123456",
    "country" : "xxx",
    "type" : "work",
    "primary" : true
  } ],
  "phoneNumbers" : [ {
    "value" : "xxx",
    "type" : "work",
    "primary" : true
  } ]
}

Status Codes

For details, see Status Codes.

Error Codes

For details, see Error Codes.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback