Forum Discussion
Simultaneous Access to Embedded Power BI Report Across Multiple URLs Leads to Parameter Overwrite
Hi Anonymous ,
I think this is classified as a session independence issue and you can refer to the following suggestions.
1. Use unique parameter names for each user session. For example, append a session-specific identifier to the parameter name to avoid conflicts.
2. Ensure that API calls for updating parameters and refreshing datasets apply to specific user sessions. This may require adding session-specific headers or parameters to the API request.
Here is a simplified example
def update_parameters(workspace_id, dataset_id, parameters, session_id):
url = f"https://api.powerbi.com/v1.0/myorg/groups/{workspace_id}/datasets/{dataset_id}/Default.UpdateParameters"
headers = {
"Content-Type": "application/json",
"Authorization": f"Bearer {access_token}"
}
payload = {
"updateDetails": [
{
"name": f"{param['name']}_{session_id}",
"newValue": param['value']
} for param in parameters
]
}
response = requests.post(url, headers=headers, json=payload)
return response.json()
Best Regards,
Clara Gong
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks Anonymous for looking into issue..
With a Premium Per User (PPU) license, it is possible to embed the report on a client’s website and allow multiple users to access it simultaneously.Is there anything missing in my methodology mention above or it is enough?
- Shashanka1 year agoNew Member
Anonymous, were you able to find a solution/work around for this? I am of the same situation. I have a large dataset and would love to have it filtered at parameter level rather than RLS.