microsoft / microsoft/powerbi-powershell

Connect-PowerBIServiceAccount picks the wrong identity even when told the right one

Open
#85 4 comments 0 reactions 1 assignee View on GitHub

@CodeCyclone is already working on this.

Since Nov 26, 2018.

bug
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:

  1. Logged out of all browers, cleaned cache and close windows
  2. Removed the 01 account from the AD dialog before logging in
  3. Closed PowerShell
  4. Logout of Windows

How can I make it use the right account?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.