getsentry / getsentry/sentry

SAML group sync

Open
#63,024 3 comments 10 reactions 0 assignees View on GitHub
Improvement Product Area: Sign In
Dominant language
Python
Stars
44.8k
Forks
4.9k
Avg merge
1d 5h
Merged PRs (30d)
624

Description

### Problem Statement

Hey everyone. We're in process of self-hosting sentry in our company to make it a part of our internal developer platform, along with some other tools. To authorize developers and manage access in all the tools we use SSO [keycloak], connecting it through (mostly) OIDC. Sentry does support SAML, which helps with logging users in, but it lacks groups sync to manage users' access to projects. The groups claim is passed from SSO to sentry as `http://schemas.xmlsoap.org/claims/Group` attribute, but sentry doesn't use it.

Something like this is done by SCIM, but as far as I understood it syncs only the list of groups, not mapping users.

### Solution Brainstorm

Add "groups claim" to SAML attribute settings and map it to teams. On user login sentry has to run through user groups, check if team with the same name exists, if not – creating it, and adding a user to it. Maybe the "default team role" setting is also needed, but imo adding everyone as members should be enough.

### Product Area

Sign In

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.