> For the complete documentation index, see [llms.txt](https://docs.userlane.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.userlane.com/developers/core-api/users/get-list-of-users-for-the-company-of-an-application.md). Agents can also search and read this documentation through its [MCP server](https://docs.userlane.com/~gitbook/mcp).

# Get list of users for the company of an application

Retrieves a paginated list of the enabled users of the company that owns the specified application, with pagination information. Users of the company's other applications are included, and so are users with no session in this application. Use lastSeenAfter to narrow the list to recently active users.

```json
{"openapi":"3.0.0","info":{"title":"Mothership API","version":"2.0"},"tags":[{"name":"Users","description":"Users"}],"servers":[{"url":"https://api.userlane.com"}],"security":[{"apiKey":[]}],"components":{"securitySchemes":{"apiKey":{"type":"apiKey","name":"Authorization","in":"header"}},"schemas":{"EndUserRO":{"title":"EndUserRO","description":"End User Response Object","properties":{"id":{"description":"ID","type":"string"},"userlaneId":{"description":"Userlane public ID","type":"string"},"timeCreated":{"description":"Creation timestamp","type":"string","format":"date-time"},"firstSeenAt":{"description":"First seen timestamp","type":"string","format":"date-time"},"lastSeenAt":{"description":"Last seen timestamp","type":"string","format":"date-time"},"applicationAttributes":{"description":"Application specific attributes","type":"object","additionalProperties":true},"companyAttributes":{"description":"Company specific attributes","type":"object","additionalProperties":true}},"type":"object"}}},"paths":{"/v3/applications/{application_id}/users":{"get":{"tags":["Users"],"summary":"Get list of users for the company of an application","description":"Retrieves a paginated list of the enabled users of the company that owns the specified application, with pagination information. Users of the company's other applications are included, and so are users with no session in this application. Use lastSeenAfter to narrow the list to recently active users.","operationId":"GetApplicationUsers","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Page number, starting at 1. Values below 1 are treated as 1.","required":false,"schema":{"type":"integer","default":1}},{"name":"limit","in":"query","description":"Users per page, from 1 to 1000. Values outside that range are clamped to it, so 5000 returns 1000 users per page and 0 returns 1.","required":false,"schema":{"type":"integer","default":1000}},{"name":"lastSeenAfter","in":"query","description":"Only return users last seen at or after this moment. Send YYYY-MM-DDThh:mm:ss followed by Z or a UTC offset such as +01:00, without fractional seconds, for example 2026-01-31T09:00:00Z, and URL-encode a + offset as %2B. The offset is currently not applied: the date and time are read as Europe/Berlin local time. Values with fractional seconds (as produced by JavaScript's toISOString()) are rejected with a 404; other formats are not supported.","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(Z|[+-]\\d{2}:\\d{2})$"}}],"responses":{"200":{"description":"Get Users with pagination","content":{"application/json":{"schema":{"properties":{"users":{"type":"array","items":{"$ref":"#/components/schemas/EndUserRO"}},"pagination":{"properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalElements":{"type":"integer"},"totalPages":{"type":"integer"}},"type":"object"}},"type":"object"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Application not found, or lastSeenAfter does not match the documented format"},"422":{"description":"The users could not be loaded for this request"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.userlane.com/developers/core-api/users/get-list-of-users-for-the-company-of-an-application.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
