maikvandergaag / msft-extensions

Repository for extensions mainly used for Azure DevOps Extensions
https://msftplayground.com
MIT License
125 stars 80 forks source link

Add tasks to RemoveUser, RemoveGroup, RemoveSP. Currently only Add available. #549

Open BAAAASS opened 5 months ago

BAAAASS commented 5 months ago

For which extension would you like to add a feature request? Pertains to the PowerBIActions@5 DevOps task. Current available: AddUser, AddGroup, AddSP Current NOT available: RemoveUser, RemoveGroup, RemoveSP

Is your feature request related to a problem? Please describe. In order to fully automate our DevOps deployment pipelines of security to specific workspaces, we require the removal of previously assigned permissions. Additionally, when deploying the same users / groups or SPNs using our DevOps pipeline, we always get a warning that the user / group / SPN already exists - a warning that is moot and clutters the console. Conceptually we would Remove older / unused security assignments prior to adding new security assignments.

Describe the solution you'd like Since the API already supports this functionality: https://learn.microsoft.com/en-us/rest/api/power-bi/groups/delete-user-in-group

  1. This would involve updating main/azuredevops/powerbiactions-new/powerbiactionsnew/ps_modules/PowerBi/powerbi.psm1 to include: Remove-PowerBIWorkspaceUsers Remove-PowerBIWorkspaceGroup Remove-PowerBIWorkspaceSP
  2. Then adding these new commands to the DevOps task in main/azuredevops/powerbiactions-new/powerbiactionsnew/run.ps1
  3. Finally updating configs, documentation, versions and to publish update.

Describe alternatives you've considered No alternatives possible.

Additional context The official link to the documentation from the DevOps page (https://marketplace.visualstudio.com/items?itemName=maikvandergaag.maikvandergaag-power-bi-actions), however, the link to the documentation does not include any documentation on the PowerBIActions topic.