> This page is for MVS Auth.

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

# Get Scim V 2 Users

GET https://c-auth.mvscloud.com/api/auth/scim/v2/Users

Returns all users provisioned via SCIM for the linked organization. See https://datatracker.ietf.org/doc/html/rfc7644#section-3.4.2

Reference: https://docs.mvscloud.com/mvs-auth/central-auth-api/scim/get-scim-v-2-users

## Authentication

- `Authorization` header (bearer token, required) — Bearer token authentication

## Response

### 200

SCIM user list

- `totalResults` (double, optional)
- `itemsPerPage` (double, optional)
- `startIndex` (double, optional)
- `Resources` (list of ScimV2UsersGetResponsesContentApplicationJsonSchemaResourcesItems, optional)

## Errors

### 400 Bad Request Error

Bad Request. Usually due to missing parameters, or invalid parameters

- `schemas` (list of string, optional)
- `status` (string, optional)
- `detail` (string, optional)
- `scimType` (string, optional)

### 401 Unauthorized Error

Unauthorized. Due to missing or invalid authentication.

- `schemas` (list of string, optional)
- `status` (string, optional)
- `detail` (string, optional)
- `scimType` (string, optional)

### 403 Forbidden Error

Unauthorized. Due to missing or invalid authentication.

- `schemas` (list of string, optional)
- `status` (string, optional)
- `detail` (string, optional)
- `scimType` (string, optional)

### 404 Not Found Error

Not Found. The requested resource was not found.

- `schemas` (list of string, optional)
- `status` (string, optional)
- `detail` (string, optional)
- `scimType` (string, optional)

### 429 Too Many Requests Error

Too Many Requests. You have exceeded the rate limit. Try again later.

- `schemas` (list of string, optional)
- `status` (string, optional)
- `detail` (string, optional)
- `scimType` (string, optional)

### 500 Internal Server Error

Internal Server Error. This is a problem with the server that you cannot fix.

- `schemas` (list of string, optional)
- `status` (string, optional)
- `detail` (string, optional)
- `scimType` (string, optional)

## Types

### ScimV2UsersGetResponsesContentApplicationJsonSchemaResourcesItems

- `id` (string, optional)
- `meta` (ScimV2UsersGetResponsesContentApplicationJsonSchemaResourcesItemsMeta, optional)
- `userName` (string, optional)
- `name` (ScimV2UsersGetResponsesContentApplicationJsonSchemaResourcesItemsName, optional)
- `displayName` (string, optional)
- `active` (boolean, optional)
- `emails` (list of ScimV2UsersGetResponsesContentApplicationJsonSchemaResourcesItemsEmailsItems, optional)
- `schemas` (list of string, optional)

### ScimV2UsersGetResponsesContentApplicationJsonSchemaResourcesItemsMeta

- `resourceType` (string, optional)
- `created` (datetime, optional)
- `lastModified` (datetime, optional)
- `location` (string, optional)

### ScimV2UsersGetResponsesContentApplicationJsonSchemaResourcesItemsName

- `formatted` (string, optional)
- `givenName` (string, optional)
- `familyName` (string, optional)

### ScimV2UsersGetResponsesContentApplicationJsonSchemaResourcesItemsEmailsItems

- `value` (string, optional)
- `primary` (boolean, optional)

## Examples

**Response**

```json
{
  "totalResults": 1.1,
  "itemsPerPage": 1.1,
  "startIndex": 1.1,
  "Resources": [
    {
      "id": "string",
      "meta": {
        "resourceType": "string",
        "created": "2024-01-15T09:30:00Z",
        "lastModified": "2024-01-15T09:30:00Z",
        "location": "string"
      },
      "userName": "string",
      "name": {
        "formatted": "string",
        "givenName": "string",
        "familyName": "string"
      },
      "displayName": "string",
      "active": true,
      "emails": [
        {
          "value": "string",
          "primary": true
        }
      ],
      "schemas": [
        "string"
      ]
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://c-auth.mvscloud.com/api/auth/scim/v2/Users"

headers = {"Authorization": "Bearer <token>"}

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

print(response.json())
```

```javascript
const url = 'https://c-auth.mvscloud.com/api/auth/scim/v2/Users';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

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://c-auth.mvscloud.com/api/auth/scim/v2/Users"

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

	req.Header.Add("Authorization", "Bearer <token>")

	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://c-auth.mvscloud.com/api/auth/scim/v2/Users")

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

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

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://c-auth.mvscloud.com/api/auth/scim/v2/Users")
  .header("Authorization", "Bearer <token>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://c-auth.mvscloud.com/api/auth/scim/v2/Users', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://c-auth.mvscloud.com/api/auth/scim/v2/Users");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://c-auth.mvscloud.com/api/auth/scim/v2/Users")! 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()
```