ivaat 0 Posted December 20, 2018 Posted December 20, 2018 Hi I know there is similar topic but that did not lead anywhere. Need is to mass update users library. Allow more access to new library or allow all. Can i do this via sqlite or api? Both cases could you please add small example thank you in advance
Luke 42078 Posted December 21, 2018 Posted December 21, 2018 Hi, you could do this via the api. There is no bulk edit in the web interface, but it's something we're interested in for the future. Thanks !
ivaat 0 Posted December 21, 2018 Author Posted December 21, 2018 Hi, you could do this via the api. There is no bulk edit in the web interface, but it's something we're interested in for the future. Thanks ! Can you give API small example or direction?
Luke 42078 Posted December 21, 2018 Posted December 21, 2018 This might help: https://github.com/MediaBrowser/Emby.ApiClient.Javascript/blob/master/apiclient.js#L2772-L2816
ivaat 0 Posted December 21, 2018 Author Posted December 21, 2018 Any lead on how to send post what would update all users at once? Api needs userid.. Could this be done in sql level as well? i looked all databases but i cannot find where libraries are hold
Luke 42078 Posted December 21, 2018 Posted December 21, 2018 There is not currently such a way. It's possible for the future though. Thanks.
ivaat 0 Posted December 21, 2018 Author Posted December 21, 2018 There is not currently such a way. It's possible for the future though. Thanks. hm but how it stores (i assume sqlite database) userid and what library is allowed?
Luke 42078 Posted December 21, 2018 Posted December 21, 2018 That is in config files under the server's program data folder, /config/users 1
ivaat 0 Posted December 21, 2018 Author Posted December 21, 2018 That is in config files under the server's program data folder, /config/users very thankful for this. one more thing. folders under that dir seems to be hashes. i did not figure out, are they md5hash or some other type? I tried to generate hash for username and then lookup this dir but i failed
Luke 42078 Posted December 22, 2018 Posted December 22, 2018 yea this might be difficult, but the values are in the users.db file.
ivaat 0 Posted December 22, 2018 Author Posted December 22, 2018 yea this might be difficult, but the values are in the users.db file. these are password hashes. I am looking for /config/users dir name hashes. what algorithm they are?
ivaat 0 Posted January 3, 2019 Author Posted January 3, 2019 The guid column in users. Db to you have more suggestions? as mentioned. guid column is empty
Luke 42078 Posted January 3, 2019 Posted January 3, 2019 I think you will have an easier time with the api.
Thuzad 50 Posted January 3, 2019 Posted January 3, 2019 I do a small script for create users and modfied password and other settings. What OS emby server running ?
ivaat 0 Posted January 4, 2019 Author Posted January 4, 2019 I think you will have an easier time with the api. not really. i made xml modify script. that worked out. reason why i am still asking how to understand which hash belongs to what user is this: sync folder holds some mp4 files. it is created when user uses download option. these folders are again hashes. i would like to lookup under emby admin what options this user has. how i can find out user hash via api or sqlite then? small example please
ivaat 0 Posted January 6, 2019 Author Posted January 6, 2019 I do a small script for create users and modfied password and other settings. What OS emby server running ? hi. to you know howto lookup via database or api to understand directory hash to which user belongs?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now