Flagsmith / flagsmith

Open Source Feature Flagging and Remote Config Service. Host on-prem or use our hosted version at https://flagsmith.com/
https://flagsmith.com/
BSD 3-Clause "New" or "Revised" License
4.9k stars 375 forks source link

Ability to assign a default organization to a new user logged in via google SSO #4670

Open nishant-shah-social opened 1 month ago

nishant-shah-social commented 1 month ago

Is your feature request related to a problem? Please describe.

We are running flagsmith self-hosted & have google SSO implemented. Whenever a new user logs in via the SSO, he/she does not get assigned to any organization. Admin has to explicitly send him/her an invite url to be able to join an organization.

Describe the solution you'd like.

It would be good to have a default organization assigned to this new user. May be an environment variable in the app which could control this? We saw there is a similar environment variable available with LDAP integration, i.e. LDAP_DEFAULT_FLAGSMITH_ORGANISATION_ID A similar for Google SSO might be really helpful as well.

Describe alternatives you've considered

N/A

Additional context

No response

matthewelwell commented 1 month ago

Thanks @nishant-shah-social , I agree that this would be useful functionality. We would love to receive a PR if you're willing to do so.