# List a module's assigned users

Returns the users assigned to a training module, one row per assignment,
with the status and progress of each.
An assignment whose user has since been deleted is left out, so this list can
be shorter than the number of assignments the module has ever had.
The response is only wrapped in a paginated envelope when a page parameter is
sent. Without one, every match comes back as a flat array.
Related records are not included unless asked for. Requesting the user
relation returns that user's full profile, so ask for it only when the
profile is what you need - the assignment itself already carries user_id.

Endpoint: GET /api/v2/training/{training_id}/user
Version: 2.0.0
Security: default

## Path parameters:

  - `training_id` (integer, required)
    The ID of the training module.

## Query parameters:

  - `per_page` (integer)
    The number of results to return per page. The higher the number the longer the request may take.
It is highly recommended to use this to avoid timeouts as your data grows.
Used in conjunction with the `page` parameter to paginate results.

  - `page` (integer)
    The page of results to return. Used in conjunction with the `per_page` parameter to paginate
results. If not specified, defaults to 1.
The response's next_page_url will be null if there are no
more pages.

  - `filter` (array)
    A filter to apply to the results. Declared as an array of objects, where each object
contains an attr (attribute code), operator and value key. Examples:

?filter[0]['attr']=name&filter[0][operator]=like&filter[0][value]=luke 

?filter[0]['attr']=id&filter[0][operator]=>&filter[0][value]=265 

See the filters documentation for more details on how to use this.

  - `sort_by` (string)
    The field to sort the results by. No ordering is applied unless you specify one, so
row order is not guaranteed. Always send it when paging through a list, otherwise
records can repeat or be missed between pages.
Example: id

  - `sort_order` (string)
    The direction to sort the results by. Can be 'asc' or 'desc', default is 'asc'.

  - `_locale` (string)
    The locale to use for the response. This primarily affects the results of the `nice` field, which
contain human-readable labels and terms, as well as locale-specific date formats.,

  - `extras` (array)
    A list of extras to include in the response. These are objects or arrays that are not part of
the model's primary attributes, such as stats and counts.
For fast responses, avoid requesting them if you don't need them.

  - `with` (array)
    A list of relations to include in the response. May be single records or collections.
It is often more efficient to retrieve this way, to avoid follow-up API calls.

## Header parameters:

  - `Rosterfy-Platform` (string)

## Response 200 fields (application/json):

  - `current_page` (integer)

  - `data` (array)

  - `data.object` (object)

  - `data.object.id` (integer)

  - `data.object.training_id` (integer)

  - `data.object.user_id` (integer)

  - `data.object.steps_completed` (integer)

  - `data.object.status` (string)

  - `data.object.score` (integer)

  - `data.object.expires_at` (string | null)

  - `data.object.meta` (string | null)

  - `data.object.external_id` (string | null)

  - `data.object.deleted_at` (string | null)

  - `data.object.created_at` (string)

  - `data.object.updated_at` (string)

  - `data.nice` (object)

  - `data.nice.rrn` (string)

  - `data.nice.training_name` (string)

  - `data.nice.training_service` (string)

  - `data.nice.training_meta` (object)

  - `data.nice.training_meta.middleware` (string)

  - `data.nice.has_history` (boolean)

  - `data.nice.training_success_message` (string)

  - `data.nice.is_expired` (boolean)

  - `data.nice.status` (string)

  - `data.nice.binary_status` (boolean)

  - `data.nice.finished_status` (boolean)

  - `data.nice.score_percentage` (integer)

  - `data.nice.steps_percentage` (number)

  - `data.relations` (array)

  - `data.permissions` (object)

  - `data.permissions.read` (boolean)

  - `data.permissions.update` (boolean)

  - `data.permissions.delete` (boolean)

  - `first_page_url` (string)

  - `from` (integer)

  - `next_page_url` (string)

  - `path` (string)

  - `per_page` (integer)

  - `prev_page_url` (string | null)

  - `to` (integer)

