Set "Required Actions" based on LDAP

Is it possible to import the “Required Actions” (like CONFIGURE_OTP) from a LDAP-attribute with a ldap-provider as user federation in edit mode WRITABLE.

I tried to configure a mapper myLdapAttribute->required action and this sets a required action attribute, but not the actual required actions field. It also (obviously) doesn’t allow changing the required actions of a user, which will fail with:

Could not update user!: org.keycloak.models.ModelException: Not possible to write ‘required action UPDATE_PASSWORD’ when updating user ‘test’

I think this question is essentially the same as this unanswered questions from 2 years ago: