1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Auto-Promote to groups

Discussion in 'XenForo Questions and Support' started by Robert Carey, Jul 10, 2012.

  1. Robert Carey

    Robert Carey Member

    Hi all,

    Can anyone tell me if there is a way (via addon perhaps?) to have users with specific emails automatically promoted to secondary user groups?

    i.e. bob@customerone.com joins and is autmatically added to the "Customer One" secondary group?


  2. Chris D

    Chris D XenForo Developer Staff Member

    Already built in.

    There's an option to apply the promotion while the user's e-mail address contains whatever text you define.

    You would just tick the box and type "customerone.com" and anyone registering with that e-mail address will be put into the Customer One group.

    email address contains.PNG
    Jake Bunce and ArnyVee like this.
  3. Robert Carey

    Robert Carey Member

    Outstanding - many thanks.

    Can't believe I missed that in the admin console.
  4. Robert Carey

    Robert Carey Member

    Is there a cache delay or lag on this? Doesn't appear to be working.

    **EDIT** Perhaps I misunderstood. This will not retroactively promote users will it? This is only good on new registrations yes?
  5. Chris D

    Chris D XenForo Developer Staff Member

    There is a delay, yes. The User Group Promotions process is a cron job that runs once every one hour.

    You can force it to run immediately by going to:

    Admin CP > Tools > Cron Entries

    Under the Controls menu of the "User Group Promotions" item, select "Run".

    This should run it immediately for you.

    Therefore it will retroactively promote users (and indeed proactively remove them from it if they change their e-mail address).
    Jake Bunce likes this.
  6. Robert Carey

    Robert Carey Member

    You sir are a big help :) - again, many thanks!

    Yorick likes this.

Share This Page