GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix the populate_excel example and the user domain_name docs by jacalata · Pull Request #1911 · tableau/server-client-python

Conversation

@jacalata

@jacalata jacalata commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

This PR corrects the `views.populate_excel` example and the docs for `UserItem.domain_name` and the user import methods.

  • `views.populate_excel`: `excel` is a generator of `bytes` chunks, so the example writes `b''.join(view_item.excel)`. Writing the generator object directly raises `TypeError`.
  • `UserItem.domain_name`: the row says what the value means on Tableau Server (the Active Directory domain, or `local`) and on Tableau Cloud (the authentication type). It also says that the property is read-only, so a `UserItem` you create has no domain; include the domain in `name` instead.
  • `users.bulk_add`: the example puts the domain in `name` (`example.com\user1`) instead of setting `domain_name`.
  • `users.bulk_remove`: the parameter row says each `UserItem` should have `name` and `domain_name` set, as items from `users.get` or `users.filter` do.
  • `users.create_from_file`: the whole `Username` value becomes `name`, and `domain_name` is not set, so a domain belongs in the username.

Refs #1128, #1100

Verification: Excel export checked against Tableau Cloud (REST API 3.30) and Tableau Server (REST API 3.31); the output starts with `PK`. `users.get` and `users.get_by_id` populate `domain_name` on Server; checked on 3.31 only.

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
jacalata and others added 2 commits November 9, 2026 22:35
@jacalata @claude
Fix the populate_excel example and the user domain_name docs
25dd570
view_item.excel is a generator, so join its chunks before writing. domain_name
is read-only and its meaning differs between Tableau Server and Tableau Cloud;
the bulk_add example now uses the domain-qualified name instead of setting it.

Co-Authored-By: Claude Code <[email protected]>
@jacalata @claude
Note where the domain ends up for users created from a CSV file
cf55e66
Co-Authored-By: Claude Code <[email protected]>

This branch has not been deployed

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

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@jacalata
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.