divinorum-webb / tableau-api-lib

An API library that allows developers to call on the methods listed in Tableau's REST API documentation.
MIT License
96 stars 34 forks source link

AddProjectPermissionsRequest received an invalid combination of parameters. #120

Closed julienmariethoz closed 1 year ago

julienmariethoz commented 1 year ago

Implementation is the same as test_add_project_permissions_user() on https://github.com/divinorum-webb/tableau-api-lib/blob/master/tests/test_permissions.py#L173, but using group_id instead of user_id.

But the result is an error despite valid parameter values (random project and group ids) :

2023-08-21 14:30:43 | __main__ | CRITICAL |   project: my_project - 67864f4-7a42-4bd8-a284-cb9fcf78b3ae
2023-08-21 14:30:43 | __main__ | CRITICAL |   group: my_group - 25795fr4-4d2c-8492-b169-6abd25cd3d64
2023-08-21 14:30:43 | __main__ | CRITICAL |   capability {'name': 'Write', 'mode': 'Allow'}

the result is :

    "
AddProjectPermissionsRequest received an invalid combination of parameters.
         Evaluate the parameters below and correct accordingly:
{'_connection': <tableau_api_lib.tableau_server_connection.TableauServerConnection object at 0x7fbb51b18460>, '_request_body': {}, '_user_id': None, '_group_id': '25795fr4-4d2c-8492-b169-6abd25cd3d64', '_user_capability_dict': None, '_group_capability_dict': {'name': 'capability_name=Write', 'mode': 'capability_mode=Allow'}, '_user_capability_names': None, '_user_capability_modes': None, '_group_capability_names': None, '_group_capability_modes': None}

in the terminal printed above, I see :

Did I miss something?