You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The user filters should support filtering based on email eq and email in.
Details
****Type 3: new functionality****
Requests for totally new functionality will generally be passed to the relevant dev team, but we probably can't give any useful estimate of how or when it might be implemented. If it is a feature that is 'about' the API or programmable access, here might be the best place to suggest it, but generally feature requests will be more visible in the [Tableau Community Ideas](https://community.tableau.com/s/ideas) forum and should go there instead.
Description
A clear and concise description of what the feature request is. If you think that the value of this feature might not be obvious, include information like how often it is needed, amount of work saved, etc. If your feature request is related to a file or server in a specific state, describe the starting state when the feature can be used, and the end state after using it. If it involves modifying files, an example file may be helpful.
Currently the user filter supports searching based on name, luid, friendlyName, and a few other fields. As mentioned in #907:
Note: Filter expressions can’t contain ampersand (&) or comma (,) characters because these characters are used as field expression separators. This is true even if those characters are encoded.
so most servers I have interacted with, friendlyName does not work for searching due to names showing up as "Last, First." Searching by email will offer up a convenient way to find intended users.
With #1563, this can be simplified some and requires only one API call per page, instead of one for every user on the site:
defget_users_by_email(server: TSC.Server, emails: list[str]) ->dict[str, TSC.UserItem]:
no_case_emails= {e.casefold() foreinemails}
users= {}
foruserinserver.users.all().fields('email'): # You can now specify you want emails in the paginated request# user = server.users.get_by_id(user.id) # This is the call that gets eliminated.no_case= (user.emailor"").casefold()
ifno_caseinno_case_emails:
users[user.email] =userreturnusers
Still more calls required than an ideal situation, but a vast improvement over the prior way.
Activity
jorwoods commentedon Feb 3, 2025
It would be great if case insensitivity were available with this as well.
jorwoods commentedon Feb 3, 2025
Examples:
jorwoods commentedon May 14, 2025
With #1563, this can be simplified some and requires only one API call per page, instead of one for every user on the site:
Still more calls required than an ideal situation, but a vast improvement over the prior way.
feat: add email as a filter field for users endpoint (tableau#1789)