> This page is for API Reference & Tools.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.moveworks.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.moveworks.com/_mcp/server.

# List Users

GET https://api.moveworks.ai/export/v1/records/users

Retrieve all users ingested into Moveworks.

Reference: https://docs.moveworks.com/api-reference/data-api/list-users

## Authentication

- `Authorization` header (required) — API Key authentication via header
- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Servers

- `https://api.moveworks.ai/export/v1/records` (US PROD server. If you are located in the US region please use this server URL, default)
- `https://api.am-eu-central.moveworks.ai/export/v1/records` (EU PROD server. If you are located in the EU region please use this server URL)
- `https://api.am-ca-central.moveworks.ai/export/v1/records` (CA PROD server. If you are located in the CA region please use this server URL)
- `https://api.moveworksgov.ai/export/v1/records` (Govcloud PROD server. If you are on GovCloud infrastrucutre (US region) please use this server URL)
- `https://api.jp.moveworks.com/export/v1/records` (Japan production server)
- `https://api.uk.moveworks.com/export/v1/records` (UK production server)
- `https://api.prod4.us.moveworks.com/export/v1/records` (US Prod 4 production server)
- `https://api.prod3.us.moveworks.com/export/v1/records` (US Prod 3 production server)

## Request

### Query parameters

- `$filter` (string, optional) — This option allows the client to filter the resource that is address by request URL
- `$select` (string, optional) — This option allow the client to request a limited set of properties of an entity
- `$orderby` (string, optional) — Sort field with optional direction (asc or desc). Validated against the entity's fields, but currently does not change the order of results: records are always returned in the server's default order (created_time asc, then id; users: last_updated_time asc, then id) and $orderby is only applied as a tie-breaker after it. See the integration guide for details.
- `$top` (integer, optional) — This option request the number of items to be included in the result
- `$skip` (integer, optional) — This query option requests the number of items in the queried collection that are to be skipped and not included in the result.

## Response

### 200

Successfully retrieved list of plugins calls

- `@odata.context` (string, optional) — URL to the metadata of the response.
- `@odata.nextLink` (string, optional) — URL to fetch the next set of results.
- `value` (list of userobject, optional)

## Errors

### 400 Bad Request Error

Bad request error

- `code` (string, optional)
- `message` (string, optional)

### 403 Forbidden Error

Forbidden error

- `code` (string, optional)
- `message` (string, optional)

### 404 Not Found Error

URL not found error

- `code` (string, optional)
- `message` (string, optional)

### 429 Too Many Requests Error

Rate limiting exceeding error

- `code` (string, optional)
- `message` (string, optional)

### 500 Internal Server Error

Internal server error

- `code` (string, optional)
- `message` (string, optional)

## Types

### userobject

- `id` (string, optional) — User record id generated and stored in Moveworks for the end user
- `email_addr` (string, optional) — Email of the end user stored in Moveworks. This field is ingested from your systems and reflect the value present in your systems.
- `access_to_bot` (boolean, optional) — Denotes if the end user has access to Moveworks Assistant or not. This is evaluated through the bot access rule configured in Moveworks Setup.
- `first_name` (string, optional) — First name of the end user. This field is ingested from your systems and reflect the value present in your systems.
- `last_name` (string, optional) — Last name of the end user.This field is ingested from your systems and reflect the value present in your systems.
- `user_preferred_language` (string, optional) — User preferred language set from the end user. EN-US is the default value for this field
- `first_interaction_time` (datetime, optional) — Time stamp for the first interaction for the end user.
- `latest_interaction_time` (datetime, optional) — Time stamp for the latest interaction of the end user.
- `external_ids` (list of UserobjectExternalIdsItems, optional)
- `last_updated_time` (datetime, optional) — Last updated time for the user entry.

### UserobjectExternalIdsItems

- `connector_name` (string, optional) — Name of the connector created in Moveworks Setup
- `external_id` (string, optional) — External ID from the source system
- `source` (string, optional) — Identifier for the source system.

## Examples

**Response**

```json
{
  "@odata.context": "https://api.moveworks.ai/export/v1/records/$metadata#users",
  "@odata.nextLink": "https://api.moveworks.ai/export/v1/records/users?$skiptoken=abcdefghijklmno",
  "value": [
    {
      "id": "10349975680836035752",
      "email_addr": "vpawar@moveworks.ai",
      "access_to_bot": true,
      "first_name": "ved",
      "last_name": "pawar",
      "user_preferred_language": "EN-US",
      "first_interaction_time": "2023-01-01T00:00:00Z",
      "latest_interaction_time": "2023-01-01T00:00:00Z",
      "external_ids": [
        {
          "connector_name": "gsuite",
          "external_id": "vpawar@moveworks.ai",
          "source": "GSUITE"
        }
      ],
      "last_updated_time": "2023-01-01T00:00:00Z"
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.moveworks.ai/export/v1/records/users"

querystring = {"$filter":"user_id eq '123456'","$orderby":"user_id desc","$select":"id,created_time","$skip":"10","$top":"10"}

headers = {"Authorization": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript
const url = 'https://api.moveworks.ai/export/v1/records/users?%24filter=user_id+eq+%27123456%27&%24orderby=user_id+desc&%24select=id%2Ccreated_time&%24skip=10&%24top=10';
const options = {method: 'GET', headers: {Authorization: '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.moveworks.ai/export/v1/records/users?%24filter=user_id+eq+%27123456%27&%24orderby=user_id+desc&%24select=id%2Ccreated_time&%24skip=10&%24top=10"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.moveworks.ai/export/v1/records/users?%24filter=user_id+eq+%27123456%27&%24orderby=user_id+desc&%24select=id%2Ccreated_time&%24skip=10&%24top=10")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.moveworks.ai/export/v1/records/users?%24filter=user_id+eq+%27123456%27&%24orderby=user_id+desc&%24select=id%2Ccreated_time&%24skip=10&%24top=10")
  .header("Authorization", "<apiKey>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.moveworks.ai/export/v1/records/users?%24filter=user_id+eq+%27123456%27&%24orderby=user_id+desc&%24select=id%2Ccreated_time&%24skip=10&%24top=10', [
  'headers' => [
    'Authorization' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.moveworks.ai/export/v1/records/users?%24filter=user_id+eq+%27123456%27&%24orderby=user_id+desc&%24select=id%2Ccreated_time&%24skip=10&%24top=10");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.moveworks.ai/export/v1/records/users?%24filter=user_id+eq+%27123456%27&%24orderby=user_id+desc&%24select=id%2Ccreated_time&%24skip=10&%24top=10")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```