microsoft / microsoft/powerbi-powershell

-Scope Organization supported for all Workspaces

Open
#74 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
413
Forks
134
Avg merge
33m
Merged PRs (30d)
1

Description

I'm a Power BI Service Admin (via AAD Priv ID management), and I tried using this command to add a user to an orphaned workspace, but got hit with the following error:

WARNING: Only preview workspaces are supported when -Scope Organization is specified

Add-PowerBIWorkspaceUser : Operation returned an invalid status code 'InternalServerError'

At C:\Users\<username>\Desktop\<script>.ps1:7 char:1

+ Add-PowerBIWorkspaceUser -Scope Organization -Id x#xx####-#x##-###x-# ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  + CategoryInfo          : WriteError: (Microsoft.Power...BIWorkspaceUser:AddPowerBIWorkspaceUser) [Add-PowerBIWorkspaceUser], HttpOperationException

    + FullyQualifiedErrorId : Operation returned an invalid status code 'InternalServerError',Microsoft.PowerBI.Commands.Workspaces.AddPowerBIWorkspaceUser

Any idea when non-preview Workspaces will be supported? This would be an invaluable tool for saving my users lots of rework and cleaning up our Cloud Service tenant.

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.

Research direction

Start by reviewing the Add-PowerBIWorkspaceUser command's -Scope Organization behavior and the Power BI service support for non-preview and orphaned workspaces. Confirm the relevant API limitations and existing command tests, if present. Done means organization scope can add users to supported non-preview workspaces without the reported warning or internal-server error.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, powershell
Domain
cli, cloud
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.