---
schema_version: "1"
id: 5ff02da59371b5e9c12628e4872332387c57af49288352d06b4d3e9bc96555d3
title: Display the View with the Ticket
collection: tableau
version: current
locale: en-us
portal_url: https://docs.salesforce.com/tableau/current/en-us/server/trusted_auth_webURL.md
canonical_url: https://help.tableau.com/current/server/en-us/trusted_auth_webURL.htm
source_site: help.tableau.com
content_type: documentation
content_hash: a2f203fade85ef5e77a2c366396bfb4c9523522d71bb48eee14f7a24cc99fb8a
description: Display an embedded view using a trusted ticket.
---
[Skip to main content](#main-content)

# Display the View with the Ticket

After you [create the POST request](https://help.tableau.com/current/server/en-us/trusted_auth_webrequ.htm), you need to write code that provides the web server with the view’s location and the ticket from Tableau Server. It will use this information to display the view. How you specify it depends on whether the view is embedded, and if Tableau Server is running multiple sites.

**Note:** Trusted tickets must be redeemed for views. Then, after a session is created, users authenticated with trusted tickets have access to views only by default. They cannot access workbooks, project pages, or other content hosted on the server. This default can be changed using the tsm `wgserver.unrestricted_ticket` option.

## Tableau Server View Examples

Here’s an example of how to specify a view that users only access via Tableau Server (the view is not embedded):

http://<server\_name>/trusted/<unique\_ticket>/views/<workbook\_name>/<view\_name> 

If Tableau Server is running [multiple sites](https://help.tableau.com/current/server/en-us/sites.htm) and the view is on a site other than the Default site, you need to add `t/<site_id>` to the path. For example:

http://<server\_name/trusted/<unique\_ticket>/t/Sales/views/<workbook\_name>/<view\_name> 

Use the same capitalization that you see in the Tableau Server URL.

## Embedded View Examples

Here are some examples of how to specify embedded views. Because there are two approaches you can take with embed code, both ways are provided below. Regardless of which you use, there is some information unique to trusted authentication that you must provide. For more information, see [Writing Embed Code](https://help.tableau.com/current/pro/desktop/en-us/help.htm#embed_code.htm).

**Note:** The examples below use embed code parameters. For more information, see [Embed Code Parameters](https://help.tableau.com/current/pro/desktop/en-us/help.htm#embed_list.htm) in the Tableau Help.

### Script Tag Examples

**Ticket parameter**

This example uses the `ticket` object parameter:

<script type="text/javascript" src="http://myserver/javascripts/api/viz\_v1.js"></script> 
<object class="tableauViz" width="800" height="600" style="display:none;"> 
    <param name="name" value="MyCoSales/SalesScoreCard" /> 
    <param name="ticket" value="9D1ObyqDQmSIOyQpKdy4Sw==:dg62gCsSE0QRArXNTOp6mlJ5" /> 
</object> 

Here’s what the above example looks like for a multi-site Tableau Server, where the view is published on the `Sales` site:

<script type="text/javascript" src="http://myserver/javascripts/api/viz\_v1.js"></script> 
<object class="tableauViz" width="800" height="600" style="display:none;"> 
    <param name="site\_root" value="/t/Sales" /> 
    <param name="name" value="MyCoSales/SalesScoreCard" /> 
    <param name="ticket" value="9D1ObyqDQmSIOyQpKdy4Sw==:dg62gCsSE0QRArXNTOp6mlJ5" /> 
</object> 

**Path parameter**

Instead of using `ticket`, you can use the `path` parameter to state the full path of the view explicitly. When `path` is used, you do not also need the `name` parameter, which is usually a required parameter in Tableau JavaScript embed code:

<script type="text/javascript" src="http://myserver/javascripts/api/viz\_v1.js"></script> 
<object class="tableauViz" width="900" height="700" style="display:none;"> 
    <param name="path" value="trusted/9D1ObyqDQmSIOyQpKdy4Sw==:dg62gCsSE0QRArXNTOp6mlJ5/views/MyCoSales/SalesScoreCard" /> 
</object> 

Here’s the same example, but for a multi-site server. Note that `/t/<site_id>` is used here:

<script type="text/javascript" src="http://myserver/javascripts/api/viz\_v1.js"></script> 
<object class="tableauViz" width="900" height="700" style="display:none;"> 
     <param name="path" value="trusted/9D1ObyqDQmSIOyQpKdy4Sw==:dg62gCsSE0QRArXNTOp6mlJ5/t/Sales/views/MyCoSales/SalesScoreCard" /> 
</object> 

### iFrame Tag Example

<iframe src="http://tabserver/trusted/9D1ObyqDQmSIOyQpKdy4Sw==:dg62gCsSE0QRArXNTOp6mlJ5/views/workbookQ4/SalesQ4?:embed=yes" width="800" height="600"></iframe>