Answers.Body: <p>Welcome to CiviCRM SE.</p>
  <p>You can use <a href="https://civicrm.org/extensions/civirules" rel="nofollow noreferrer">Civi Rules</a> extension, and create a rule with</p>
  <ol>
  <li>trigger &gt; 'Contact is Added to the Group'</li>
  <li>Condition &gt; Group = ABC</li>
  <li>Action &gt; Add membership</li>
  </ol>
  <p>HTH</p>
  <p>Pradeep</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-12-16T20:42:09.877Z
Answers.LastActivityDate: 2022-12-16T20:42:09.877Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>I'm looking for a way to have Civi take all the people in a group and sign them up for a membership of a specific type, then remove them from the group. My hunch is that this should be done in scheduled jobs, but I have 0 familiarity with API and I have no idea how to write it.
  For background, I'm using the integration with Ninja Forms, which doesn't appear to have a way to create or update memberships automatically. I can get it to add someone to a group after filling out a form, so I'm hoping there's a way to automate the workflow within Civi to get them from the group to the membership.</p>
  
Tags: <civimember><scheduled-job>
Title: Create automation to add membership for all in group
ThreadText: # Create automation to add membership for all in group
  
  (Asked by: username_0 on 2022-12-16)
  
  I'm looking for a way to have Civi take all the people in a group and sign them up for a membership of a specific type, then remove them from the group. My hunch is that this should be done in scheduled jobs, but I have 0 familiarity with API and I have no idea how to write it.
  For background, I'm using the integration with Ninja Forms, which doesn't appear to have a way to create or update memberships automatically. I can get it to add someone to a group after filling out a form, so I'm hoping there's a way to automate the workflow within Civi to get them from the group to the membership.
  
  **Tags:** civimember, scheduled-job
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-12-16. Score: 1
  
  Welcome to CiviCRM SE.
  
  You can use [Civi Rules](https://civicrm.org/extensions/civirules) extension, and create a rule with
  
  1. trigger > 'Contact is Added to the Group'
  2. Condition > Group = ABC
  3. Action > Add membership
  
  HTH
  
  Pradeep
  
  
  ---
  
  