Jump to content

API Question about 'RestrictedFeatures'


Recommended Posts

Posted

Hi there,

Looking through the API documentation (to automate some settings) I found the setting:

Quote

RestrictedFeatures   array

API Docs: https://dev.emby.media/reference/RestAPI/UserService/postUsersById.html#MediaBrowser_Model_Users_UserPolicy

But there is no explanation around to which features it refers to. 

Not sure if it relates to this?
https://dev.emby.media/reference/RestAPI/FeatureService/getFeatures.html

Any clarification would be helpful. Thanks!

Posted

HI if you click on a user in user setup and you see a feature list. I believe it corresponds to that.

Posted

Ah, I see. That makes sense...

I guess I was a bit distracted because the first two points are separate settings:

image.png.5fbad228b15a2a9c12a36188a8d2459f.png

As in:

        "EnableLiveTvManagement": false,
        "EnableLiveTvAccess": true,

When using "/Features" API point, it reveals these:

$ curl -X GET -H "X-Emby-Token: API" "http://localhost:8096/emby/Features"
[{"Name":"Email","Id":"notifications.emailnotifications","FeatureType":"User"},{"Name":"Notifications","Id":"notifications","FeatureType":"User"},{"Name":"Webhooks","Id":"notifications.webhooknotifications","FeatureType":"User"}]

Disabling this works however: (but I don't think "notifications.webhooknotifications" and "notifications.emailnotifications" to be needed)

       "RestrictedFeatures": ["notifications", "notifications.webhooknotifications", "notifications.emailnotifications"],

Thanks for the pointer!

  • Thanks 1
Posted

Right those predated the new generic list being created.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...