# add\_guest\_credential

Add a new guest credential to the Rubrik cluster.

```python
def add_guest_credential(username, password, domain=None, timeout=15):
```

## Arguments

| Name     | Type | Description                           | Choices |   |
| -------- | ---- | ------------------------------------- | ------- | - |
| username | str  | The username used for authentication. |         |   |
| password | str  | The password used for authentication. |         |   |

## Keyword Arguments

| Name    | Type | Description                                                                                                  | Choices | Default |
| ------- | ---- | ------------------------------------------------------------------------------------------------------------ | ------- | ------- |
| domain  | int  | The domain name of the account to be deleted.                                                                |         | None    |
| timeout | int  | The number of seconds to wait to establish a connection the Rubrik cluster before returning a timeout error. |         | 15      |

## Returns

| Type | Return Value                                                                                     |
| ---- | ------------------------------------------------------------------------------------------------ |
| str  | No change required. The account 'username' has already been added to the Rubrik cluster.         |
| str  | No change required. The account 'username\@domain' has already been added to the Rubrik cluster. |
| dict | The full API response for `POST /v1/vmware/guest_credential`.                                    |

## Example

```python
import rubrik_cdm

rubrik = rubrik_cdm.Connect()

username = "pythonuser"
password = "python123!"

update_proxy = rubrik.add_guest_credential(username, password):
```


---

# 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://rubrik.gitbook.io/rubrik-sdk-for-python/cluster-functions/add_guest_credential.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.
