Add role to user after joining organic group with rules I'm trying to add a user role to a user who has become a member of a group. The workflow is like this:


User requests to join group. 
Request is approved by group administrator.
User is a member of the group.
User gets an additional role.


I've tried to make a rule which would be able to do this, but although all the settings seem correct after joining the group the user doesn't get the additional role. See below a screenshot of my rule settings:
Now your Rule runs after user requests membership. But you should run it after OG membership was approved.
I prepared Rule which adds role “member” after membership was approved or if it was added by admin (auto-approved). Here is export (4 is id of my drupal role “member”): 

{ "rules_after_add_user_to_group" : {
    "LABEL" : "After add user to group",
    "PLUGIN" : "reaction rule",
    "TAGS" : [ "test" ],
    "REQUIRES" : [ "rules", "og" ],
    "ON" : [ "og_user_insert", "og_user_approved" ],
    "IF" : [ { "data_is" : { "data" : [ "og-membership:state" ], "value" : "1" } } ],
    "DO" : [
      { "user_add_role" : { "account" : [ "account" ], "roles" : { "value" : { "4" : "4" } } } }
    ]
  }
}


Screenshot:
 

Tip: you can enable Rules debug (page admin/config/workflow/rules/settings) to see when your rules are executed.