• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Add User with APi bug

     
    • 0 Vote(s) - 0 Average

    Add User with APi bug

    PasswordResetProviderId / AuthenticationProviderId field is required
    flux
    Offline

    Junior Member

    Posts: 5
    Threads: 3
    Joined: 2024 Oct
    Reputation: 0
    #1
    2024-11-05, 01:24 PM (This post was last modified: 2024-11-05, 01:27 PM by flux. Edited 1 time in total.)
    Hi,

    I'm trying to add user with PHP form + API CURL call

    I can create user but I can't manage permission I have some error :

    Code:
    API Policy : {"type":"https://tools.ietf.org/html/rfc9110#section-15.5.1","title":"One or more validation errors occurred.","status":400,"errors":{"PasswordResetProviderId":["The PasswordResetProviderId field is required."],"AuthenticationProviderId":["The AuthenticationProviderId field is required."]}


    This is what I tried :


    Code:
    $policy = array(
    "IsAdministrator" => false,
    "IsHidden" => false,
    "IsDisabled" => false,
    "EnableAudioPlaybackTranscoding" => false,
    "EnableVideoPlaybackTranscoding" => false,
    "EnableMediaConversion" => false,
    "EnablePublicSharing" => false,
    "EnableLiveTvManagement" => false,
    "EnableSyncTranscoding" => false,
    "AllowMediaDeletion" => false,
    "AllowRemoteControlOfOtherUsers" => false,
    "AllowRemoteAccess" => true,
    "EnableSubtitleDownloading" => false,
    "AllowCameraUpload" => false,
    "EnableContentDeletion" => false,
    "EnablePlaybackRemuxing" => false,
    "EnableMediaConversion" => false,
    "SyncPlayAccess" => "None",
    "AuthentificationProviderId" => false,
    "PasswordResetProviderId" => false,
    "RestrictedFeatures" => ["notifications"]
    );
    getPage("Users/" . $id . "/Policy", $policy);

    return true;

    With this part of code USER is created, but these options are still check into admin panel
    what to do with  AuthentificationProviderId and  PasswordResetProviderId please ?
    flux
    Offline

    Junior Member

    Posts: 5
    Threads: 3
    Joined: 2024 Oct
    Reputation: 0
    #2
    2024-11-05, 02:46 PM
    Found it here > https://forum.jellyfin.org/t-api-update-...75#pid9275

    thanks Smiling-face
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode