Skip to content

Drupal module that allows the administrator to assign specific roles to new users depending on their email domain.

Notifications You must be signed in to change notification settings

m-emerson/emailroleassign

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

emailroleassign

Lightweight drupal module that allows administrators to set up automated role assignment depending on the user's email domain name.

For Drupal 7.x, place the emailroleassign folder in [drupalinstallation]/sites/all/modules/ and enable the module from the Drupal administrator module configuration page.

The configuration page can then be found at [drupalurl]/admin/config/emailroleassign.

custom_hook.php

Custom hook for the simplesaml authentication module for Moodle. Allows the synchronization of drupal roles that have the same Moodle role short name. Upon account creation, the saml roles are checked to see if any equivalent short names exist as a moodle role, if so they are assigned to the new user. The permissions of this role have to be set in Moodle's configuration, as the custom hook is only responsible for assigning the role, not for any role permissions. This file replaces the custom_hook.php file in [moodle_installation]/auth/saml/custom_hook.php.

About

Drupal module that allows the administrator to assign specific roles to new users depending on their email domain.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages