# User$list\_datasets

### User$<mark style="color:purple;">list\_datasets</mark>(*max\_results=NULL*) → list<[Dataset](https://docs.redivis.com/api/client-libraries/redivis-r/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 NULL***\
If specified, will only return up to max\_results datasets

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

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

### Examples

```r
user <- redivis$user("imathews")
datasets <- user$list_datasets()

for (dataset in datasets){
    print(dataset$properties$"name")
}
```
