How can I fetch the name of the User Source configured in my Ignition project properties using a script?

I once had the requirement to add users to the default userSource and this is how I did it.
Not sure if we can just get the name of the userSource.