# Users

Users are a relatively simple data structure and simply allow content creators and editors to log into Clay to work with content. A user object is structured accordingly:&#x20;

```javascript
{
    "username": <USERNAME SPECIFIC TO YOUR AUTH PROVIDER>,
    "auth": <"write" OR "admin">,
    "provider": <NAME OF AUTHENTICATION PROVIDER>
}
```

Clay uses [PassportJS](http://www.passportjs.org/) for authentication and currently supports the following providers:

* Google
* Twitter
* Slack
* LDAP
* Authentication Token

A provider is defined at startup time and more information can be found in those docs for how to configure each provider. Assuming we have a provider of `google` configured, let's look at the following user object:

```javascript
Found at: /_users/dXNlckBnb29nbGUuY29tQGdvb2dsZQ==

{
    "username": "user@google.com",
    "auth": "admin",
    "provider": "google"
}
```

The user's id is a Base64 encoded string of the `<username>@<provider` and the authentication level is used to define permissions when editing content via [Kiln](https://claycms.gitbook.io/kiln).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://claycms.gitbook.io/clay/clay-data-structures/users.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
