Optimizes the JWT group sync process by preventing unnecessary account saves and network map generation when there are no changes in JWT group membership. Additionally, it addresses a bug where the last API group added to the user's auto groups was being removed unintentionally.
Issue ticket number and link
1824
Checklist
[x] Is it a bug fix
[ ] Is a typo/documentation fix
[ ] Is a feature enhancement
[ ] It is a refactor
[ ] Created tests that fail without the change (if possible)
[ ] Extended the README / documentation, if necessary
Describe your changes
Optimizes the JWT group sync process by preventing unnecessary account saves and network map generation when there are no changes in JWT group membership. Additionally, it addresses a bug where the last API group added to the user's auto groups was being removed unintentionally.
Issue ticket number and link
1824
Checklist