# Edit Individual Users Quotas

## Problem

Similar to tenant quotas, you can enforce quotas per user. This can be used to prevent users from monopolizing resources in a multi-user tenant.

## Environment

* Platform9 Managed OpenStack - All Versions
* Nova
* OpenStack CLI
* Nova CLI

## Procedure

### Using the Clarity UI

1. Log in using your **admin** account.
2. Select the 'Tenants and Users' tab on the menu to the left of the page.

<figure><img src="/files/l1kfI32ULej0UjfMCAYU" alt="Screen_Shot_2020-01-23_at_11.46.21_AM.png"><figcaption><p>Screen_Shot_2020-01-23_at_11.46.21_AM.png</p></figcaption></figure>

3. Switch to the 'Users' tab and use the radio button to select the user whose quotas you want to set and click on 'Edit User'.

<figure><img src="/files/qPAuanVbhkPJJsiaiTGU" alt="Screen_Shot_2020-01-23_at_11.55.29_AM.png"><figcaption><p>Screen_Shot_2020-01-23_at_11.55.29_AM.png</p></figcaption></figure>

4. Set the desired quotas for the user. Ensure that the 'Enable user-level quota for the playground region and \[tenant\_name] tenant.' checkbox is selected.

<figure><img src="/files/KoNaJexjrVaNMRK43KGm" alt="Screen_Shot_2020-01-23_at_11.59.48_AM.png"><figcaption><p>Screen_Shot_2020-01-23_at_11.59.48_AM.png</p></figcaption></figure>

5. Click on 'Save'.

### Using the CLI

1. Source your admin RC file.

{% tabs %}
{% tab title="None" %}

```none
$ source [your_admin_rc_file].rc
```

{% endtab %}
{% endtabs %}

2. Get the UUID of the user whose quotas you want to admin.

{% tabs %}
{% tab title="None" %}

```none
$ openstack user list | grep [username]
```

{% endtab %}
{% endtabs %}

3. Get the UUID of the project the user belongs to.

{% tabs %}
{% tab title="None" %}

```none
$ openstack project list | grep [project_name]
```

{% endtab %}
{% endtabs %}

4. Check the existing quotas for the user.

{% tabs %}
{% tab title="None" %}

```none
$ nova quota-show --user --tenant $project
```

{% endtab %}
{% endtabs %}

5. Update the quota for the user.

{% tabs %}
{% tab title="None" %}

```none
$ nova quota-update --user [user_uuid] --QUOTA_NAME QUOTA_VALUE [project_uuid]
```

{% endtab %}
{% endtabs %}

6. Repeat **Step #4** to verify the quotas have been updated successfully.

## Additional Information

* [How to Install OpenStack CLI clients.](https://docs.platform9.com/support/getting-started-with-the-openstack-command-line/)
* [Managing Compute Service Quotas.](https://docs.openstack.org/nova/pike/admin/quotas.html)
* [Setting Quotas for a Specific Tenant](https://support.platform9.com/hc/en-us/articles/360033348854-Edit-Quotas-for-Specific-Tenant)


---

# 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://platform9.com/kb/pmo/how-to/edit-individual-users-quotas.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.
