Jump to content

a few basic questions from newbie


Recommended Posts

mydublue
Posted

Hi, I m a newbie. I m trying to create new user, setup password, setup config, etc. using api. The server version 4.8.8 and I m using PHP.

This is my current default configuration for new users:

'default_user_policy' => [
    'IsAdministrator' => false,
    'IsHidden' => false,
    'IsHiddenRemotely' => true,
    'IsHiddenFromUnusedDevices' => false,
    'IsDisabled' => false,
    'LockedOutDate' => 0,
    'AllowTagOrRating' => false,
    'BlockedTags' => [],
    'IsTagBlockingModeInclusive' => false,
    'IncludeTags' => [],
    'EnableUserPreferenceAccess' => true,
    'AccessSchedules' => [],
    'BlockUnratedItems' => [],
    'EnableRemoteControlOfOtherUsers' => false,
    'EnableSharedDeviceControl' => true,
    'EnableRemoteAccess' => true,
    'EnableLiveTvManagement' => false,
    'EnableLiveTvAccess' => false,
    'EnableMediaPlayback' => true,
    'EnableAudioPlaybackTranscoding' => true,
    'EnableVideoPlaybackTranscoding' => true,
    'EnablePlaybackRemuxing' => true,
    'EnableContentDeletion' => false,
    'RestrictedFeatures' => [],
    'EnableContentDeletionFromFolders' => [],
    'EnableContentDownloading' => false,
    'EnableSubtitleDownloading' => true,
    'EnableSubtitleManagement' => false,
    'EnableSyncTranscoding' => true,
    'EnableMediaConversion' => false,
    'EnabledChannels' => [],
    'EnableAllChannels' => true,
    'EnabledFolders' => [],
    'EnableAllFolders' => true,
    'InvalidLoginAttemptCount' => 5,
    'EnablePublicSharing' => false,
    'RemoteClientBitrateLimit' => 0,
    'ExcludedSubFolders' => [],
    'SimultaneousStreamLimit' => 2,
    'EnabledDevices' => [],
    'EnableAllDevices' => true,
    'AllowCameraUpload' => false,
    'AllowSharingPersonalItems' => false,
],

So, can someone help with me about following questions please:

Q1: what does "IsHiddenRemotely" mean? cannot see the user if linking through http?

Q2: what is the date format for "LockedOutDate"? Can I use Carbon like this:

'LockedOutDate' => \Illuminate\Support\Carbon::tomorrow()

Q3: what is the rate unit for "RemoteClientBitrateLimit"? Bytes?MB?

Q4: If I disable "EnableVideoPlaybackTranscoding", does that mean the user cannot play the video directly in the browser (which normally requires transcoding by server)?

Q5: In api function /Users/{id}/Authenticate, there are two parameters: Pw and Password. Why are there two of them? what's the difference?

Q6: What is Easy Password? To change a user's password, should I use /Users/{id}/Password or /Users/{id}/EasyPassword?

Q7: If authenticating as an administrator (using api token), how can I modify user's password without knowing their current password?

Q8: in api function /Users/{id}/Password, what does the last parameter "ResetPassword" mean? Should I set it to true or false?

Q9: in configuration, what does "EnableLocalPassword" option mean? Should I set it to true or false?

  • 2 weeks later...
Posted

Hi, most of these map to permissions that are on the user setup screen. have you looked at that?

Posted
Quote

Q2: what is the date format for "LockedOutDate"? Can I use Carbon like this:

ISO date format.

Posted
Quote

Q3: what is the rate unit for "RemoteClientBitrateLimit"? Bytes?MB?

this is in bytes.

Posted
Quote

Q5: In api function /Users/{id}/Authenticate, there are two parameters: Pw and Password. Why are there two of them? what's the difference?

Use pw. Password is legacy. EnableLocalPassword, EasyPassword also legacy.

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...