[Bug]: Unable to Change Role of User Logged in via OAuth #696

Closed
opened 2026-02-04 20:52:28 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @spokeswamp on GitHub (May 10, 2025).

Where is the problem occurring?

I'm not sure

What browsers are you seeing the problem on?

Chrome

Current behavior

  1. User logged in via OAuth, "Edit role" not available - changing the role is not possible.
    Image

  2. User created manually by an administrator. "Edit role" is active - role changes are allowed.
    Image

Desired behavior

"Edit role" field should be available and editable for all users, including those authenticated via OAuth. Administrators must be able to change roles regardless of the user's registration method.

Steps to reproduce

  • Setup OAuth in docker-compose.yml
  • Login via OAuth
  • Try to change the role of the OAuth user via the admin panel using an admin account

Other information

v2.0.0-rc.2

Originally created by @spokeswamp on GitHub (May 10, 2025). ### Where is the problem occurring? I'm not sure ### What browsers are you seeing the problem on? Chrome ### Current behavior 1. User logged in via OAuth, "Edit role" not available - changing the role is not possible. ![Image](https://github.com/user-attachments/assets/78acde38-e0fc-4bc4-8031-5164a6d6f7b1) 2. User created manually by an administrator. "Edit role" is active - role changes are allowed. ![Image](https://github.com/user-attachments/assets/23358c0f-c06d-419d-af26-8cbd76723b77) ### Desired behavior "Edit role" field should be available and editable for all users, including those authenticated via OAuth. Administrators must be able to change roles regardless of the user's registration method. ### Steps to reproduce - Setup OAuth in `docker-compose.yml` - Login via OAuth - Try to change the role of the OAuth user via the admin panel using an admin account ### Other information `v2.0.0-rc.2`
Author
Owner

@toras9000 commented on GitHub (May 12, 2025):

I too have stumbled a bit in resolving this issue.

Solutions can be found at
https://docs.planka.cloud/docs/configuration/oidc

When using the OIDC configuration, the default seems to be to try to find the role from the authentication source.
It seems that by setting OIDC_IGNORE_ROLES to true, it is possible to set roles on Planka.

@toras9000 commented on GitHub (May 12, 2025): I too have stumbled a bit in resolving this issue. Solutions can be found at https://docs.planka.cloud/docs/configuration/oidc When using the OIDC configuration, the default seems to be to try to find the role from the authentication source. It seems that by setting `OIDC_IGNORE_ROLES` to `true`, it is possible to set roles on Planka.
Author
Owner

@spokeswamp commented on GitHub (May 12, 2025):

I too have stumbled a bit in resolving this issue.

Solutions can be found at https://docs.planka.cloud/docs/configuration/oidc

When using the OIDC configuration, the default seems to be to try to find the role from the authentication source. It seems that by setting OIDC_IGNORE_ROLES to true, it is possible to set roles on Planka.

Yes, it really worked! It wasn't obvious after I upgraded, and there was nothing about this in the upgrade manual. Thank you so much!

@spokeswamp commented on GitHub (May 12, 2025): > I too have stumbled a bit in resolving this issue. > > Solutions can be found at https://docs.planka.cloud/docs/configuration/oidc > > When using the OIDC configuration, the default seems to be to try to find the role from the authentication source. It seems that by setting `OIDC_IGNORE_ROLES` to `true`, it is possible to set roles on Planka. Yes, it really worked! It wasn't obvious after I upgraded, and there was nothing about this in the upgrade manual. Thank you so much!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#696