knadh / listmonk

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.
https://listmonk.app
GNU Affero General Public License v3.0
15.36k stars 1.4k forks source link

OIDC SSO automatic user creation #2119

Open JoTec2002 opened 3 weeks ago

JoTec2002 commented 3 weeks ago

Is your feature request related to a problem? Please describe. I have sucessfully integrated in version v4.0.1 SSO and I'm very greatful for this feature. But I have a large and changing number of users in my SSO Server and it is a bit inconvenient to create every user again in listmonk to enable SSO for this user.

Describe the solution you'd like It would be very helpful to have the option to automaticly create a new user with a default role. So like a checkbox under Settings > Security > OIDC "create new user from SSO if not existend" and an dropdown to than assign a default role to every new automaticly created SSO user

gramakri commented 3 weeks ago

We tried to integrate this feature into Cloudron's package. However, the lack of automatic user creation makes it difficult.

How is one supposed to use OIDC without automatic user creation? The admin should create users manually first?

knadh commented 3 weeks ago

For now, yes, the admin has to create the users and OIDC is connected via email. Automatic user creation + default role is planned for the the next version.

A newsletter manager is highly likely to have a very small, closed group of users with specific, tailored permissions. Does your usecase involve a sizeable number of users?

gramakri commented 3 weeks ago

@knadh fair question . Personally, for our set up, we don't have a use case of many users. We can add them manually.

With my Cloudron packager hat on, I have no idea how the listmonk package is used :) As in, we don't track user count or user related info in the platform. I don't know if it's cumbersome to end users . But based on your comment, we decided to go ahead and release an initial package with OIDC support and asking the user to add listmonk oidc users manually. We can also confirm that v4 oidc works with Cloudron OIDC . Thanks!

kosssi commented 1 week ago

It's not necessarily a question of a big team or not. The goal of the OIDC is to facilitate the connection to the different tools but also to allow the addition or deletion from a repository simply for administrators.

We are a small team of about 10 people on an associative project, where people can change quickly and this feature would clearly facilitate the follow-up.

I will try to automate it with n8n :D Thanks in advance if you implement it.