aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-docs/src/pages/instance-administration
diff options
context:
space:
mode:
authorPierre Guillot <pierre.guillot@sonarsource.com>2019-10-17 09:25:45 +0200
committerSonarTech <sonartech@sonarsource.com>2019-10-17 20:21:03 +0200
commit0ce71a2205af8e2fa4650709f7cae9e0557f1524 (patch)
treedb0efc2fa02654c10a6a2890ed46ce78d11a8b19 /server/sonar-docs/src/pages/instance-administration
parentcaf0309d6e964af9f7bfd0b34e7b04c394bcc867 (diff)
downloadsonarqube-0ce71a2205af8e2fa4650709f7cae9e0557f1524.tar.gz
sonarqube-0ce71a2205af8e2fa4650709f7cae9e0557f1524.zip
SONAR-12595 fix documentation admin insert query
Diffstat (limited to 'server/sonar-docs/src/pages/instance-administration')
-rw-r--r--server/sonar-docs/src/pages/instance-administration/security.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/sonar-docs/src/pages/instance-administration/security.md b/server/sonar-docs/src/pages/instance-administration/security.md
index 55e18268aad..ed04933d0d0 100644
--- a/server/sonar-docs/src/pages/instance-administration/security.md
+++ b/server/sonar-docs/src/pages/instance-administration/security.md
@@ -56,7 +56,10 @@ update users set crypted_password = '$2a$12$uCkkXmhW5ThVK8mpBvnXOOJRLd64LJeHTeCk
```
If you've deleted `admin` and subsequently locked out the other users with global administrative permissions, you'll need to re-grant `admin` to a user with the following query:
```
-INSERT INTO user_roles(user_id, role) VALUES ((select id from users where login='mylogin'), 'admin');
+INSERT INTO user_roles(user_id, role, organization_uuid)
+VALUES ((select id from users where login='mylogin'),
+admin',
+(select uuid from organizations where kee='default-organization'));
```
## Authorization