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 :
This is what I tried :
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 ?
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 ?