Brief Description
When listing an organisation's users, if a user exists in FGA but not in SuiteCRM, an exception is raised, but it should return list without that user.
By raising an exception in this error state, the endpoint /reporting-orgs/{ID}/users will become unavailable until it is fixed.
It would be more robust to log an error to the app log and audit log, and then return a list of users for the organisation who are found in both the FGA db and SuiteCRM.
The relevant code is here:
|
if user_ids_in_fga_not_suitecrm: |
Brief Description
When listing an organisation's users, if a user exists in FGA but not in SuiteCRM, an exception is raised, but it should return list without that user.
By raising an exception in this error state, the endpoint
/reporting-orgs/{ID}/userswill become unavailable until it is fixed.It would be more robust to log an error to the app log and audit log, and then return a list of users for the organisation who are found in both the FGA db and SuiteCRM.
The relevant code is here:
register-your-data-api/src/register_your_data_api/routers/reporting_orgs.py
Line 505 in 52ed411