[Enhancement]: Should we support ability to set default user type on auto register instead of hardcoded it? #1823

Closed
opened 2026-04-24 23:59:13 +02:00 by adam · 4 comments
Owner

Originally created by @vanviethieuanh on GitHub (Mar 17, 2024).

Describe the feature/enhancement

🌟 Hi! First, thank you all for creating this amazing repo, I appreciate it and have a good time using it!

Issues

When I set up OIDC with audiobookshelf, it works well but my newly created user has a type user. I think I could change it on OIDC settings, but we do not seem to have it yet. After that, I found in the code that we currently hardcoded the user type on the auto register as user.

Enhancement

Could we create a configuration field with the OIDC configuration form that can change the default user type that was newly created by OIDC?

Thank you!

Originally created by @vanviethieuanh on GitHub (Mar 17, 2024). ### Describe the feature/enhancement 🌟 Hi! First, thank you all for creating this amazing repo, I appreciate it and have a good time using it! # Issues When I set up OIDC with `audiobookshelf`, it works well but my newly created user has a type `user`. I think I could change it on OIDC settings, but we do not seem to have it yet. After that, I found [in the code](https://github.com/advplyr/audiobookshelf/blob/master/server/models/User.js#L202) that we currently hardcoded the user type on the auto register as `user`. # Enhancement Could we create a configuration field with the OIDC configuration form that can change the default user type that was newly created by OIDC? Thank you!
adam added the enhancement label 2026-04-24 23:59:13 +02:00
adam closed this issue 2026-04-24 23:59:13 +02:00
Author
Owner

@nichwall commented on GitHub (Mar 17, 2024):

Currently the only types of account are admin, user, and guest. The difference between user and guest is that a guest can't change their password, but otherwise they're functionally the same.

@nichwall commented on GitHub (Mar 17, 2024): Currently the only types of account are `admin`, `user`, and `guest`. The difference between `user` and `guest` is that a guest can't change their password, but otherwise they're functionally the same.
Author
Owner

@nichwall commented on GitHub (Mar 17, 2024):

Duplicate of https://github.com/advplyr/audiobookshelf/issues/2523

@nichwall commented on GitHub (Mar 17, 2024): Duplicate of https://github.com/advplyr/audiobookshelf/issues/2523
Author
Owner

@Sapd commented on GitHub (Mar 17, 2024):

With the planned feature in https://github.com/advplyr/audiobookshelf/issues/2523 which nichwall linked, it will be possible to change it from the idP side.

@Sapd commented on GitHub (Mar 17, 2024): With the planned feature in https://github.com/advplyr/audiobookshelf/issues/2523 which nichwall linked, it will be possible to change it from the idP side.
Author
Owner

@advplyr commented on GitHub (Mar 18, 2024):

Duplicate of #2523

@advplyr commented on GitHub (Mar 18, 2024): Duplicate of #2523
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#1823