You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Okke Harsta edited this page Mar 11, 2026
·
1 revision
flowchart TD
A([Start]) --> B{userUid AND idp present?}
B -->|Yes| C[Construct sub from idp + userUid]
C --> D[findBySubIgnoreCase]
D --> E[Return singleton list or empty list]
B -->|No| F{crmOrganisationId AND crmRoleName present?}
F -->|Yes| G[findByCrmOrganisationId]
G --> H[findByRoleCrmRoleNameAndRoleOrganisation]
H --> I[Map userRoles → users or empty list]
F -->|No| J{crmRoleName present?}
J -->|Yes| K[findByCrmRoleName]
K --> L[flatMap roles → findByRole → users]
J -->|No| M{crmOrganisationId present?}
M -->|Yes| N[findByCrmOrganisationId]
N --> O[findByRoleOrganisation]
O --> P[Map userRoles → users or empty list]
M -->|No| Q[Return empty list]
E & I & L & P & Q --> Z([End: users])