You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.