ktbartholomew / saml-20-single-sign-on

Wordpress plugin that makes a Wordpress site act as a SAML service provider
GNU General Public License v2.0
37 stars 22 forks source link

WP resolving the lowest group entry for a given user #18

Open taupehat opened 7 years ago

taupehat commented 7 years ago

In our situation we have a set of AD groups that are members of the WP Editors group, and then certain people who are in those AD groups are also members of the WP Admins group. This is configured properly in the SSO configuration, but unfortunately when an admin who is also an editor logs on, WP connects that user as a member of the lesser-privileged group.

I've verified this by watching the wp_capabilities key in wp_usermeta while adding and removing an AD group from the WP Editors group and confirming that said user becomes a WP admin at next logon.

This would be the equivalent of somebody being a member of the group "root" on a machine but only given access to whatever privileges "users" has because the host is resolving the lesser-privileged group.

Is there a way to reverse this so that the highest-privileged group membership is the one resolved by wordpress?