> This page is for Developers.

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

# Retrieve a user

GET https://one.zuora.com/scim/v2/Users/{id}

Retrieves a single user resource.
The value of the \<id> should be the user's corresponding user ID.

Reference: https://zuora.ferndocs.com/developers/api-reference/zuora-api/oneid/scim/get-a-specific-user

## Authentication

- `Authorization` header (bearer token, required) — Use `Bearer {{token}}` in the `Authorization` header for authentication.

## Request

### Path parameters

- `id` (string, required) — The ID of the user to retrieve.

### Headers

- `Idempotency-Key` (string, optional) — Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. With this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident.
- `Accept-Encoding` (string, optional) — Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. If specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.
- `Content-Encoding` (string, optional) — Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.
- `Zuora-Track-Id` (string, optional) — A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue. The value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`"`), and quote (`'`).
- `Zuora-Entity-Ids` (string, optional) — An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.

## Response

### 200

OK

- `schemas` (list of string, optional) — A list of schema URNs that define the structure and attributes of the user resource.
- `id` (string, optional) — The unique identifier for the user resource.
- `meta` (ScimV2UsersIdGetResponsesContentApplicationJsonSchemaMeta, optional)
- `userName` (string, optional) — The user’s unique username.
- `name` (ScimV2UsersIdGetResponsesContentApplicationJsonSchemaName, optional)
- `displayName` (string, optional) — The display name of the user, used for user interface purposes.
- `preferredLanguage` (string, optional) — The preferred language for the user, specified using a language code (e.g., 'en').
- `locale` (string, optional) — The locale of the user, specified using a locale code (e.g., 'en-US').
- `active` (boolean, optional) — Indicates whether the user account is active.
- `emails` (list of ScimV2UsersIdGetResponsesContentApplicationJsonSchemaEmailsItems, optional)
- `groups` (list of ScimV2UsersIdGetResponsesContentApplicationJsonSchemaGroupsItems, optional)
- `roles` (list of ScimV2UsersIdGetResponsesContentApplicationJsonSchemaRolesItems, optional)
- `urn:zuora:scim:schemas:1.0:UserExtension` (ScimV2UsersIdGetResponsesContentApplicationJsonSchemaUrnZuoraScimSchemas10UserExtension, optional)

## Types

### ScimV2UsersIdGetResponsesContentApplicationJsonSchemaMeta

- `created` (datetime, optional) — The date and time when the user resource was created.
- `resourceType` (string, optional) — The type of resource (e.g., 'User').
- `location` (string, optional) — The URL where the user resource can be accessed or retrieved.

### ScimV2UsersIdGetResponsesContentApplicationJsonSchemaName

- `formatted` (string, optional) — The full name of the user, including both given and family names.
- `familyName` (string, optional) — The family name (surname) of the user.
- `givenName` (string, optional) — The given name (first name) of the user.

### ScimV2UsersIdGetResponsesContentApplicationJsonSchemaEmailsItems

- `value` (string, optional) — The email address of the user.
- `display` (string, optional) — The email address displayed in the user interface.
- `type` (string, optional) — The type of email address (e.g., 'work', 'home').
- `primary` (boolean, optional) — Indicates whether this email address is the primary email for the user.

### ScimV2UsersIdGetResponsesContentApplicationJsonSchemaGroupsItems

- `value` (string, optional) — The identifier of the group to which the user belongs.
- `display` (string, optional) — The display name of the group.

### ScimV2UsersIdGetResponsesContentApplicationJsonSchemaRolesItems

- `value` (string, optional) — The role assigned to the user.
- `display` (string, optional) — The display name of the role.

### ScimV2UsersIdGetResponsesContentApplicationJsonSchemaUrnZuoraScimSchemas10UserExtension

- `schemas` (list of string, optional) — A list of schema URNs specific to Zuora’s user extension schema.
- `organizationId` (string, optional) — The identifier for the organization to which the user belongs.
- `status` (string, optional) — The status of the user account (e.g., 'ACTIVE').
- `ssoEnabled` (boolean, optional) — Indicates whether Single Sign-On (SSO) is enabled for the user.
- `region` (string, optional) — The region associated with the user (e.g., 'EU').

## Examples

**Response**

```json
{
  "schemas": [
    "urn:zuora:scim:schemas:1.0:UserExtension",
    "urn:ietf:params:scim:schemas:core:2.0:User"
  ],
  "id": "eb48a32d-2fe6-48d1-8a18-797919f3810a",
  "meta": {
    "created": "2023-07-13T06:15:25.836Z",
    "resourceType": "User",
    "location": "http://localhost:9900/scim/v2/Users/eb48a32d-2fe6-48d1-8a18-797919f3810a"
  },
  "userName": "Amy+555",
  "name": {
    "formatted": "Amy Lawrence",
    "familyName": "Amy",
    "givenName": "Lawrence"
  },
  "displayName": "Amy Lawrence",
  "preferredLanguage": "en",
  "locale": "en-US",
  "active": true,
  "emails": [
    {
      "value": "asmurugesan+555@zuora.com",
      "display": "asmurugesan+555@zuora.com",
      "type": "work",
      "primary": true
    }
  ],
  "groups": [
    {
      "value": "7f5c248e-44e8-48d3-bacc-b5bd1253c2e4",
      "display": ""
    }
  ],
  "roles": [
    {
      "value": "USER",
      "display": "USER"
    }
  ],
  "urn:zuora:scim:schemas:1.0:UserExtension": {
    "schemas": [
      "urn:zuora:scim:schemas:1.0:UserExtension"
    ],
    "organizationId": "rc141dc2-901e-4813-a25d-ef480cff1e26",
    "status": "ACTIVE",
    "ssoEnabled": false,
    "region": "EU"
  }
}
```

**SDK Code**

```python Example of a user response
import requests

url = "https://one.zuora.com/scim/v2/Users/id"

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

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

print(response.json())
```

```javascript Example of a user response
const url = 'https://one.zuora.com/scim/v2/Users/id';
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 Example of a user response
package main

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

func main() {

	url := "https://one.zuora.com/scim/v2/Users/id"

	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 Example of a user response
require 'uri'
require 'net/http'

url = URI("https://one.zuora.com/scim/v2/Users/id")

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 Example of a user response
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://one.zuora.com/scim/v2/Users/id")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Example of a user response
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

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

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

```csharp Example of a user response
using RestSharp;

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

```swift Example of a user response
import Foundation

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

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