Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
AnuAchar
New Member

Need help in API integration---want to pass PowerBI logged in USER ID as parameter to API

Hi ,

 

I am trying to pass the power bi Logged in Userid to API .I am noy able to send the dax function output of USERNAME() to query parameter value Please help and trying the solution since more than two weeks

4 REPLIES 4
AnuAchar
New Member

HI

 

Example 

www.yoursite.com?myparam1=123&

 

If above is the api I am trying to conenct from powerbi, myparam1 is the parameter and and the value i need to send to this parameter is my PowerBI logged in user....which i get using the DAX function USERNAME().But i am not able to store this dax funxtion value in a variable

Probably because that would be a large security hole.

lbendlin
Super User
Super User

That is rather meaningless when you are trying to do a refresh in the Power BI Service.

 

Please provide more details what you mean by "API integration".

HI

 

Example 

www.yoursite.com?myparam1=123&

 

If above is the api I am trying to conenct from powerbi, myparam1 is the parameter and and the value i need to send to this parameter is my PowerBI logged in user....which i get using the DAX function USERNAME().But i am not able to store this dax funxtion value in a variable

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.