mirror of
https://github.com/plankanban/planka.git
synced 2026-02-24 19:08:59 +03:00
OIDC User roles #453
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mostdcoa on GitHub (Mar 31, 2024).
I have OIDC working as in I can log in with a user.
However, when a user logs in, they can't do anything. How can I just make all users that log in an admin?
I am using Google Workspace as the OIDC provider. I have tried created planka_admin (as can be seen in the above code) roles etc but can't figure out how to pass that to planka to recognize who is an admin from google workspace?
@mostdcoa commented on GitHub (Apr 2, 2024):
This actually looks like I am having an issue with OIDC_IGNORE_ROLES, as reading through some of these issues that's what I want. I want any user to be able to log in with SSO and have the admin ability (add boards).
@meltyshev commented on GitHub (Apr 2, 2024):
Hi! Yep, you can use ignore roles to be able to switch
isAdminin the users modal. The only problem that a new user won't be an admin by default, so you always need to switch it. Probably we need to add one more env variable to set the default role 🤔@mostdcoa commented on GitHub (Apr 2, 2024):
@meltyshev
Ah, this makes much more sense, I had assumed
- OIDC_IGNORE_ROLEShad meant that the inherited role of OIDC was ignore and was given Admin. I was also wondering why I could enabled that account as Admin (Ignore Roles was False when I tested this).I think this would be a useful flag to have
- OIDC_DEFAULT_ROLE=admin or userif the ignore role was true.@ag-gaphp commented on GitHub (Aug 22, 2024):
I'm having this issue. How do you force the first user you sign in as to be an admin? Right now, I don't even have the ability to set myself as the admin. I can login and then nothing is available to me.
I have both
OIDC_IGNORE_ROLESandOIDC_ENFORCEDset totrue, so I have no local users at all.@ag-gaphp commented on GitHub (Aug 22, 2024):
I had to go into the postgres database and set the
is_admincolumn for my user inuser_accounttotrue@Aeyk commented on GitHub (May 20, 2025):
Being able to set the other roles via environment variable in the same way as OIDC_ADMIN_ROLES would be very useful to me.
edit: of course I missed them: OIDC_PROJECT_OWNER_ROLES, OIDC_BOARD_USER_ROLES. Added to extraEnv as I am using helm chart.
@DaMa-IT commented on GitHub (Jul 1, 2025):
Im having the same issue. Have you been able to fix yours ?