how u got this Auth token?
I mean r u using any programming language?
The REST API wasn't meant for invoking views (displaying them) if that's what you mean. It'll simply query metadata information about a site, project, workbook, view, data source, or user. Or do administrative things such as adding and deleting sites, users, etc. But essentially once you have the access token, you can make another GET or POST request to perform other administrative functions. See http://onlinehelp.tableausoftware.com/current/server/en-us/help.htm#rest_api_ref.htm.
Let me know if you have any other questions
It doesn't return metadata info about a project though - you can query sites/workbooks etc but not projects
For instance, I can't see what workbooks are within a project
In fact, there's no easy way to get user ID of the current logged in user
Unfortunately that's true at the moment. There's no API to query which objects belong to a certain project. For that, I suggest querying the PostgreSQL database.
Are you referring to the username or user's LUID? You already know the username because that's what you use to make the initial request. Then you can query Users on Site to get the LUID for users.
Hi, thanks for the reply!
I am taking about the LUID. Unfortunately this doesn't help me either
- I have 4 sites
- One site has the same user (me) three times - wrong
- One site has the same user (me) two times - wrong
- The other two sites contain one instance of me - correct
- In each of the 4 sites, my username has a different ID
Is there any documentation about querying the PostgreSQL database?
Like I mentioned in Re: REST API Questions, the duplicate names issue will be fixed in 8.2.4, the next release of Tableau Server.
To query the PostgreSQL database, first enable access to it by following the steps here: http://onlinehelp.tableausoftware.com/current/server/en-us/help.htm#adminview_postgres_access.htm
Then use any tool, such as Tableau Desktop, or write your own SQL script to query the database for info you want.
Ok thanks – it would be great when authenticating the user, their ID be brought back in the response payload
Then using that ID we can see what sites/projects/workbooks and views that user has access to , along with being able to query each of them
This would be ideal
Thanks for the information!
<div class='tableauPlaceholder' style='width: 940px; height: 662px;'>
<object class='tableauViz' width='940' height='662' style='display:none;'>
<param name='host_url' value='http://abc.com/' />
<param name='site_root' value='/t/SiteName' />
<param name='name' value='ABCDashboard/ABCView' />
<param name='tabs' value='yes' />
<param name='toolbar' value='yes' />
<param name='showVizHome' value='n' />
<param name='bootstrapWhenNotified' value='y' />
<param name='filter' value=':openAuthoringInTopWindow=true' />
<param name='filter' value=':browserBackButtonUndo=true' />
<param name='filter' value=':reloadOnCustomViewSave=true' />
<param name='filter' value=':showShareOptions=true' />
<param name="ticket" value='@Session["token"]' />
However I could see the 403 forbidden error showing the below error in the page. Could you please help me on this.
Hi Nagendra, it looks like you were able to successfully get a ticket. That specific error message is typically a result of one of the following:
- Redeeming the ticket more than once (this is often the case), even though you aren't aware of it. The Tableau Server httpd access logs will prove this however.
- The ticket you used is for a different site than originally requested for. Check again if you are requested a ticket from the default site or another site, and then make sure you use that ticket on the site you requested.
If anything, reproduce the issue, get ziplogs, and send it to email@example.com