Search Results for

    Show / Hide Table of Contents

    Power BI CLI Samples for Power BI workspaces

    The following table includes links to bash and PowerShell scripts built using the Power BI CLI.

    Script Description
    List workspaces List workspaces
    Add user Add user to workspace

    List workspaces

    List all workspace the user/service principal has access to

    • Bash
    • PowerShell
    pbicli workspace list
    
    pbicli workspace list
    

    Add user

    Add a user to a given workspace

    • Bash
    • PowerShell
    pbicli workspace user add --workspace Demos --email john.doe@adventureworks.com --principal-type User --access-right Member
    
    pbicli workspace user add --workspace Demos --email john.doe@adventureworks.com --principal-type User --access-right Member
    

    Feedback

    • Improve this Doc
    In This Article
    Back to top Generated by DocFX