Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Maarch
digitalSafe
Commits
23f5f707
Commit
23f5f707
authored
Jul 06, 2020
by
Arnaud Pauget
Browse files
fix() : add ADMIN-G service account in default sql data
parent
ff2f44f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
data/sql/default.sql
View file @
23f5f707
-- AUTH
-- AUTH
USER
INSERT
INTO
auth
.
account
(
"accountId"
,
"accountName"
,
"displayName"
,
"accountType"
,
"emailAddress"
,
enabled
,
password
,
"passwordChangeRequired"
,
"passwordLastChange"
,
locked
,
"lockDate"
,
"badPasswordCount"
,
"lastLogin"
,
"lastIp"
,
"replacingUserAccountId"
,
"firstName"
,
"lastName"
,
title
,
salt
,
"tokenDate"
,
authentication
,
preferences
,
"ownerOrgId"
,
"isAdmin"
)
VALUES
(
'maarchrmds_5jmpnhp7q-0000-pf4vjt'
,
'superadmin'
,
'super admin'
,
'user'
,
'support@maarch.fr'
,
true
,
'186cf774c97b60a1c106ef718d10970a6a06e06bef89553d9ae65d938a886eae'
,
false
,
NULL
,
false
,
NULL
,
0
,
NULL
,
NULL
,
NULL
,
'Admin'
,
'Super'
,
'M.'
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
true
);
-- AUTH SERVICE
INSERT
INTO
"auth"
.
"account"
(
"accountId"
,
"accountName"
,
"displayName"
,
"accountType"
,
"emailAddress"
,
"enabled"
,
"password"
,
"passwordChangeRequired"
,
"passwordLastChange"
,
"locked"
,
"lockDate"
,
"badPasswordCount"
,
"lastLogin"
,
"lastIp"
,
"replacingUserAccountId"
,
"firstName"
,
"lastName"
,
"title"
,
"salt"
,
"tokenDate"
,
"authentication"
,
"preferences"
,
"ownerOrgId"
,
"isAdmin"
)
VALUES
(
'maarchrmds_5jmpnt8go-0000-s791qn'
,
'ADMIN-G'
,
'ADMIN-G'
,
'service'
,
''
,
true
,
'phdF9WkJuTKkDuPXoqDZuPs4jdJfIZgYNAOiaya9vYxcKibaHOiJ1ZQ5f27UftAUh+ymwIbKpgJuRpUj1mg+1ndLFxFM4s9g0p+U20vcHhoeXvzoQ/jZq8ae/eX+G5lbewHr2CBuHzA7xCKWm8XGaNDfqwp5+aj/'
,
true
,
NULL
,
false
,
NULL
,
0
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
true
);
-- ROLE
INSERT
INTO
"auth"
.
"role"
(
"roleId"
,
"roleName"
,
"description"
,
"securityLevel"
,
"enabled"
)
VALUES
(
'maarchrmds_5jmpnhp7q-0000-pf4vww'
,
'Administrateur Général'
,
'Groupe administrateur général'
,
'gen_admin'
,
true
),
...
...
@@ -11,7 +15,7 @@ INSERT INTO "auth"."role"("roleId", "roleName", "description", "securityLevel",
INSERT
INTO
"auth"
.
"roleMember"
(
"roleId"
,
"userAccountId"
)
VALUES
(
'maarchrmds_5jmpnhp7q-0000-pf4vww'
,
'maarchrmds_5jmpnhp7q-0000-pf4vjt'
);
-- privilege
--
user
privilege
s
INSERT
INTO
"auth"
.
"privilege"
(
"roleId"
,
"userStory"
)
VALUES
(
'maarchrmds_5jmpnhp7q-0000-pf4vww'
,
'adminTech/*'
),
(
'maarchrmds_5jmpnhp7q-0000-pf4vww'
,
'adminFunc/adminOrganization'
),
...
...
@@ -26,6 +30,21 @@ INSERT INTO "auth"."privilege"("roleId", "userStory") VALUES
(
'maarchrmds_5jmpnhp7q-0000-pf4ttt'
,
'adminFunc/adminServiceaccount'
),
(
'maarchrmds_5jmpnhp7q-0000-pf4ttt'
,
'adminFunc/adminOrgUser'
);
--service privileges
INSERT
INTO
"auth"
.
"servicePrivilege"
(
"accountId"
,
"serviceURI"
)
VALUES
(
'maarchrmds_5jmpnt8go-0000-s791qn'
,
'organization/organization/create'
),
(
'maarchrmds_5jmpnt8go-0000-s791qn'
,
'organization/organization/index'
),
(
'maarchrmds_5jmpnt8go-0000-s791qn'
,
'organization/organization/update_orgId_'
),
(
'maarchrmds_5jmpnt8go-0000-s791qn'
,
'auth/userAccount/create'
),
(
'maarchrmds_5jmpnt8go-0000-s791qn'
,
'auth/userAccount/updateEnable_userAccountId_'
),
(
'maarchrmds_5jmpnt8go-0000-s791qn'
,
'auth/userAccount/updateDisable_userAccountId_'
),
(
'maarchrmds_5jmpnt8go-0000-s791qn'
,
'auth/serviceAccount/create'
),
(
'maarchrmds_5jmpnt8go-0000-s791qn'
,
'auth/serviceAccount/update'
),
(
'maarchrmds_5jmpnt8go-0000-s791qn'
,
'auth/serviceAccount/updateEnable_serviceAccountId_'
),
(
'maarchrmds_5jmpnt8go-0000-s791qn'
,
'auth/serviceAccount/updateDisable_serviceAccountId_'
),
(
'maarchrmds_5jmpnt8go-0000-s791qn'
,
'auth/serviceAccount/updateServicetoken_serviceAccountId_'
)
;
-- LIFECYCLE
INSERT
INTO
"lifeCycle"
.
"eventFormat"
(
type
,
format
,
message
,
notification
)
VALUES
(
'recordsManagement/archivalProfileModification'
,
'archivalProfileReference'
,
'Modification du profil %6$s.'
,
false
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment