Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add-PowerBIWorkspaceUser doesn't accept 'Viewer' for -AccessRight #177

Open
SQLvariant opened this issue Aug 29, 2019 · 0 comments

Comments

@SQLvariant
Copy link

commented Aug 29, 2019

When trying to add a user to a Workspace with the Add-PowerBIWorkspaceUser cmdlet, you are unable to assign the 'Viewer' role via the -AccessRight parameter.

Add-PowerBIWorkspaceUser -Workspace (Get-PowerBIWorkspace -Name SomeWorkspace) -UserPrincipalName 'some.user@contoso.com' -AccessRight Viewer

Instead of this working, the following error is returned:

Add-PowerBIWorkspaceUser : Cannot bind parameter 'AccessRight'. Cannot convert value "Viewer" to type "Microsoft.PowerBI.Common.Api.Workspaces.WorkspaceUserAccessRight". 
Error: "Unable to match the identifier name Viewer to a valid enumerator name. Specify one of the following enumerator names and try again:
Member, Admin, Contributor"
At line:1 char:146
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.