# User.list\_datasets

### User.<mark style="color:purple;">list\_datasets</mark>(*max\_results=None*) → list<[Dataset](https://docs.redivis.com/api/client-libraries/redivis-python/reference/dataset)>

Returns a list of dataset instances associated with the user. If the user is not yourself, only datasets that you have overview access to will be included in the list.

### **Parameters:**

**`max_results` :&#x20;*****int, default None***\
If specified, will only return up to max\_results datasets

### **Returns:**&#x20;

**list<**[**Dataset**](https://docs.redivis.com/api/client-libraries/redivis-python/reference/dataset)**>**

### Examples

```python
user = redivis.user("imathews")
datasets = user.list_datasets()

for dataset in datasets:
    print(dataset.properties["name"])
```
