Skip to main content
View as Markdown

Login & Credentials - Content Management

Login & Credentials​

Enable Login​

Grant a user the ability to log in with email + password:

curl -X POST "$KALTURA_SERVICE_URL/service/user/action/enableLogin" \
-d "ks=$KALTURA_KS" \
-d "format=1" \
-d "userId=jane.doe@example.com" \
-d "loginId=jane.doe@example.com" \
-d "password=SecureP@ssw0rd123"
ParameterTypeRequiredDescription
userIdstringYesUser to enable login for
loginIdstringYesLogin identifier (typically the email)
passwordstringNoInitial password (auto-generated if omitted)

After enabling login, the user's loginEnabled field becomes true.

Disable Login​

curl -X POST "$KALTURA_SERVICE_URL/service/user/action/disableLogin" \
-d "ks=$KALTURA_KS" \
-d "format=1" \
-d "userId=jane.doe@example.com"

Removes the user's ability to log in with credentials. SSO login via Auth Broker is not affected by this setting.

Login by Credentials​

curl -X POST "$KALTURA_SERVICE_URL/service/user/action/loginByLoginId" \
-d "format=1" \
-d "loginId=jane.doe@example.com" \
-d "password=SecureP@ssw0rd123" \
-d "partnerId=$KALTURA_PARTNER_ID"
ParameterTypeRequiredDescription
loginIdstringYesLogin identifier (typically email)
passwordstringYesUser password
partnerIdintegerYesPartner ID to log in to
expiryintegerNoKS expiry in seconds (default: 86400)
privilegesstringNoComma-separated KS privileges
otpstringNoOne-time password for accounts with 2FA enabled

Returns a KS string on success. This action does not require an existing KS.

Password complexity requirements: Passwords must meet the account's configured policy. The default requires at least 8 characters, including uppercase, lowercase, digits, and special characters. If the password is invalid, the API returns PASSWORD_STRUCTURE_INVALID.

Reset Password​

curl -X POST "$KALTURA_SERVICE_URL/service/user/action/resetPassword" \
-d "format=1" \
-d "email=jane.doe@example.com"
ParameterTypeRequiredDescription
emailstringYesEmail address of the user whose password should be reset

Sends a password reset email. Does not require a KS. The email contains a hash key used with setInitialPassword (section 7.5).

Set Initial Password​

curl -X POST "$KALTURA_SERVICE_URL/service/user/action/setInitialPassword" \
-d "format=1" \
-d "hashKey=$HASH_KEY" \
-d "newPassword=NewSecureP@ss456"
ParameterTypeRequiredDescription
hashKeystringYesHash key from the password reset or invitation email
newPasswordstringYesNew password (must meet account password complexity requirements)

Sets a password using a hash key received via email (from resetPassword or invitation). Does not require a KS. The new password must meet the account's configured complexity policy (see section 7.3 for password requirements).