diff options
author | Pierre Guillot <pierre.guillot@sonarsource.com> | 2019-10-17 09:25:45 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-10-17 20:21:03 +0200 |
commit | 0ce71a2205af8e2fa4650709f7cae9e0557f1524 (patch) | |
tree | db0efc2fa02654c10a6a2890ed46ce78d11a8b19 /server/sonar-docs/src/pages/instance-administration | |
parent | caf0309d6e964af9f7bfd0b34e7b04c394bcc867 (diff) | |
download | sonarqube-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.md | 5 |
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 |