Resolve "Ai::ServiceAccountMemberAddService fails to add service account user"

What does this MR do and why?

I wasn't able to replicate the issue mentioned in #565863 (closed) but figured I would at least make the code a bit more defensive. This MR prevents potential crashes if the add operation fails completely and returns nothing, making the service more robust by handling both partial and complete failures.

References

Screenshots or screen recordings

Before After

How to set up and validate locally

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #565863 (closed)

Edited by Fred de Gier

Merge request reports

Loading