Associates a user property with a user.

Description

Before you call this operation, you can call the DescribeUsers operation to query the information about users and the ListProperty operation to query user properties.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes SetUserPropertyValue

The operation that you want to perform. Set the value to SetUserPropertyValue.

UserId Long No 11

The ID of the user.

UserName String No test

The name of the user.

PropertyId Long No 390

The ID of the property.

PropertyValueId Long No 978

The ID of the property value.

Response parameters

Parameter Type Example Description
RequestId String D6C62E40-F937-5803-B008-92E813399BA5

The ID of the request.

Examples

Sample requests

https://eds-user.cn-shanghai.aliyuncs.com/?Action=SetUserPropertyValue
&UserId=11
&UserName=test
&PropertyId=390
&PropertyValueId=978
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<SetUserPropertyValueResponse>
    <RequestId>D6C62E40-F937-5803-B008-92E813399BA5</RequestId>
</SetUserPropertyValueResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "D6C62E40-F937-5803-B008-92E813399BA5"
}