---
title: "Domain User"
description: "Learn about Domain User objects within a domain, featuring properties, schema, and integration guides for developers. (Gitana 4.0)"
product: "Gitana"
version: "4.0"
url: "/documentation/gitana/4.0/reference/types/user"
---

# <a id="top"></a>Domain User

An Object

1.  [Platform](/documentation/gitana/4.0/reference/types/platform.md)
2.  [Domain](/documentation/gitana/4.0/reference/types/domain.md)
3.  [Domain User](/documentation/gitana/4.0/reference/types/user.md)

##### Table of Contents

- [Overview](#top "Overview")
- [Parent](#parent "Parent")
- [Properties](#properties "Properties")
- [Schema](#schema "Schema")

> **Note:** Drop in one of our language drivers to accelerate your development.  
> Here are links to some of our popular [Cookbooks](/documentation/gitana/4.0/developers/cookbooks/overview.md) to help you get started!
> 
> - [C#](/documentation/gitana/4.0/developers/cookbooks/csharp.md)
> - [Go](/documentation/gitana/4.0/developers/cookbooks/go.md)
> - [Java](/documentation/gitana/4.0/developers/cookbooks/java.md)
> - [JavaScript](/documentation/gitana/4.0/developers/cookbooks/javascript2.md)
> - [PHP](/documentation/gitana/4.0/developers/cookbooks/php.md)
> - [Python](/documentation/gitana/4.0/developers/cookbooks/python.md)
> - [Ruby](/documentation/gitana/4.0/developers/cookbooks/ruby.md)

## <a id="parent"></a>Parent

This Domain User is contained within a [Domain](/documentation/gitana/4.0/reference/types/domain.md).

## <a id="properties"></a>Properties

The following properties are available:

| Property | Type | Default | Read-Only | Description |
| --- | --- | --- | --- | --- |
| \_doc | string |  | No | The primary ID |
| \_system | object |  | No | Metadata maintained by the system |
| authorities | array |  | No |  |
| directoryId | string |  | No | The ID of the directory of the identity that holds this user's authentication credentials. The authentication credentials are not stored on the domain user object itself. |
| email | string |  | No | The primary email address for the principal. |
| identityId | string |  | No | The ID of the identity that holds this user's authentication credentials. The authentication credentials are not stored on the domain user object itself. |
| invitedDomainId | string |  | No | If this user was invited from another domain, then this points back to the original user. |
| invitedPrincipalId | string |  | No | If this user was invited from another domain, then this points back to the original user. |
| name | string |  | No |  |
| type | string |  | No |  |

## <a id="schema"></a>Schema

```json

{
  "type": "object",
  "extends": "principal",
  "description": "Domain User",
  "container": "domain",
  "properties": {
    "email": {
      "type": "string",
      "description": "The primary email address for the principal."
    },
    "directoryId": {
      "type": "string",
      "description": "The ID of the directory of the identity that holds this user's authentication credentials. The authentication credentials are not stored on the domain user object itself."
    },
    "identityId": {
      "type": "string",
      "description": "The ID of the identity that holds this user's authentication credentials. The authentication credentials are not stored on the domain user object itself."
    },
    "invitedDomainId": {
      "type": "string",
      "description": "If this user was invited from another domain, then this points back to the original user."
    },
    "invitedPrincipalId": {
      "type": "string",
      "description": "If this user was invited from another domain, then this points back to the original user."
    },
    "name": null,
    "type": null,
    "authorities": null,
    "_doc": null,
    "_system": null
  },
  "id": "user"
}
```
