You can call this operation to reset the user password.

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 ResetFabricOrganizationUserPassword

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

OrganizationId String Yes peers-aaaaaa2-1eqnj5o5w****

The ID of the organization.

Username String Yes username

The name of the user.

Location String No cn-hangzhou

The location.

Password String No pwd

The user password.

RegionId String No cn-hangzhou

The ID of the region.

Response parameters

Parameter Type Example Description
ErrorCode Integer 200

The error code.

RequestId String 1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3

The ID of the API request.

Result

The result list of the operation.

CreateTime String 1533025590

The time when the user was created.

ExpireTime String 1533025590

The time when the user expires.

Fullname String username

The full name of the user.

OrganizationId String peers-aaaaaa2-1eqnj5o5w****

The ID of the organization.

Password String password

Specifies the password that is used.

Username String username

The name of the user.

Success Boolean true

Indicates whether the call is successful. A value of true indicates that the call is successful. A value of false indicates that the call has failed.

Examples

Sample requests


http(s)://[Endpoint]/? Action=ResetFabricOrganizationUserPassword
&OrganizationId=peers-aaaaaa2-1eqnj5o5w****
&Username=username
&<Common request parameters>

Successful response examples

XML format

<ResetFabricOrganizationUserPasswordResponse>
	  <Result>
		    <Password>v32n9rzhxqk7</Password>
		    <CreateTime>1542086619000</CreateTime>
		    <ExpireTime>1542086619000</ExpireTime>
		    <Fullname>fullname</Fullname>
		    <Username>asian01</Username>
		    <OrganizationId>peers-asianbank-1c0w455jb****</OrganizationId>
	  </Result>
	  <RequestId>2A3ABD81-95F5-4931-ACB3-31BDAE561FC7</RequestId>
	  <Success>true</Success>
	  <ErrorCode>200</ErrorCode>
</ResetFabricOrganizationUserPasswordResponse>

JSON format

{
	"Result":{
		"Fullname":"fullname",
		"ExpireTime":1542086619000,
		"Username":"asian01",
		"CreateTime":1542086619000,
		"Password":"v32n9rzhxqk7",
		"OrganizationId":"peers-asianbank-1c0w455jb****"
	},
	"RequestId":"2A3ABD81-95F5-4931-ACB3-31BDAE561FC7",
	"ErrorCode":200,
	"Success":true
}

Error codes

For more information about error codes, see Error codes.