Load all local users from LocalUserManager

Hello,

I was wondering why the collection of LocalUser in the UAALocalUserManager class was private.
Indeed, we’d like to be able to fetch all local users instead of feching them one by one with their username. Is there a way to do it?

Thanks.

Hello,
the collection users is private because it’s just a data holder instead of a proper repository since we don’t have any use-case in UAA that needs all users.

If you need all users you can load them by your class. The yaml files are taken from the configuration and use the same LocalUserLoader implementation. See UAALocalUserManager#init()

Thank you, we actually stored it differently for the complete list and continue using the findLocalUser method for each of them.