Actions
Bug #9855
closedsearching users on organization returns unexpected results
Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Search
Target version:
-
Description
Expectation that searching "organization = ACME" would return all users that belong to this organization (ie. have ACME in their list of orgs in the UI).
Having two users with default organization of ACME only returns one of those users too, so it's unclear what the intention of this scoped search field is intending.
Updated by Dominic Cleal about 9 years ago
- Category set to Search
- Status changed from New to Need more information
Appears to work fine here. The 'organization' field is for associations to orgs, not searching default orgs.
10:02 $ hammer organization info --id 9 >Id<: 9 >Name<: Lacking foo >Users<: 7220test orgadmin roletest [..] >Created at<: 2013/05/07 17:28:54 >Updated at<: 2014/04/10 07:53:17 ✔ ~/code/foreman/hammer-cli-foreman [master|✔] 10:03 $ hammer user list --search 'organization = "Lacking foo"' -----|----------|-----------|------------------- >ID< | >LOGIN< | >NAME< | >EMAIL< -----|----------|-----------|------------------- 39 | 7220test | 7220 Test | a@localhost 25 | orgadmin | Org Admin | orgadmin@localhost 6 | roletest | role test | roletest@localhost -----|----------|-----------|-------------------
Updated by Mike McCune about 9 years ago
The 'default organization' is a login preference for the UI but does not imply membership within an organization. I'd not expect this search to reflect the UI preference at all. IMO, not really a bug.
Updated by Dominic Cleal about 9 years ago
- Status changed from Need more information to Rejected
Actions