Skip to content

Flow Create or Edit User Impact to SSO Login when "Disallow user registration" and "Disallow password auth" turn on #5632

@frama21

Description

@frama21

Pre-submission Checklist

  • I have searched the existing issues and this feature has not been requested yet

Type of Feature

User Experience (UX)

Problem or Use Case

As a superadmin, we can add members through the admin -> member menu. There are columns for Username, Role, Nickname, and Email. When adding or editing a user, the only available input fields are Username, Password, and Role. Where are the Nickname and Email input options? I actually need them.

Note: List Member
Image

Note: Popup edit member
Image

Why do I need that? Because I've set up SSO Login with Google and enabled the "Disallow user registration" and "Disallow password auth" features. In my case, this memo can only be used based on users registered by the superadmin. Here, I only use SSO to log into the application to make it easier for users to log in and avoid having to remember their passwords.

So, to add a user who can log in via email SSO, I have to use the "Login with Google" button on the login page, which actually creates a new user.

Then, I tried adding a new user via the superadmin, and the username using email didn't work, and I got an error message saying "Invalid username."

Image

Proposed Solution

My solution is, on the super admin member page, when adding or changing a user, add a nickname and email address input. so when the user login (using Google SSO in this case), they can immediately use their account, without having to manually register on the login page. Keep in mind that the "Disallow user registration" and "Disallow password auth" features are disabled.

This means that only users whose email addresses I've registered in the member menu can be login via SSO only to access my memos.

Alternatives Considered

The Ideas just like Immich Register User on Superadmin, immich can add user by email in create or edit, then when login SSO using registered email, user can be login using their email

Additional Context

Thank you very much for this project, I use this project for my students at school, I am a journalist trainer in this school club, why I tell my case, because in this school students use Google email, so to make it easier to use, I integrated SSO Login With Google, so my students no longer have to remember passwords when they want to use this memo, just log in using their Google account

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions