Action for assigning default Role does not work

Hm you are right.
Then it’s not clear for me why this code does not work.

Also thanks for your link, I will change code to use another qaction for that.