---
title: "Usercube-Export-Scim-2.0"
description: "Export entries from a SCIM 2.0 API (RFC 7644) to CSV files in Identity Manager, using OAuth2 client credentials or a static bearer token."
sidebar_position: 151
---

# Usercube-Export-Scim-2.0

This tool exports entries from a SCIM 2.0 API (RFC 7644) to CSV files.

## Examples

### Exporting using entities defined in configuration

Export data by pointing to the Identity Manager server, which automatically fetches entity type mapping property names for the specified connection:

```text
--server "https://scim-server.com/scim/v2" --connection-identifier "ConnectionSCIMv2" --output-path "C:/SCIMv2Export" --cookie-path "C:/SCIMv2Export" --log-level Verbose --api-url "http://localhost:5000" --api-client-id Job --api-secret OPENID_CLIENT_SECRET
```

### Exporting with OAuth2 client credentials

```text
--server "https://scim-server.com/scim/v2" --connection-identifier "ConnectionSCIMv2" --output-path "C:/SCIMv2Export" --cookie-path "C:/SCIMv2Export" --application-id "clientId" --application-key "clientSecret" --oauth2-url "https://idp.example.com/oauth/token"
```

### Exporting with a static bearer token

```text
--server "https://scim-server.com/scim/v2" --connection-identifier "ConnectionSCIMv2" --output-path "C:/SCIMv2Export" --cookie-path "C:/SCIMv2Export" --oauth-token "MyToken"
```

## Arguments

 | Argument Name | Details |
 | --- | --- |
 | --cookie-path required | **Type** String **Description** Path of the folder used to store the incremental export cookie file. |
 | --output-path required | **Type** String **Description** Output folder for the CSV files generated by the export. |
 | --connection-identifier optional | **Type** String **Description** Connector's connection identifier. Used as a prefix for output file names. |
 | --ignore-cookies optional | **Type** No Value **Description** Forces a complete export. When absent, the export runs incrementally using the existing cookie. |
 | --- | --- |
 | --server required | **Type** String **Description** Full SCIM base URL including the version path segment (e.g. `https://idp.example.com/scim/v2`). |
 | --oauth-token optional | **Type** String **Description** Pre-acquired bearer token. Takes priority over OAuth2 and Basic auth. |
 | --oauth2-url optional | **Type** String **Description** OAuth2 token endpoint URL. OIDC discovery is attempted against `--server` when omitted. |
 | --application-id optional | **Type** String **Description** OAuth2 client ID. |
 | --application-key optional | **Type** String **Description** OAuth2 client secret. |
 | --login optional | **Type** String **Description** Login for password-flow OAuth2 or HTTP Basic auth. |
 | --password optional | **Type** String **Description** Password for password-flow OAuth2 or HTTP Basic auth. |
 | --scope optional | **Type** String **Description** Space-separated OAuth2 scopes to request. |
 | --resource optional | **Type** String **Description** RFC 8707 resource indicator. |
 | --page-size optional | **Type** Int32 **Description** Number of resources requested per page. Default: 100. Must be at least 1; automatically capped by the server's advertised `maxPageSize` when smaller. |
 | --filter optional | **Type** String **Description** Per-resource-type SCIM filter expressions applied to every list request. Syntax: `ResourceType1|expression1*ResourceType2|expression2` (e.g. `Users|active eq true*Groups|displayName sw "Eng"`). Fails at startup if the server declares filtering unsupported and a filter is configured for that resource type. |
 | --headers optional | **Type** String **Description** Custom HTTP headers added to every request, JSON-encoded as a flat object (e.g. `{"User-Agent":"MyOrg/1.0"}`). |
