auth.findUsers({userStore}) parameter like auth.findPrincipals

Would be nicer than this:

query: "userstorekey = '" + portalLib.getUserStoreKey() + "'"

Also it could use portalLib.getUserStoreKey() as default value.

Here’s another way which can be used in idProvider code:

userStoreName = portalLib.idProviderUrl().split('/').pop();

Hi,

We will not implement “shortcuts” like this in core. Feel free to send pull request (or file the issue) on lib-util instead, which is a library meant for handy XP shortcuts.