You can call this operation to query the user list of the organization.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
Action | String | Yes | DescribeFabricOrganizationUsers | The operation that you want to perform. Set the value to DescribeFabricOrganizationUsers. |
OrganizationId | String | Yes | peers-aaaaaa2-1eqnj5o5w**** | The ID of the organization. |
Location | String | No | cn-hangzhou | The location. |
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 users of an organization. | ||
Attrs | String | foo=foo1,bar=bar1 | The ABAC properties. |
CallerBid | String | 26842 | The business ID of the caller. |
CallerUid | Long | 11111111**** | The user ID of the caller. |
CreateTime | String | 1533025590 | The creation time. |
ExpireTime | String | 1533025590 | The time when the user expires. |
FullName | String | name | The full name of the user. |
OrganizationId | String | peers-aaaaaa2-1eqnj5o5w9dt3 | The ID of the organization. |
RegionId | String | cn-hangzhou | The ID of the region. |
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=DescribeFabricOrganizationUsers
&OrganizationId=peers-aaaaaa2-1eqnj5o5w****
&<Common request parameters>
Successful response examples
XML
format
<DescribeFabricOrganizationUsersResponse>
<result>
<Attrs>foo=foo1,bar=bar1</Attrs>
<Username>username</Username>
<OrganizationId>peers-aaaaaa2-1eqnj5o5w9dt3</OrganizationId>
<ChannelName>mychannel</ChannelName>
<CreateTime>1544411108000</CreateTime>
<ExpireTime>1544411108000</ExpireTime>
<CallerBid>26842</CallerBid>
<CallerUid>212</CallerUid>
</result>
<RequestId>2537DB1B-F478-431E-A847-5DDAAE2BD251</RequestId>
<ErrorCode>200</ErrorCode>
<Success>true</Success>
</DescribeFabricOrganizationUsersResponse>
JSON
format
{
"result":{
"CallerUid":212,
"ExpireTime":"1544411108000",
"CreateTime":"1544411108000",
"Username":"username",
"Attrs":"foo=foo1,bar=bar1",
"CallerBid":"26842",
"ChannelName":"mychannel",
"OrganizationId":"peers-aaaaaa2-1eqnj5o5w9dt3"
},
"RequestId":"2537DB1B-F478-431E-A847-5DDAAE2BD251",
"Success":true,
"ErrorCode":200
}
Error codes
For more information about error codes, see Error codes.