Skip to content

Missing content value 'LockedToProjectWithoutNested' for content_permissions when creating a project #840

Closed

Description

@codenametableau

Describe the bug
Missing content value 'LockedToProjectWithoutNested' for content_permissions when creating a project. This value is available via rest api but not tsc.

Versions
Details of your environment, including:

  • Tableau Server version: 2020.3.5
  • Python version: 3.5

To Reproduce

def create_project(server, project_item):
    try:
        project_item = server.projects.create(project_item)
        print('Created a new project called: %s' % project_item.name)
        return project_item
    except TSC.ServerResponseError:
        print('We have already created this project: %s' % project_item.name)
        sys.exit(1)

top_level_project = TSC.ProjectItem(name='Name', content_permissions='LockedToProjectWithoutNested')
top_level_project = create_project(server, top_level_project)

Results

ValueError: Invalid value: LockedToProjectWithoutNested. content_permissions must be of type ContentPermissions.

Activity

  1. elsherif commented on Jun 15, 2021

    @elsherif

    Hello,

    I'm facing same problem, any idea when that would be fixed?

    Thanks a lot
    Saad

  2. ovinis commented on Jun 15, 2021

    @ovinis
    Contributor

    Thanks for creating the Github Issue. We are tracking this internally. We will get back to you soon with any updates.

    ID: 1279204

  3. ovinis commented on Jul 26, 2021

    @ovinis
    Contributor

    This issue has been fixed in TSC version 0.16.0. Please upgrade to the new version - New version link

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions