BIgdongdong1028 6 Posted April 2, 2025 Posted April 2, 2025 Hi everyone, Although I don’t have any programming background, I recently created something fun using AI and Emby’s public API — an automation tool for managing Emby users! Right now, most of the basic features are working well. For example: 1. Creating a new user with a randomly generated password 2. Importing existing users (for users who were created before automation) 3. Applying permission restrictions to users However, I’m having trouble with some specific settings in point 3. I can’t seem to disable the following user permissions: • Feature Access → Notifications • Subtitles → Allow camera upload • Allow social media sharing • Hide this user from login screens when connected remotely Also, I’m unable to set the Max simultaneous video streams value. This one is especially important for me, but no matter what I try, it doesn’t seem to work. Below is the permission-related code that my AI generated. Could anyone kindly tell me how to adjust it to achieve what I need? const policy = { IsAdministrator: permissions?.isAdmin || false, EnableAllFolders: permissions?.allFolders || true, EnableMediaPlayback: permissions?.mediaPlayback || true, EnableUserPreferenceAccess: permissions?.changeProfile || true, EnableRemoteControlOfOtherUsers: false, EnableSharedDeviceControl: false, EnableLiveTvAccess: false, EnableContentDeletion: false, EnableAudioPlaybackTranscoding: false, EnableVideoPlaybackTranscoding: false, EnablePlaybackRemuxing: false, EnableContentDownloading: false, EnableSyncTranscoding: false, EnableSubtitleDownloading: false, EnableCameraUpload: false, EnableMediaConversion: false, EnableSocialSharing: false, EnableLiveTvManagement: false, MaxActiveSessions: 2 };
adminExitium 355 Posted April 2, 2025 Posted April 2, 2025 An easy way to figure all this out yourself is to toggle/change the value in the UI, click Save and check the API request that's sent to the server. Compare the requests of the before/after change to see which parameter is getting changed.
Luke 42077 Posted April 2, 2025 Posted April 2, 2025 1 hour ago, adminExitium said: An easy way to figure all this out yourself is to toggle/change the value in the UI, click Save and check the API request that's sent to the server. Compare the requests of the before/after change to see which parameter is getting changed. Yes this is the best way to figure out why the value you're sending isn't being taken.
BIgdongdong1028 6 Posted April 4, 2025 Author Posted April 4, 2025 On 4/3/2025 at 1:41 AM, adminExitium said: An easy way to figure all this out yourself is to toggle/change the value in the UI, click Save and check the API request that's sent to the server. Compare the requests of the before/after change to see which parameter is getting changed. First of all thanks! I already know what the correct parameters are.' MaxActiveSessions' parameter is wrong and 'SimultaneousStreamLimit' is correct.
BIgdongdong1028 6 Posted April 4, 2025 Author Posted April 4, 2025 On 4/3/2025 at 2:57 AM, Luke said: Yes this is the best way to figure out why the value you're sending isn't being taken. First of all thanks! 'Simultaneous Stream Limit' is correct. 1
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