summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-11-15 19:06:28 +0000
committerStan Hu <stanhu@gmail.com>2018-11-15 19:06:28 +0000
commit1d16530501b18528b1955251aa33a26b81f53161 (patch)
treed34964c3f4d499bbeca2da5ee5ef661fe09fe37c /doc/api
parent97e3d5ce292d056a9dd15e16823b9570832db02a (diff)
parentf3cd24a9f3f581488d621475e55e3a81bbd9e67c (diff)
downloadgitlab-ce-1d16530501b18528b1955251aa33a26b81f53161.tar.gz
Merge branch 'if-53347_fix_impersonation_tokens' into 'master'
Display impersonation token value only after creation See merge request gitlab-org/gitlab-ce!22916
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/users.md5
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/api/users.md b/doc/api/users.md
index ee24aa09156..e3633c46041 100644
--- a/doc/api/users.md
+++ b/doc/api/users.md
@@ -1072,7 +1072,6 @@ Example response:
[
{
"active" : true,
- "token" : "EsMo-vhKfXGwX9RKrwiy",
"scopes" : [
"api"
],
@@ -1089,7 +1088,6 @@ Example response:
"read_user"
],
"revoked" : true,
- "token" : "ZcZRpLeEuQRprkRjYydY",
"name" : "mytoken2",
"created_at" : "2017-03-17T17:19:28.697Z",
"id" : 3,
@@ -1125,7 +1123,6 @@ Example response:
```json
{
"active" : true,
- "token" : "EsMo-vhKfXGwX9RKrwiy",
"scopes" : [
"api"
],
@@ -1142,6 +1139,8 @@ Example response:
> Requires admin permissions.
+> Token values are returned once. Make sure you save it - you won't be able to access it again.
+
It creates a new impersonation token. Note that only administrators can do this.
You are only able to create impersonation tokens to impersonate the user and perform
both API calls and Git reads and writes. The user will not see these tokens in their profile