Jellyfin Forum
can i change the admin user without issues? - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: General Questions (https://forum.jellyfin.org/f-general-questions)
+--- Thread: can i change the admin user without issues? (/t-can-i-change-the-admin-user-without-issues)



can i change the admin user without issues? - Iacov - 2024-03-10

hey

probably weird question, but couldn't find an answer and am too timid to try

i have made the rookie mistake that "my" profile is also the admin account - which technically is not much of a big deal as the only other users are my wife and kdis, but following the zero trust approach, being admin and having easy pin enabled might be contradictory

can i simply create a new admin user and remove the admin privileges off my profile without breaking anything?
could there anywhere be configs or scheduled tasks that rely on the user that initially "created" them when the server was setup?

thank you for your advice!


RE: can i change the admin user without issues? - TheDreadPirate - 2024-03-10

There can be only one admin account.

If you want to change the name, go ahead.  Scheduled tasks aren't tied to a particular user.

Go into the users dashboard and just change the name to admin or whatever and save.  Then create your "regular" user account with your name.

   


RE: can i change the admin user without issues? - Iacov - 2024-03-10

(2024-03-10, 06:55 PM)TheDreadPirate Wrote: There can be only one admin account.

If you want to change the name, go ahead.  Scheduled tasks aren't tied to a particular user.

Go into the users dashboard and just change the name to admin or whatever and save.  Then create your "regular" user account with your name.

thank you
would it also work to add a new user and make this user the admin? this way i could keep my watchlist etc (or so i think)


RE: can i change the admin user without issues? - TheDreadPirate - 2024-03-10

Negative. The account you created during the initial setup is THE admin. You could do some database hackery to change this, but that is not recommended. You can either manually tag shows/movies as watched or use something like Trakt to sync your watch status externally and then pull it into the new user.


RE: can i change the admin user without issues? - Iacov - 2024-03-10

thank you, that clears it up for me and i save myself the trial and error then
renaming and manually checking watched stuff, it is then xD
thank you Smiling-face


RE: can i change the admin user without issues? - Efficient_Good_5784 - 2024-03-10

(2024-03-10, 07:07 PM)TheDreadPirate Wrote: Negative.  The account you created during the initial setup is THE admin.  You could do some database hackery to change this, but that is not recommended.  You can either manually tag shows/movies as watched or use something like Trakt to sync your watch status externally and then pull it into the new user.
Is this true? Is there something in the code that has admin status hardwired to the first OG account?

I also was in the same boat (created the first admin account as my personal account).
I wanted to transfer over my watch status, so what I did was create a new account named "admin".
I then gave it permission to manage the server (Dashboard > Users > Account > "Allow this user to manage to manage the server") as well as allowed it to delete media from all libraries and the rest of the admin things too.
After that, I logged into the new admin account and disabled server management and media deletion for the original first account.

Now my OG first account can't access the dashboard or modify/delete any media (except for playlists which is a bug that will be fixed soon).

Also, I was playing around with this on my backup Jellyfin server before doing it on my main server, and I found out that Jellyfin would prevent you from doing the dumb action of removing server management rights from yourself if your the only one with server management rights. You'll just be presented with an infinite loading circle until you reload the page unless another account is present with access to the dashboard.

My question is then, since you state that the first account is the admin account, is there somewhere in the database that still says my account is the admin, but with permissions disabled?
My media library at this point still is small enough to where I can go and just mark things as watched, so would there be any benefit in just renaming the 2nd "admin" account I made to be my new personal account, then change the first OG account to actual "admin"?


RE: can i change the admin user without issues? - TheDreadPirate - 2024-03-10

I THINK in the database the first account has some special designation. I could be wrong, but that is my understanding. When you re-run the startup wizard to recover the "admin" account it would be this first account.