While I don't know of any way to force the user to log in, could you tell us why you need that capability? We may be able to find a workaround.
You could also try not embedding the database credentials so the user has to log in to the database to use the viz. A drastic measure would be to lower the timeout limit for all of Tableau Server to make users log in more frequently in general:
Here is the scenario as part of force login.
We are sending emails to users by embedding image. While clicking on the image user will take to the dashboard that provides his activities to drill down more.
In this case, while clicking the image by user, it is taking to the report but showing empty report as the username passing as Guest. User can't see the data unless he logs in with credentials.
This could be the reason why we need the user to login forcibly. Please do let us know is there any alternate ways to overcome this.
I am having the same exact issue. Is there a way to force the server to prompt for the user to login? We need to bypass the guest account, and allow users to actually log in.
Can you disable Guest on the Settings page? Or do you require it?
The use case is a kind of CMS for multiple sites. I won't be controlling the permissions all the time (or at all), so the user would have to know this beforehand. Sometimes guest access is enabled site-wide for viewing, which is causing issues. And we can't disable guest access all together. We are investigating Trusted Authentication to see if this will solve the problem.
Has anyone come up with a workaround for this yet?
I hoped just putting a simple Link on the page where a user could click, but that still won't prompt for login.
Action URL doesn't work either.
Possible scenario is to do the following:
Move/copy your viz/view to a 'new' site.
Disable "Guest access" for this site and publish it. Users will be forced to log in.