Users have reported getting blank gray screen when trying to view a dashboard they don't have access to.
The same code works fine if there is access, so tokens are passed correctly. However, when the user doesn't have access, they just get gray background. The following error is shown in F12 tools:
Status Code:401 Unauthorized
But the iframe is just gray after that with no message to the user.
Feek free to contact me under arsaveli MS alias
This should be a desired behaviour when you don't have access to view a dashboard. You can create an idea in https://ideas.powerbi.com.
@v-haibl-msftyet the error experience when visiting this dashboard using the URL (not embedding) is different and says that dashboard hasn't been shared with me.
"Sorry, you do not have permission to view this dashboard. If you would like to access this dashboard, please submit a request"
this is a clear inconsistency, and looks like a bug to the end user.
I’ve reported it internally to Power BI Team to confirm about it: CRI 46002369I’ll post here once I get any update about it.
I’ve got response from the Product Team.