python-keycloak icon indicating copy to clipboard operation
python-keycloak copied to clipboard

API for changing execute action subjectline

Open althaf004 opened this issue 3 years ago • 1 comments

hi, Is it possible to have an api to change the subject of execute action emails send from keycloak,like

keycloak_admin.execute_actions.execute_action(user_id_keycloak, "VERIFY_EMAIL", subject="Verify Email")

This api will be so helpful.

althaf004 avatar Dec 12 '22 05:12 althaf004

Hi @althaf004

We already have methods for executing email actions, f.e. update account or verify email.

If you wish to customize the emails which are being sent, that has to be done on the Keycloak server side using the templates (see https://stackoverflow.com/questions/55349721/is-it-possible-to-change-the-email-content-in-keycloak and https://www.keycloak.org/docs/latest/server_development/#creating-a-theme). These customizations are not customizable via the API and therefore can't be supported with this library.

Is this answering your request?

ryshoooo avatar Dec 13 '22 22:12 ryshoooo