# query_user_api
All URIs are relative to *https://dev-sg.portal.hocvienconggiao.com*
**query-user-by-id**](query_user_api.md#query-user-by-id) | **GET** /query-api/identity-service/users/{id} | Get user infomation by id
**query-users**](query_user_api.md#query-users) | **GET** /query-api/identity-service/users | Get users infomation
# **query-user-by-id**
> models::User query-user-by-id(ctx, id)
Get user infomation by id
Returns a single user
### Required Parameters
**ctx** | **context.Context** | context containing the authentication | nil if no authentication
**id** | [****](.md)| The user id |
### Return type
[**models::User**](User.md)
### Authorization
[user_auth](../README.md#user_auth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **query-users**
> models::UserCollection query-users(ctx, optional)
Get users infomation
Returns a single user
### Required Parameters
**ctx** | **context.Context** | context containing the authentication | nil if no authentication
**optional** | **map[string]interface{}** | optional parameters | nil if no parameters
### Optional Parameters
Optional parameters are passed through a map[string]interface{}.
**username** | **String**| The user name |
**phone** | **String**| The user phone number |
**email** | **String**| The user email |
**enabled** | **bool**| The user status |
**offset** | **i32**| The number of users to skip before starting to collect the result set. |
**count** | **i32**| The number of users to return. | [default to 20]
### Return type
[**models::UserCollection**](UserCollection.md)
### Authorization
[user_auth](../README.md#user_auth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)