Forum Discussion
Pass User ID parameter from embedded URL to stored procedure
I have some reports embedded in my application. What I want to achieve is, when user login to our application, we catch their user ID information in embedded URL, and pass this to a parameter in a stored procedure and work as a filter. From I can see in below links, this function is still not available? Can some one confirm this? Is there a work around?
7 Replies
- ibarrau
Super User
Hi. I don't think this will be available. If you want to capture the user login and manage everything in an embed, then you must buy Power Bi Embed capacity from azure to control this. That way you develop what you want to see and take the data you need. You can do RLS and much more. Embed by URL is just for the whole report. If you are using a publish to web then it won't ever have an url filter.
Hope this help,
- AnonymousNot applicable
To make my question clear, I am talking about user ID in embedded URL the way like this
Then I want the user ID to work on a parameter of my stored procedure in azure database.
- ibarrau
Super User
Good. But my answer is still the same. You can't get the logged user with embed url. That's why power bi embed is created, for cases you have to manipulate things. The embed url is just to keep it the way it is.
You send how to filter an embed url. I say that if you are with publish to web you can't do it but if you are embeding with the login you can filter. However filtering by url is not the same of getting data from it.
I'm sorry I don't think you can get that data unless you have Power Bi Embed capacity.
Regards,
- AnonymousNot applicable
Did anyone manage to find solution for this scenario?
I end up in the same situtation, I am calling a stored procudure from PBI report and I need to pass dynamic user id to the stored procudure to perform data manipulation based on user id input and return results.
Unable to find any solution so far to pass dynamic user id to stored procedure from PBI report.
If anyone had solved this ploblem then please post the solution to help the community. Thanks in advance.