user_controller = client .user
UserController
Authenticates a user.
def authenticate_user (self ,
user_id ,
pw ,
password = None )
Parameter
Type
Tags
Description
user_id
uuid|string
Template, Required
The user id.
pw
string
Query, Required
The password as plain text.
password
string
Query, Optional
The password sha1-hash.
AuthenticationResult
user_id = '000013ec-0000-0000-0000-000000000000'
pw = 'pw0'
result = user_controller .authenticate_user (user_id , pw )
Authenticate User by Name
Authenticates a user by name.
def authenticate_user_by_name (self ,
body )
Parameter
Type
Tags
Description
body
AuthenticateUserByName
Body, Required
The M:Jellyfin.Api.Controllers.UserController.AuthenticateUserByName(Jellyfin.Api.Models.UserDtos.AuthenticateUserByName) request.
AuthenticationResult
body = AuthenticateUserByName ()
result = user_controller .authenticate_user_by_name (body )
Authenticate With Quick Connect
Authenticates a user with quick connect.
def authenticate_with_quick_connect (self ,
body )
Parameter
Type
Tags
Description
body
QuickConnectDto
Body, Required
The Jellyfin.Api.Models.UserDtos.QuickConnectDto request.
AuthenticationResult
body = QuickConnectDto ()
body .secret = 'Secret6'
result = user_controller .authenticate_with_quick_connect (body )
HTTP Status Code
Error Description
Exception Class
400
Missing token.
APIException
Creates a user.
def create_user_by_name (self ,
body )
Parameter
Type
Tags
Description
body
CreateUserByName
Body, Required
The create user by name request body.
UserDto
body = CreateUserByName ()
result = user_controller .create_user_by_name (body )
HTTP Status Code
Error Description
Exception Class
401
Unauthorized
APIException
403
Forbidden
APIException
Deletes a user.
def delete_user (self ,
user_id )
Parameter
Type
Tags
Description
user_id
uuid|string
Template, Required
The user id.
void
user_id = '000013ec-0000-0000-0000-000000000000'
result = user_controller .delete_user (user_id )
HTTP Status Code
Error Description
Exception Class
401
Unauthorized
APIException
403
Forbidden
APIException
404
User not found.
ProblemDetailsException
Initiates the forgot password process for a local user.
def forgot_password (self ,
body )
Parameter
Type
Tags
Description
body
ForgotPasswordDto
Body, Required
The forgot password request containing the entered username.
ForgotPasswordResult
body = ForgotPasswordDto ()
body .entered_username = 'EnteredUsername0'
result = user_controller .forgot_password (body )
Redeems a forgot password pin.
def forgot_password_pin (self ,
body )
Parameter
Type
Tags
Description
body
ForgotPasswordPinDto
Body, Required
The forgot password pin request containing the entered pin.
PinRedeemResult
body = ForgotPasswordPinDto ()
body .pin = 'Pin0'
result = user_controller .forgot_password_pin (body )
Gets the user based on auth token.
def get_current_user (self )
UserDto
result = user_controller .get_current_user ()
HTTP Status Code
Error Description
Exception Class
400
Token is not owned by a user.
ProblemDetailsException
401
Unauthorized
APIException
403
Forbidden
APIException
Gets a list of publicly visible users for display on a login screen.
def get_public_users (self )
List of UserDto
result = user_controller .get_public_users ()
Gets a user by Id.
def get_user_by_id (self ,
user_id )
Parameter
Type
Tags
Description
user_id
uuid|string
Template, Required
The user id.
UserDto
user_id = '000013ec-0000-0000-0000-000000000000'
result = user_controller .get_user_by_id (user_id )
HTTP Status Code
Error Description
Exception Class
401
Unauthorized
APIException
403
Forbidden
APIException
404
User not found.
ProblemDetailsException
Gets a list of users.
def get_users (self ,
is_hidden = None ,
is_disabled = None )
Parameter
Type
Tags
Description
is_hidden
bool
Query, Optional
Optional filter by IsHidden=true or false.
is_disabled
bool
Query, Optional
Optional filter by IsDisabled=true or false.
List of UserDto
result = user_controller .get_users ()
HTTP Status Code
Error Description
Exception Class
401
Unauthorized
APIException
403
Forbidden
APIException
Updates a user.
def update_user (self ,
user_id ,
body )
Parameter
Type
Tags
Description
user_id
uuid|string
Template, Required
The user id.
body
UserDto
Body, Required
The updated user model.
void
user_id = '000013ec-0000-0000-0000-000000000000'
body = UserDto ()
result = user_controller .update_user (user_id , body )
Update User Configuration
Updates a user configuration.
def update_user_configuration (self ,
user_id ,
body )
Parameter
Type
Tags
Description
user_id
uuid|string
Template, Required
The user id.
body
UserConfiguration
Body, Required
The new user configuration.
void
user_id = '000013ec-0000-0000-0000-000000000000'
body = UserConfiguration ()
result = user_controller .update_user_configuration (user_id , body )
HTTP Status Code
Error Description
Exception Class
401
Unauthorized
APIException
403
User configuration update forbidden.
ProblemDetailsException
Update User Easy Password
Updates a user's easy password.
def update_user_easy_password (self ,
user_id ,
body )
Parameter
Type
Tags
Description
user_id
uuid|string
Template, Required
The user id.
body
UpdateUserEasyPassword
Body, Required
The M:Jellyfin.Api.Controllers.UserController.UpdateUserEasyPassword(System.Guid,Jellyfin.Api.Models.UserDtos.UpdateUserEasyPassword) request.
void
user_id = '000013ec-0000-0000-0000-000000000000'
body = UpdateUserEasyPassword ()
result = user_controller .update_user_easy_password (user_id , body )
Updates a user's password.
def update_user_password (self ,
user_id ,
body )
Parameter
Type
Tags
Description
user_id
uuid|string
Template, Required
The user id.
body
UpdateUserPassword
Body, Required
The M:Jellyfin.Api.Controllers.UserController.UpdateUserPassword(System.Guid,Jellyfin.Api.Models.UserDtos.UpdateUserPassword) request.
void
user_id = '000013ec-0000-0000-0000-000000000000'
body = UpdateUserPassword ()
result = user_controller .update_user_password (user_id , body )
Updates a user policy.
def update_user_policy (self ,
user_id ,
body )
Parameter
Type
Tags
Description
user_id
uuid|string
Template, Required
The user id.
body
UserPolicy
Body, Required
The new user policy.
void
user_id = '000013ec-0000-0000-0000-000000000000'
body = UserPolicy ()
result = user_controller .update_user_policy (user_id , body )