# List Projects For Users

## Problem

* Find out the current project on which user is working.
* Get a list of projects accesible for the current user or other users.

## Environment

* Platform9 Managed OpenStack All Versions
* OpenStack CLI

## Procedure

### Scenario 1:

To find out the current project the environment variable can be used:

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

```none
$ env | grep -i project_nameOS_PROJECT_NAME=admin
```

{% endtab %}
{% endtabs %}

**Note**: Ensure the correct rc file is sourced.

### Scenario 2:

Get a list of projects for the currently authenticated user:

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

```none
$ openstack project list --my-projects
```

{% endtab %}
{% endtabs %}

### Scenario 3:

To get a list of projects for other user:

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

```none
$ openstack project list --user [User_UUID]
```

{% endtab %}
{% endtabs %}


---

# 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/list-projects-for-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.
