fix: scim improvements and ui fixes

This commit is contained in:
Daniel Hougaard
2025-03-25 07:12:56 +04:00
parent 5fe3c9868f
commit 4b9f409ea5
3 changed files with 33 additions and 5 deletions
+8 -1
View File
@@ -583,6 +583,8 @@ export const scimServiceFactory = ({
const serverCfg = await getServerCfg();
await userDAL.transaction(async (tx) => {
const { role, roleId } = await getDefaultOrgMembershipRole(org.defaultMembershipRole);
await userAliasDAL.update(
{
orgId,
@@ -594,10 +596,15 @@ export const scimServiceFactory = ({
},
tx
);
await orgMembershipDAL.updateById(
membership.id,
{
isActive: active
isActive: active,
...(active && {
role,
roleId
})
},
tx
);