Crivaledaz / Mattermost-LDAP

This module provides an external LDAP authentication in Mattermost for the Team Edition (free).
MIT License
359 stars 71 forks source link

Pass user LDAP groups #94

Open pvyaka01 opened 2 years ago

pvyaka01 commented 2 years ago

Is your feature request related to a problem? Please describe. I have hubot listening to events from mattermost for further actions. Currently in the payload I see username, room, email_address, first_name, last_name, roles (mattermost roles). Will be great to get LDAP groups passed in as well. This will help in adding ACLs in hubot or some other plugin for more control on what users in a specific group can/cannot do

Describe the solution you'd like payload to contain LDAP group(s) the user belongs to

Describe alternatives you've considered Alternative is to base the controls on room or user names. With a lot of users, this will quickly become cumbersome

Is this possible/easy to do or is there something I need to set within mattermost?

Thank you!

WanpengQian commented 1 year ago

I think this should be done on your side, not in mattermost-ldap. After you receive the events, you can fire another LDAP query to retrieve whatever information you need at that time.