Answers.Body: <p>You can do this with a custom extension - I recommend checking out the <a href="https://docs.civicrm.org/dev/en/master/hooks/hook_civicrm_aclGroup/" rel="nofollow noreferrer">documentation for hook_civicrm_aclGroup</a> and maybe for <a href="https://docs.civicrm.org/dev/en/master/hooks/hook_civicrm_permission/" rel="nofollow noreferrer">hook_civicrm_permission</a> as well - the second hook will give you an easy UI to control which roles can't register.  The good news is that this is a simple extension as these things go - maybe 30 lines of code should do you.</p>
  
  <p>Without a custom extension, there's no way to do this that I can think of.  However, consider a) having a separate login for each user, and b) installing the <a href="https://civicrm.org/extensions/no-overwrite" rel="nofollow noreferrer">No Overwrite</a> extension as alternatives to mitigate this issue.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-09T17:07:37.693Z
Answers.LastActivityDate: 2017-08-09T17:07:37.693Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>Is it possible to prevent a user with a specific role from being able to register for ANY EVENT?</p>
  
  <p>There is a Drupal permission for event registration. It is unchecked for that role, but doesn't seem to have any affect (assuming since anonymous is allowed to register) as users with that role can still register. On the CiviCRM side there are ACLs. If I allow "everyone" to register then it includes all roles. I don't see any way to exclude them. </p>
  
  <p>This is pretty important as we have a global login for several users. People don't read clearly and end up registering as the wrong person...</p>
  
  <p>Thanks!</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-08-08T20:38:27.320Z
Comments.Text: So you want users A, B and C, who all have the Role X to not be able to Register while logged in, but D, E and F who may have Roles Y and/or Z (but not X) to be able to register?
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-08-09T13:42:44.607Z
Comments.Text: Correct. I also need to be sure that anonymous users can register. Worst case I would be fine with ONLY allowing anonymous users to register.
Comments.UserDisplayName: Sleewok
Tags: <civievent><permissions><registration><online-registration>
Title: Prevent Event Registration for a Specific Role (Drupal)
ThreadText: # Prevent Event Registration for a Specific Role (Drupal)
  
  (Asked by: username_0 on 2017-08-08)
  
  Is it possible to prevent a user with a specific role from being able to register for ANY EVENT?
  
  There is a Drupal permission for event registration. It is unchecked for that role, but doesn't seem to have any affect (assuming since anonymous is allowed to register) as users with that role can still register. On the CiviCRM side there are ACLs. If I allow "everyone" to register then it includes all roles. I don't see any way to exclude them.
  
  This is pretty important as we have a global login for several users. People don't read clearly and end up registering as the wrong person...
  
  Thanks!
  
  **Tags:** civievent, permissions, registration, online-registration
  
  > **Comments:**
  > **username_1**: So you want users A, B and C, who all have the Role X to not be able to Register while logged in, but D, E and F who may have Roles Y and/or Z (but not X) to be able to register?  
  > **username_0**: Correct. I also need to be sure that anonymous users can register. Worst case I would be fine with ONLY allowing anonymous users to register.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2017-08-09. Score: 1 | Accepted answer
  
  You can do this with a custom extension - I recommend checking out the [documentation for hook\_civicrm\_aclGroup](https://docs.civicrm.org/dev/en/master/hooks/hook_civicrm_aclGroup/) and maybe for [hook\_civicrm\_permission](https://docs.civicrm.org/dev/en/master/hooks/hook_civicrm_permission/) as well - the second hook will give you an easy UI to control which roles can't register. The good news is that this is a simple extension as these things go - maybe 30 lines of code should do you.
  
  Without a custom extension, there's no way to do this that I can think of. However, consider a) having a separate login for each user, and b) installing the [No Overwrite](https://civicrm.org/extensions/no-overwrite) extension as alternatives to mitigate this issue.
  
  
  ---
  
  