microsoft / microsoft/powerbi-powershell
Connect-PowerBIServiceAccount picks the wrong identity even when told the right one
@CodeCyclone is already working on this.
Since Nov 26, 2018.
- Dominant language
- C#
- Stars
- 413
- Forks
- 134
- Avg merge
- 33m
- Merged PRs (30d)
- 1
Description
So I'm using Connect-PowerBIServiceAccount to connect before querying the service for dataset data.
I have two accounts on the same tenant - jsnape and jsnape01 (the latter is an admin account that is used elsewhere in Azure).
When I call Connect-PowerBIServiceAccount it pops up the AD dialog and gives me the choice of account. I select the jsnape account and it always returns:
Environment : Public
TenantId : xxxxxxx-yyyy-zzzz-a46c-00000000
UserName : jsnape01@vvvvvvvvvv.com
i.e. it always uses my 01 account.
I have tried the following with no success to get it to pick the right account:
- Logged out of all browers, cleaned cache and close windows
- Removed the 01 account from the AD dialog before logging in
- Closed PowerShell
- Logout of Windows
How can I make it use the right account?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.