New User and default Library access
-
wrote on Dec 13, 2023, 7:40 PM last edited by cylon Dec 13, 2023, 7:41 PM
When you create a user in Jellyfin, you have to manually select what library he can access.
So when you create a new user in Cloudron, this new user when login into Jellyfin will have access to none of the library. The admin has to login and manually give access to the libraries.
IMO, it would make more sense to give access to all librairies by default when you create a user via Cloudron. Otherwise it is simpler to create the user directly in Jellyfin.
Or is there already an option when you create the user Cloudron so that he can access all librairies ?
-
wrote on Dec 14, 2023, 8:00 PM last edited by
Not sure it's a setting, I didn't find anything in the doc at least. It's more something you have to do in the user creation process: enter user name, then select library he can access.
Not sure if it is something Cloudron can do. How does Couldron create user ? Is it using an API from Jellyfin ? -
wrote on Dec 14, 2023, 11:05 PM last edited by
It sounds to me like this ought to be configurable and that the standard Jellyin default is indeed that all users ought to have access to all libraries, see https://jellyfin.org/docs/general/server/users/adding-managing-users/
-
We use Jellyfin LDAP plugin - https://github.com/jellyfin/jellyfin-plugin-ldapauth
Not a csharp dev, but it seems the default value in the plugin is false which doesn't match the upstream defaults - https://github.com/jellyfin/jellyfin-plugin-ldapauth/blob/a866c85e7c34cb5848c287586987fbe4761dd250/LDAP-Auth/Config/PluginConfiguration.cs#L40
-
@cylon Can you try this:
- Edit
/app/data/jellyfin/data/plugins/configurations/LDAP-Auth.xml
using File manager - Add
<EnableAllFolders>true</EnableAllFolders>
- Restart the app
- Edit
-
wrote on Dec 17, 2023, 1:11 PM last edited by cylon Dec 17, 2023, 1:11 PM
I tried adding the line
<EnableAllFolders>true</EnableAllFolders>
but when I restart the app the config is restored to the original version without the line.I saved the file, I can see the line is there when I close / open the file, but after restarting the app the
LDAP-Auth.xml
is somehow restored -
wrote on Dec 17, 2023, 1:17 PM last edited by
also, I tried creating a new user without restarting Jellyfin (when the
EnableAllFolders
config is still there) and it works, new user have access to all librairies
The issue is now only that at restart this config got removed from the config file -
wrote on Dec 17, 2023, 1:21 PM last edited by cylon Dec 17, 2023, 1:21 PM
additional question:
When I delete a user from Cloudron User management, the user is not delete from Jellyfin and still have access
( but maybe I should open a new topic for this one?)
-
Indeed https://git.cloudron.io/cloudron/jellyfin-app/-/blob/master/start.sh?ref_type=heads#L24 does overwrite that file on every restart. We have to make the package smarter to only selectively update fields. I have created a task for this, but may take some time to get to this with holidays coming up.
The user syncing for deleted users is very app dependent and the general rule is that log into the app will fail (since user is gone so credentials can't be checked) but usually apps do not purge such users and the data. Those things would have to get fixed upstream, so feel free to create an issue for this at the upstream project.
-
Indeed https://git.cloudron.io/cloudron/jellyfin-app/-/blob/master/start.sh?ref_type=heads#L24 does overwrite that file on every restart. We have to make the package smarter to only selectively update fields. I have created a task for this, but may take some time to get to this with holidays coming up.
The user syncing for deleted users is very app dependent and the general rule is that log into the app will fail (since user is gone so credentials can't be checked) but usually apps do not purge such users and the data. Those things would have to get fixed upstream, so feel free to create an issue for this at the upstream project.
wrote on Dec 18, 2023, 5:57 PM last edited byThx for your answer.
@nebulon said in New User and default Library access:
Those things would have to get fixed upstream, so feel free to create an issue for this at the upstream project
what is the upstream project ? How do I create an issue for that ?
-
Thx for your answer.
@nebulon said in New User and default Library access:
Those things would have to get fixed upstream, so feel free to create an issue for this at the upstream project
what is the upstream project ? How do I create an issue for that ?
wrote on Dec 18, 2023, 8:28 PM last edited by@cylon said in New User and default Library access:
what is the upstream project ? How do I create an issue for that ?
Jellyfin
https://github.com/jellyfin/jellyfin/issues
https://features.jellyfin.org/ -
LDAP permissions is fixed in the latest package.