This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
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)
Hi @Anonymous,
I have consulted the Product Team. I will update the result here.
Best Regards,
Dale
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
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |