Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

403141: Forbidden when assigning a new owner to a datasource in 2022.1 #1072

Copy link
Copy link
@ashterenberg-paramount

Description

@ashterenberg-paramount
Issue body actions

Describe the bug
The code works in 2021.4.3

Versions
Details of your environment, including:

  • Tableau Server version - 2022.1.2
  • Python version - 3.8.5
  • TSC library version - 0.19

To Reproduce
Trying to assign a new owner to a datasource. Logged as a server administrator.

tableau_server_address = "https://mytableau"

tableau_auth = TSC.TableauAuth('userx', 'mypass', site_id='')
server = TSC.Server(tableau_server_address, use_server_version=True)
server.auth.sign_in(tableau_auth) 

datasource = server.datasources.get_by_id (ds_luid)
datasource.owner_id = new_owner_luid
updated_datasource = server.datasources.update(datasource)

Results

  File "fix_users.py", line 264, in <module>
    updated_datasource = server.datasources.update(datasource)
  File "/usr/local/lib/python3.8/site-packages/tableauserverclient/server/endpoint/endpoint.py", line 186, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/tableauserverclient/server/endpoint/datasources_endpoint.py", line 184, in update
    server_response = self.put_request(url, update_req)
  File "/usr/local/lib/python3.8/site-packages/tableauserverclient/server/endpoint/endpoint.py", line 133, in put_request
    return self._make_request(
  File "/usr/local/lib/python3.8/site-packages/tableauserverclient/server/endpoint/endpoint.py", line 66, in _make_request
    self._check_status(server_response)
  File "/usr/local/lib/python3.8/site-packages/tableauserverclient/server/endpoint/endpoint.py", line 82, in _check_status
    raise ServerResponseError.from_response(server_response.content, self.parent_srv.namespace)
tableauserverclient.server.endpoint.exceptions.ServerResponseError:

        403141: Forbidden
                'userx' isn't authorized to update the datasource 'xyz'.
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugin-progressIssues that are in-progress of being fixedIssues that are in-progress of being fixed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.