-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: adjust technical user role documentation #213
Conversation
this is the script we should execute on our environments: WITH users AS (
SELECT DISTINCT ia.identity_id
FROM portal.identity_assigned_roles AS ia
JOIN portal.user_roles AS ur
ON ia.user_role_id = ur.id
WHERE ur.user_role = 'Dataspace Discovery'
AND ia.identity_id NOT IN (
SELECT DISTINCT ia2.identity_id
FROM portal.identity_assigned_roles AS ia2
JOIN portal.user_roles AS ur2
ON ia2.user_role_id = ur2.id
WHERE ur2.user_role = 'CX Membership Info'
)
),
roles_to_insert AS (
SELECT DISTINCT atu.identity_id, ur.id AS user_role_id
FROM users AS atu
CROSS JOIN (
SELECT id
FROM portal.user_roles
WHERE user_role = 'Identity Wallet Management'
) AS ur
)
INSERT INTO portal.identity_assigned_roles (identity_id, user_role_id)
SELECT rt.identity_id, rt.user_role_id
FROM roles_to_insert AS rt
LEFT JOIN portal.identity_assigned_roles AS iar
ON rt.identity_id = iar.identity_id AND rt.user_role_id = iar.user_role_id
WHERE iar.identity_id IS NULL;
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6e11c1a
to
a57646b
Compare
Kudos, SonarCloud Quality Gate passed! |
i've adjusted the initial description. |
Description
Adjusted the upgrade script for the keycloak roles
Why
Currently the role assignment is missing one role, this is added with this pr
Issue
N/A
Checklist