ivaat 0 Posted December 20, 2018 Share 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 Link to comment Share on other sites More sharing options...
Luke 37250 Posted December 21, 2018 Share 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 ! Link to comment Share on other sites More sharing options...
ivaat 0 Posted December 21, 2018 Author Share 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? Link to comment Share on other sites More sharing options...
Luke 37250 Posted December 21, 2018 Share Posted December 21, 2018 This might help: https://github.com/MediaBrowser/Emby.ApiClient.Javascript/blob/master/apiclient.js#L2772-L2816 Link to comment Share on other sites More sharing options...
ivaat 0 Posted December 21, 2018 Author Share 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 Link to comment Share on other sites More sharing options...
Luke 37250 Posted December 21, 2018 Share Posted December 21, 2018 There is not currently such a way. It's possible for the future though. Thanks. Link to comment Share on other sites More sharing options...
ivaat 0 Posted December 21, 2018 Author Share 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? Link to comment Share on other sites More sharing options...
Luke 37250 Posted December 21, 2018 Share Posted December 21, 2018 That is in config files under the server's program data folder, /config/users 1 Link to comment Share on other sites More sharing options...
ivaat 0 Posted December 21, 2018 Author Share 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 Link to comment Share on other sites More sharing options...
Luke 37250 Posted December 22, 2018 Share Posted December 22, 2018 yea this might be difficult, but the values are in the users.db file. Link to comment Share on other sites More sharing options...
ivaat 0 Posted December 22, 2018 Author Share 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? Link to comment Share on other sites More sharing options...
Luke 37250 Posted December 22, 2018 Share Posted December 22, 2018 The guid column in users. Db Link to comment Share on other sites More sharing options...
ivaat 0 Posted December 22, 2018 Author Share Posted December 22, 2018 guid is empty Link to comment Share on other sites More sharing options...
ivaat 0 Posted January 3, 2019 Author Share Posted January 3, 2019 The guid column in users. Db to you have more suggestions? as mentioned. guid column is empty Link to comment Share on other sites More sharing options...
Luke 37250 Posted January 3, 2019 Share Posted January 3, 2019 I think you will have an easier time with the api. Link to comment Share on other sites More sharing options...
Thuzad 42 Posted January 3, 2019 Share Posted January 3, 2019 I do a small script for create users and modfied password and other settings. What OS emby server running ? Link to comment Share on other sites More sharing options...
ivaat 0 Posted January 4, 2019 Author Share 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 Link to comment Share on other sites More sharing options...
ivaat 0 Posted January 6, 2019 Author Share 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? Link to comment Share on other sites More sharing options...
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