feat: default iam group on org join
All checks were successful
ci / lint_and_test (push) Successful in 15s

Users joining an org are given the `Default User` IAM permission group automatically.
This commit is contained in:
Chris Milne 2026-06-15 11:35:01 +01:00
parent 09d2fbafdc
commit 3433ba39ee
2 changed files with 3 additions and 0 deletions

View file

@ -10,6 +10,7 @@ Endpoints:
from fastapi import APIRouter, status, BackgroundTasks
from src.iam.service import assign_default_user_group
from src.organisation.exceptions import OrgNotFoundException
from src.user.schemas import (
UserResponse,
@ -199,6 +200,7 @@ async def accept_invitation(
org_model.user_rel.append(user_model)
db.flush()
await assign_default_user_group(db=db, org_model=org_model, user_model=user_model)
response = {
"organisation": org_model,