Hello,
It seems that when searching for users for 2 (or more?) connections, if one of the two connections does not have users, the whole request does not return anything.
Adding a user to the empty connection fixes this.
To reproduce :
-
- Create a connection ‘myco01’. Do not add any user on it.
-
- Create a second connection ‘myco02’
-
- Add for example 2 users to ‘myco02’
-
- Try to search for users in either ‘myco01’ or ‘myco02’ in 1 request, using /v2/users?q=identities.connection:myco01 myco02’
-
- Observe that no user is returned. Expected behavior would be that the 2 users from ‘myco02’ would be returned.
-
- Now add 1 user to ‘myco01’
-
- Retry the previous request.
-
- Observe that now 3 users are returned, which here is the expected behavior.
[EDIT] : I refined the use case. The issue only occurs when the first one of the 2 connections does NOT contain users. Listing connections in reverse order (the one with users listed first) does NOT trigger the bug.
/v2/users?q=identities.connection:myco01 myco02’ <== BUG
/v2/users?q=identities.connection:myco02 myco01’ <== WORK as expected