Jellyfin Forum
Default User Permissions with jfa-go - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Development (https://forum.jellyfin.org/f-development)
+--- Forum: Plugin Development (https://forum.jellyfin.org/f-plugin-development)
+--- Thread: Default User Permissions with jfa-go (/t-default-user-permissions-with-jfa-go)



Default User Permissions with jfa-go - Maxy TV - 2024-02-02

Hello, I am using jfa-go, which is ideal for people to register themselves without me having to do it manually. However, there is a problem that I can't solve: the default permissions and settings when creating an account. Is there a way to set default values somehow?

Let me explain. What I want is that when a user registers, they cannot transcode audio or video, cannot download the content, and I want to limit it to 1 device connected simultaneously.

How could I do this? Is there any Jellyfin document that can be modified to change the default permissions to my liking, either in Jellyfin or jfa-go?

Thank you very much.


RE: Default User Permissions with jfa-go - tmsrxzar - 2024-02-02

(2024-02-02, 05:53 PM)Maxy TV Wrote: Hello, I am using jfa-go, which is ideal for people to register themselves without me having to do it manually. However, there is a problem that I can't solve: the default permissions and settings when creating an account. Is there a way to set default values somehow?

Let me explain. What I want is that when a user registers, they cannot transcode audio or video, cannot download the content, and I want to limit it to 1 device connected simultaneously.

How could I do this? Is there any Jellyfin document that can be modified to change the default permissions to my liking, either in Jellyfin or jfa-go?

Thank you very much.

there is no default you can change in jellyfin
there is no option to copy settings from another user in jellyfin
check the documentation for the project you are using (which is 3rd party btw), it indicates that it will use a default
https://github.com/hrfee/jfa-go
Quote:  -config, -c string
    alternate path to config file. (default "/home/hrfee/.config/jfa-go/config.ini")


there is also an open issue regarding a default profile which reinforces that there is one
- https://github.com/hrfee/jfa-go/issues/206


RE: Default User Permissions with jfa-go - Maxy TV - 2024-02-02

Excuse me, I don't quite understand what it means by:
-config, -c string
alternate path to config file. (default "/home/hrfee/.config/jfa-go/config.ini")

I'm not sure where I should input this in jfa-go. In other words, if I have it installed (I can try reinstalling it), once the installation is done again, do I need to go to the specified directory there and change the default configuration as I wish?


RE: Default User Permissions with jfa-go - tmsrxzar - 2024-02-02

(2024-02-02, 06:31 PM)Maxy TV Wrote: Excuse me, I don't quite understand what it means by:
-config, -c string
    alternate path to config file. (default "/home/hrfee/.config/jfa-go/config.ini")

I'm not sure where I should input this in jfa-go. In other words, if I have it installed (I can try reinstalling it), once the installation is done again, do I need to go to the specified directory there and change the default configuration as I wish?

i can't answer that because i don't use this plugin, the best place to ask is on it's github page
the response above was 2 minutes of reading the github page in order to provide some sort of direction to you


RE: Default User Permissions with jfa-go - Maxy TV - 2024-02-02

Thank you very much, I've already opened a question on GitHub. Have a happy day.


RE: Default User Permissions with jfa-go - bitmap - 2024-02-02

The config file doesn't have this information anyway. You should be able to create a dummy template user in Jellyfin, make sure jfa-go is importing your users, set the template user's access and perms as you wish, then set the template user as the default for account creation.

You could even have a couple of them and call them things like no-transcode or low-bandwidth or no-anime depending on your application. I believe -- even though jfa-go doesn't say this explicitly in the documentation -- that settings are generated from the "default" or template user you have set.