Allow `list_datasets` to include private datasets
{'login': 'ola13', 'id': 1528523, 'node_id': 'MDQ6VXNlcjE1Mjg1MjM=', 'avatar_url': 'https://avatars.githubusercontent.com/u/1528523?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/ola13', 'html_url': 'https://github.com/ola13', 'followers_url': 'https://api.github.com/users/ola13/followers', 'following_url': 'https://api.github.com/users/ola13/following{/other_user}', 'gists_url': 'https://api.github.com/users/ola13/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/ola13/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/ola13/subscriptions', 'organizations_url': 'https://api.github.com/users/ola13/orgs', 'repos_url': 'https://api.github.com/users/ola13/repos', 'events_url': 'https://api.github.com/users/ola13/events{/privacy}', 'received_events_url': 'https://api.github.com/users/ola13/received_events', 'type': 'User', 'site_admin': False}
[{'id': 1935892871, 'node_id': 'MDU6TGFiZWwxOTM1ODkyODcx', 'url': 'https://api.github.com/repos/huggingface/datasets/labels/enhancement', 'name': 'enhancement', 'color': 'a2eeef', 'default': True, 'description': 'New feature or request'}]
[]
Thanks for opening this issue :)

If it can help, I think you can already use `huggingface_hub` to achieve this:
```python
>>> from huggingface_hub import HfApi
>>> [ds_info.id for ds_info in HfApi().list_datasets(use_auth_token=token) if ds_info.private]
['bigscience/xxxx', 'bigscience-catalogue-data/xxxxxxx', ... ]
```

---------

Though the latest versions of `huggingface_hub` that contain this feature are not available on python 3.6, so maybe we should first drop support for python 3.6 (see #4460) to update `list_datasets` in `datasets` as well (or we would have to copy/paste some `huggingface_hub` code) Great, thanks @lhoestq the workaround works! I think it would be intuitive to have the support directly in `datasets` but it makes sense to wait given that the workaround exists :) i also think that going forward we should replace more and more implementations inside datasets with the corresponding ones from `huggingface_hub` (same as we're doing in `transformers`)
I am working with a large collection of private datasets, it would be convenient for me to be able to list them.

I would envision extending the convention of using `use_auth_token` keyword argument to `list_datasets` function, then calling:

```
list_datasets(use_auth_token="my_token")
```

would return the list of all datasets I have permissions to view, including private ones. The only current alternative I see is to use the hub website to manually obtain the list of dataset names - this is in the context of BigScience where respective private spaces contain hundreds of datasets, so not very convenient to list manually.
{'url': 'https://api.github.com/repos/huggingface/datasets/issues/4745/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}