Jellyfin Forum
Add User with APi bug - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Add User with APi bug (/t-add-user-with-api-bug)



Add User with APi bug - flux - 2024-11-05

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 ?


RE: Add User with APi bug - flux - 2024-11-05

Found it here > https://forum.jellyfin.org/t-api-update-user?pid=9275#pid9275

thanks Smiling-face