You can call this operation to create an organization user.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | CreateFabricOrganizationUser |
The operation that you want to perform. Set the value to CreateFabricOrganizationUser. |
OrganizationId | String | Yes | peers-yidio-1tuigx42b**** |
The ID of the organization. |
Username | String | Yes | username |
The name of the user. |
Attrs | String | No | foo=foo1,bar=bar1 |
The ABAC properties. |
Password | String | No | password |
Specifies the password that is used. |
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 | 1544086901984 |
The creation time. |
ExpireTime | String | 1544411108000 |
The time when the user expires. |
Fullname | String | fullname |
The full name of the user. |
OrganizationId | String | peers-yidio-1tuigx42b**** |
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=CreateFabricOrganizationUser
&OrganizationId=peers-yidio-1tuigx42b****
&Username=username
&<Common request parameters>
Successful response examples
XML
format
<CreateFabricOrganizationUserResponse>
<result>
<OrganizationId>peers-yidio-1tuigx42b****</OrganizationId>
<CreateTime>1999-05-10 09:00:00</CreateTime>
<ExpireTime>2000-05-10 09:00:00</ExpireTime>
<Fullname>Alibaba Group</Fullname>
<Username>username</Username>
<Password>pwd</Password>
</result>
<RequestId>2537DB1B-F478-431E-A847-5DDAAE2BD251</RequestId>
<ErrorCode>200</ErrorCode>
<Success>true</Success>
</CreateFabricOrganizationUserResponse>
JSON
format
{
"result":{
"Fullname":"Alibaba Group",
"ExpireTime":"2000-05-10 09:00:00",
"Password":"pwd",
"Username":"username",
"CreateTime":"1999-05-10 09:00:00",
"OrganizationId":"peers-yidio-1tuigx42b****"
},
"RequestId":"2537DB1B-F478-431E-A847-5DDAAE2BD251",
"Success":true,
"ErrorCode":200
}
Error codes
For more information about error codes, see Error codes.