M365 Governance: Disable self-service sign-up and purchasing


As an administrator in M365 you have lots of admin-centers and settings which you can configure. In M365 you can determin whether your users can make self-service purchases to get their own licence.

When should i disable it this option?

You may want to disable this option if

  • your company has an procurement process in place to meet compliance and regulatory needs.
  • You do not want that users can purchase a product from Microsoft, pay for it with credit card, and use it in your companies tenant

Products which offer self-service sign-up and purchasing

It is available for PowerPlatform (including PowerApps, PowerAutomate, PowerBI), MS Project, and Visio.

How to disable it?

You have to use Powershell for it.

Install-Module MSOnline
Set-MsolCompanySettings -AllowAdHocSubscriptions $false

You should also disable self-service purchase capabilities by product.

Install-Module -Name MSCommerce
Import-Module -Name MSCommerce
Connect-MSCommerce #sign-in with your global or billing administrator account when prompted
$products = Get-MSCommerceProductPolicies -PolicyId AllowSelfServicePurchase
foreach($product in $products) {
    Update-MSCommerceProductPolicy -PolicyId AllowSelfServicePurchase -ProductId ($product.ProductID) -Enabled $false

This last script i got it from this post. It might be good if you are freshly starting with M365, to disable those settings.

The article or information provided here represents completely my own personal view & thought. It is recommended to test the content or scripts of the site in the lab, before making use in the production environment & use it completely at your own risk. The articles, scripts, suggestions or tricks published on the site are provided AS-IS with no warranties or guarantees and confers no rights.

About Karsten Schneider 308 Articles
Consultant for Microsoft 365 Applications with a strong focus in Teams, SharePoint Online, OneDrive for Business as well as PowerPlatform with PowerApps, Flow and PowerBI. I provide Workshops for Governance & Security in Office 365 and Development of Solutions in the area of Collaboration and Teamwork based on Microsoft 365 and Azure Cloud Solutions. In his free time he tries to collect tipps and worthy experience in this blog.

Be the first to comment

Leave a Reply

Your email address will not be published.