Skip to content

Retrieve email id of user who is logging in  #871

Closed

Description

@pavankumartableau

I need to retrieve mail id of users who is logging in
Tableau server version is 2020.4.5
tableauserverclient version is 0.15.0

I am using the code mentioned in #278
still i get none for fullname and email

Note: i want to retrieve mail id of the site admin who is logging in as we have multiple sites and need to send a mail to that site admin whoever logging to that particular site admin

code:
import tableauserverclient as TSC
tableau_auth = TSC.TableauAuth('USERNAME', 'PASSWORD')
server = TSC.Server('https://SERVERURL')

with server.auth.sign_in(tableau_auth):
all_users, pagination_item = server.users.get()
for user_item in all_users:
print("User name: '{}' fullname: '{}', User email: '{}'".format(user_item.name,
user_item.fullname,
user_item.email))

image

Activity

  1. jacalata commented on Feb 16, 2023

    @jacalata
    Contributor

    you need to request these fields explicitly, they are not all included in the return object by default. I'll have to look at how tsc code supports that.

    Info about fields: https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_concepts_fields.htm#get-users_site

  2. github-actions commented on Aug 18, 2026

    @github-actions

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. If this is still relevant, please comment to keep it open.

  3. jacalata commented on Aug 25, 2026

    @jacalata
    Contributor

    Closing — server.users.get() now transparently requests all fields, so user_item.email and user_item.fullname are populated without any extra options. See users_endpoint.py:92-94 (sets req_options.all_fields = True) and user_item.py:391-392 (parses email / fullName from the response). If you still see None on a current TSC version, please open a fresh issue with the Server version and a minimal repro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions