Forum Discussion
Disable AllowSelfServicePurchase (MSCommerceProductPolicy)
- Sep 22, 2023
Hi securebeam,
Setting AllowSelfServicePurchase to $false will only block users from signing up for new trials. It will not have any effect on existing trials that are already activated.
This is because trials are considered to be active contracts, and Microsoft cannot unilaterally break those contracts. However, once a trial expires, the user will not be able to renew it if AllowSelfServicePurchase is set to $false.
If you want to prevent users from renewing existing trials, you will need to manually disable them. You can do this by going to the Subscriptions page in the Microsoft Admin Center and disabling the trials for each user.
Here are the steps on how to disable a trial subscription:
- Go to the Subscriptions page in the Microsoft Admin Center.
- Click on the Trials tab.
- Find the trial subscription that you want to disable and click on it.
- Click on the Disable button.
- Click on the Yes button to confirm.
Once you have disabled a trial subscription, the user will not be able to renew it.
Please click Mark as Best Response & Like if my post helped you to solve your issue.
This will help others to find the correct solution easily. It also closes the item.If the post was useful in other ways, please consider giving it Like.
Kindest regards,
Leon Pavesic
Set-MSCommercePolicy -PolicyID AllowSelfServicePurchase -Enabled $False
or
Update-MSCommercePolicy -PolicyID AllowSelfServicePurchase -Enabled $False
I don't think we should have to keep changing individual Policy ID every time MS decides to release another Product.
I'd rather set the Default value returned from Get-MSCOmmercPolicy -PolicyId AllowSelfServicePurchase | Format-List
But the above commands return error as it is not a command in the Module.
Help MSCommerce only has a few commands.