Hi @teocomi and all,
I found the issue. It might be obvious for you, but clearly wasn’t for me.
You have to invite the user first, than accept the invite, than you can update the role. I skipped the first two steps.
Thank you all.
Btw if you have any idea how to do it in one step, it would be great to know.