1 of 1 people found this helpful
What is the version of Tableau Server you are making calls against? That should tell us the correct version number.
Are you sure your user exists on the specific site you are requesting favorites for? If you issue the call directly with the absolute url, do you get the expected response?
Tableau Server Version 2018.1.1 (20181.18.0510.1418)
The user definitely exists, i was searching for me. I definitely have favorites on the site that i am searching on (Default)
When i run the URL using POSTMAN, i get blank favorites using version 2.8 and 3.0 (the response outlined above) and no errors.
When i run using version 2.9, 3.1, 3.2 i get the following response:
<summary>Resource Not Found</summary>
<detail>Version '3.1' is not a valid version of the API.</detail>
Had this question on here and Stack Overflow for a month now, even tried emailing support, no answers from anyone (not even a reply from support).
Has anyone actually used the "Get Favorites for User" API call (successfully or not)? if so, what version of the API were you using? what version of Tableau were you running? Does this actually work? Is anybody out there?
Finally found out what was happening.
It doesn't work as intended.
It will only return user favorites for the user that is authenticated in the authentication token, regardless of what user id you put in the request.
Had a call with Tableau support and accidentally figured it out, when we switched authenticated user.
I will leave this here in case anyone else comes across the same issue.