microsoft / microsoft/powerbi-powershell
Add-PowerBIWorkspaceUser fails when adding a Azure AD group
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 413
- Forks
- 134
- Avg merge
- 33m
- Merged PRs (30d)
- 1
Description
I have a new v2 modern workspace that will allow AAD groupd to be added via the UI but when using the Add-PowerBIWorkspaceUser with a group the cmdlet errors with a bad request.
This is regardless of the access rights i am trying to assign. I have tried with all 3 accessrights options and get the same results.
Is there a way to achieve adding groups as members via the API?
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.
Research direction
Start by reproducing Add-PowerBIWorkspaceUser with an Azure AD group in a v2 modern workspace, using each of the three access-rights options. Inspect the resulting bad-request response and compare the cmdlet's behavior with the Power BI API or UI. Done means identifying the cause and defining a supported way to add the group, or documenting that the API does not support it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100