Problem/Motivation

This proposes to add an option for mappings between the AD groups and the Drupal Groups ( from the Group module https://www.drupal.org/project/group )

Initially, I was thinking to contribute this as an additional module, but thought to maybe give it a chance to add it as a patch.
There is an increasing demand for community websites which is evident from the Group module popularity https://www.drupal.org/project/usage/group.
Larger enterprises using Azure AD usually wish to split their user base into different departments so they are also benefitting from this.

Proposed resolution

The module currently implements functionality for mapping between the AD groups and Drupal roles. I am proposing to use a similar approach to map users to Drupal groups and re-use existing code where possible.

User interface changes

There will be some additional elements in the OpenID configuration page that allow for group mapping info.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

msti created an issue. See original summary.

msti’s picture

Assigned: Unassigned » msti

msti’s picture

Status: Needs work » Needs review
StatusFileSize
new322.48 KB

Update to config form

leanderjcc’s picture

Version: 8.x-1.x-dev » 2.0.x-dev
StatusFileSize
new19.76 KB

I created a patch based on the above MR to support the 2.0.x branch.

Patch needs review.

leanderjcc’s picture

Assigned: msti » Unassigned
Status: Needs review » Needs work
StatusFileSize
new20.23 KB

Patch from #5 did not add groups to userinfo.

Adding patch that fixes this issue.

The role mapping needs some work as this didn't seem to work.