diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-24 15:10:03 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-24 15:10:03 +0300 |
commit | a40c1d5046c4102e7cce78b135bebb3539903a73 (patch) | |
tree | 3de7eca84d6e95320d99d570eaff27fd9d1f94d0 /doc/api/users.md | |
parent | 1bd955a90fa6b1b1296bc10ffca68e350c1b98e3 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/users.md')
-rw-r--r-- | doc/api/users.md | 33 |
1 files changed, 4 insertions, 29 deletions
diff --git a/doc/api/users.md b/doc/api/users.md index f73e1829024..4bde807ca6a 100644 --- a/doc/api/users.md +++ b/doc/api/users.md @@ -1480,19 +1480,13 @@ Parameters: | `user_id` | integer | yes | The ID of the user | | `impersonation_token_id` | integer | yes | The ID of the impersonation token | -## Create a personal access token (admin only) +## Create a personal access token **(CORE ONLY)** > - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/17176) in GitLab 13.6. -> - It's [deployed behind a feature flag](../user/feature_flags.md), disabled by default. -> - To use it in GitLab self-managed instances, ask a GitLab administrator to [enable it](#enable-or-disable-an-administrators-ability-to-use-the-api-to-create-personal-access-tokens). **(CORE)** +> - [Feature flag removed](https://gitlab.com/gitlab-org/gitlab/-/issues/267553) in GitLab 13.8. -WARNING: -This feature might not be available to you. Check the **version history** note above for details. - -> Requires admin permissions. -> Token values are returned once. Make sure you save it - you can't access it again. - -It creates a new personal access token. +Use this API to create a new personal access token. Token values are returned once. +Make sure you save it as you can't access it again. ```plaintext POST /users/:user_id/personal_access_tokens @@ -1632,22 +1626,3 @@ Example response: }, ] ``` - -## Enable or disable an administrator's ability to use the API to create personal access tokens **(CORE)** - -An administrator's ability to create personal access tokens through the API is -deployed behind a feature flag that is **disabled by default**. -[GitLab administrators with access to the GitLab Rails console](../administration/feature_flags.md) -can enable it. - -To enable it: - -```ruby -Feature.enable(:pat_creation_api_for_admin) -``` - -To disable it: - -```ruby -Feature.disable(:pat_creation_api_for_admin) -``` |