sourcegraph / sourcegraph-public-snapshot

Code AI platform with Code Search & Cody
https://sourcegraph.com
Other
10.12k stars 1.29k forks source link

RFE: Automatically promote users to administrator based on SAML attribute #43054

Open mike-r-mclaughlin opened 2 years ago

mike-r-mclaughlin commented 2 years ago

Requested by: https://github.com/sourcegraph/accounts/issues/3, https://github.com/sourcegraph/accounts/issues/8405, https://github.com/sourcegraph/accounts/issues/5

Feature request description

It would be nice to automatically promote users to the administrator role based on an attribute in SAML. For example, if a user belongs to a group called "Sourcegraph administrators", it would be nice if they would automatically be promoted to site admin on the first login.

Is your feature request related to a problem? If so, please describe.

Currently, admins must be promoted manually by another site admin.

Additional context

/cc @sourcegraph/source/iam

qaisjp commented 7 months ago

Similarly, when a user logs into Sourcegraph using the SAML auth provider, if the user is currently a site admin but not in the correct SAML group, they should be demoted.