- Issue created by @orcalator
- 🇨🇭Switzerland berdir Switzerland
> where staff is obviously not a role id but a role name.
That's not obvious at all. Like most things, roles are configuration, specifically configuration entities and they have machine names, not numeric ids. You see their machine names in the edit form as well as URL's.
Berdir,
As i stated, i also tried with a role machine name but it didn't work. I got a user with no roles assigned. I worked with this in Drupal 7 and there you had a "role" table, so you could take a look of a role id and that's it. Here, there is no role table and there is no role id. Yes, you have config table and yes you have machine name of a role, but as i said, this doesn't work for me.
Regards.