How to prevent sharing of apps in Power Platform environment

Hello everyone and welcome to my blog. In today’s blog I will show you how you can disable sharing of apps in your Power Platform environment.

The problem of sharing apps is more prominent with Default environments. As makers continue to build apps in the default environment and start sharing the apps, it soon becomes a nightmare for Power Platform administrators.

The good news is you can now secure even your default environment in Power Platform. And in today’s blog I will show how you can disable sharing of apps your Power Platform tenant.

As of the time of writing this blog, Power platform administrators can accomplish this using PowerShell scripts. So let’s get started.

Open PowerShell as administrator and make sure to install the latest modules of Power Apps administration. To do that, execute the following command in PowerShell.

Install-Module -Name Microsoft.PowerApps.Administration.PowerShell -force

The next step is to get the environment. To do that, execute the following command.

$env = Get-AdminPowerAppEnvironment "*Default"

Get the Tenant settings using the following command

$settings = Get-TenantSettings

Alright, we now have the tenant settings. If you check the $settings variable, you could view the list of available settings.

There is a specific setting related to Power Platform. If you explore the Power Platform settings, you will find three properties.

  1. disableShareWithEveryone
  2. enabledGuestsToMake
  3. disableMembersIndicator

You can play with other properties but here we are interested in disableShareWithEveryone property. Let’s go ahead and set this property to false using the below commands.

Once the commands are executed successfully, only admins will be able to share the apps in the Power Platform environment.

Hope you liked this post. If this post has helped, you can buy me a coffee.

For similar topics on Microsoft.NET and Power Platform, subscribe to my blog using the Subscribe option on right pane.

You will also like the below posts.

Debajit Dutta
Business Solutions MVP