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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Anonymous
Not applicable

PowerBI Custom Connector - Windows Authentication

Dear Forum members/gurus,

 

Greetings, I have a query related to Windows credential/Username.

 

Is there anyway before sending request to the service I can retrieve Windows username and send it as a header or how the below works if I wanted to use Windows user. I wanted to send Windows user name to the my service where I can get a windows user and do further processing:

 

Below I have used for Windows authentication:

 

Sample.DataConnector = [
Authentication = [
Windows = []
],
Label = Extension.LoadString("DataSourceLabel")
];

 

Then I have a feed method as below, tried to use Extension.CurrentCredential but getting a null error:

 

Sample.DataConnector.Feed = (url as text) =>
let

 

Credential = Extension.CurrentCredential(),
split= Text.Split(Credential[Username],"#"),
source = Web.Contents(url, [ManualCredentials = true, Query = [
user_key = split]),
json = Json.Document(source)
in
json;

 

I would be really grateful if anyone can help me to resolve - In simple I wanted to send windows username from Power bi custom connector and retrieve it within my service (REST)

3 REPLIES 3
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

I have consulted the Product Team. I will update the result here. 

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @v-jiascu-msft, Thank You very much for your response, I will wait for your response.

Hi @Anonymous,

 

I have gotten the response from the Product Team. 

The Username is only presented with the Alternative Windows Authentication, which asks us to enter Windows username and password. You can activate it like below.

 

[Authentication = [Windows = [SupportsAlternateCredentials = true]]]

Can this be helpful?

 

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Kudoed Authors