Automatic role population

Created on 13 April 2023, over 1 year ago

Hi,

I have installed this module in Drupal 9 and all is working fine, but i have a problem with automatic role population. Docs. says: "A pipe separated list of rules. Each rule consists of a Drupal role id ... ". This worked fine in Drupal 7, but in Drupal 9 there is no more roles table, so i don't know how to get role id? Also, documentation is a bit contradictory bcs. in the next paragraph it gives example - "staff:eduPersonPrincipalName,@=,uninett.no;affiliation,=,employee|admin:mail,=,andreas@uninett.no" where staff is obviously not a role id but a role name. I tried that way too, but it's not working. Thx.

🐛 Bug report
Status

Active

Version

3.3

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • 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.

Production build 0.71.5 2024