Skip to content

Commit 868966a

Browse files
Michellehbnosansevieromishig25
authored
User access tokens update (#913)
* Update security-tokens.md Added line about Org API Tokens being deprecated * Update security-tokens.md * Update docs/hub/security-tokens.md Co-authored-by: Mishig <dmishig@gmail.com> * Update docs/hub/security-tokens.md --------- Co-authored-by: Omar Sanseviero <osanseviero@gmail.com> Co-authored-by: Mishig <dmishig@gmail.com>
1 parent a4af401 commit 868966a

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

docs/hub/security-tokens.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
User Access Tokens are the preferred way to authenticate an application or notebook to Hugging Face services. You can manage your access tokens in your [settings](https://huggingface.co/settings/tokens).
66

77
<div class="flex justify-center">
8-
<img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/access-tokens.png"/>
9-
<img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/access-tokens-dark.png"/>
8+
<img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/User-Access-Token.png"/>
9+
<img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/User-Access-Token-dark.png"/>
1010
</div>
1111

1212
Access tokens allow applications and notebooks to perform specific actions specified by the scope of the roles shown in the following:
@@ -15,6 +15,15 @@ Access tokens allow applications and notebooks to perform specific actions speci
1515

1616
- `write`: tokens with this role additionally grant write access to the repositories you have write access to. Use this token if you need to create or push content to a repository (e.g., when training a model or modifying a model card).
1717

18+
Note that Organization API Tokens have been deprecated:
19+
20+
<div class="flex justify-center">
21+
<img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/API-token.png"/>
22+
<img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/API-token_dark.png"/>
23+
</div>
24+
25+
If you are a member of an organization with read/write/admin role, then your User Access Tokens will be able to read/write the resources according to the token permission (read/write) and organization membership (read/write/admin).
26+
1827
## How to manage User Access Tokens?
1928

2029
To create an access token, go to your settings, then click on the [Access Tokens tab](https://huggingface.co/settings/tokens). Click on the **New token** button to create a new User Access Token.
@@ -63,4 +72,4 @@ We recommend you create one access token per app or usage. For instance, you cou
6372

6473
This way, you can invalidate one token without impacting your other usages.
6574

66-
We also recommend only giving the appropriate role to each token you create. If you only need read access (i.e., loading a dataset with the `datasets` library or retrieving the weights of a model), only give your access token the `read` role.
75+
We also recommend only giving the appropriate role to each token you create. If you only need read access (e.g., loading a dataset with the `datasets` library or retrieving the weights of a model), only give your access token the `read` role.

0 commit comments

Comments
 (0)