Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

Attempting to add a new user to site w/ SAML authentication

Aberta
#831 4 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
42/100
Tipo de issue
Bug
Clareza
Precisa de esclarecimento
Status de atividade
Pouca atividade
Stack de tecnologia
python
Domínio
api, authentication

Direção de pesquisa

Start with the shown create_user function, TSC.UserItem, and server.users.add call, then reproduce the SAML and ServerDefault cases against the listed Tableau Server, Python, and TSC versions. Compare the resulting permissions and user-creation behavior; done when the cause of the SAML-specific 403034 response and the expected library behavior are established.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

docs Server-Side Enhancement

Describe the bug
I have written a script that creates a batch of users based on json input. It works great with the exception of one caveat. My list of users only contains two users, and all users are created with SAML as their authentication method. When creating them, one of the users works fine, however one of them fails with the following error message. The user is still created, but is not created with "SAML" authentication. If I change the SAML authentication to ServerDefault, then everything works perfectly, and no exception is thrown. The only thing notable about the failing user is that every other site has the a username just like this one. This is essentially our global sso admin user.

403034: Forbidden
   	Only system administrators can add users to sites, query sites for user membership, or remove users from sites.

Versions
Details of your environment, including:

  • Tableau Server version - 20204.21.0114.0916
  • Python version - Python 3.9.2
  • TSC library version - 0.14.0

To Reproduce
Below is my code that is handling the user creation. I only listed the portion of code that is failing and the snippet for configuring the server connection. I am calling this with an email address for the username, a basic name, and a role of 'explorer'. The server connection is configured with the new site that I am provisioning users for.

# configuration for tableau
server = TSC.Server( server_url, use_server_version=True )
tableau_auth = TSC.TableauAuth( username, password, site_name )
....
# function for creating users
def create_user( server, tableau_auth, username, full_name, user_role ):
  with server.auth.sign_in( tableau_auth ):
    try:
      # Attempt to create New User
      new_user = TSC.UserItem( username, user_role, auth_setting='SAML' )
      user_item = server.users.add( new_user )
      print( f'New User was Created: {username}'"\n" )
   ....

Results

403034: Forbidden
   	Only system administrators can add users to sites, query sites for user membership, or remove users from sites.

NOTE: Be careful not to post user names, passwords, auth tokens or any other private or sensitive information.

Linguagem predominante
Python
Estrelas
716
Forks
446
Merge médio
8d 8h
PRs com merge (30d)
2

Guia de contribuição

Abrir o guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de tableau/server-client-python

Todas as issues de tableau/server-client-python

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.