Answers.Body: <p>Making the account inactive is probably not the best user experience.  You could use <a href="https://docs.civicrm.org/sysadmin/en/latest/integration/drupal/#civimember-roles-sync" rel="noreferrer">CiviMember Roles Sync</a>, permission your member content appropriately and show your inactive members the renewal page.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-06-06T20:23:53.410Z
Answers.Text: Agree you should be able to do this as described if you make sure that Authorised 'role' in Drupal has effectively no additional permissions to Anon, and make a Member have a 'member role' as Aidan describes. Then a lapsed Member still has an 'account' but it doesn't give them anything extra when they log in other than a link you would provide for them to Renew, Rejoin.
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-06-07T11:44:15.020Z
Answers.Text: CiviMember Roles Sync is perfect for this - we use it for many projects even if the org does not sell any memberships as it gives administrators the opportunity to control what logged in users can see/access simply by changing their Membership status (eg at different stages of going through a Volunteer application process);
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-06-06T11:45:22.240Z
Answers.LastActivityDate: 2019-06-06T11:45:22.240Z
Answers.UserDisplayName: Aidan
Body: <p>We are running on Drupal 7.67 and Civi 5.13.4.</p>
  
  <p>Our client wants to be able to block users whose memberships have expired and request them to contact the client to reinstate their membership.</p>
  
  <p>We have been trying to build a custom module to be able to do this and are finding it challenging. </p>
  
  <p>Is there any way that we would be able to use the CiviMember Role Sync or the CiviGroup Role Sync modules to help us achieve this is a simpler manner? If not, how should we proceed.</p>
  
  <p>Thank you</p>
  
Tags: <civimember>
Title: Can we automatically make a users Drupal account inactive when their membership expires?
ThreadText: # Can we automatically make a users Drupal account inactive when their membership expires?
  
  (Asked by: username_0 on 2019-06-06)
  
  We are running on Drupal 7.67 and Civi 5.13.4.
  
  Our client wants to be able to block users whose memberships have expired and request them to contact the client to reinstate their membership.
  
  We have been trying to build a custom module to be able to do this and are finding it challenging.
  
  Is there any way that we would be able to use the CiviMember Role Sync or the CiviGroup Role Sync modules to help us achieve this is a simpler manner? If not, how should we proceed.
  
  Thank you
  
  **Tags:** civimember
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-06-06. Score: 6 | Accepted answer
  
  Making the account inactive is probably not the best user experience. You could use [CiviMember Roles Sync](https://docs.civicrm.org/sysadmin/en/latest/integration/drupal/#civimember-roles-sync), permission your member content appropriately and show your inactive members the renewal page.
  
  > **Comments:**
  > **username_2**: Agree you should be able to do this as described if you make sure that Authorised 'role' in Drupal has effectively no additional permissions to Anon, and make a Member have a 'member role' as username_1 describes. Then a lapsed Member still has an 'account' but it doesn't give them anything extra when they log in other than a link you would provide for them to Renew, Rejoin.  
  > **username_3**: CiviMember Roles Sync is perfect for this - we use it for many projects even if the org does not sell any memberships as it gives administrators the opportunity to control what logged in users can see/access simply by changing their Membership status (eg at different stages of going through a Volunteer application process);  
  
  ---
  
  