diff --git a/src/Admin/AdminConsole/Views/Organizations/Edit.cshtml b/src/Admin/AdminConsole/Views/Organizations/Edit.cshtml
index 3ac716a6d4..1134972b8b 100644
--- a/src/Admin/AdminConsole/Views/Organizations/Edit.cshtml
+++ b/src/Admin/AdminConsole/Views/Organizations/Edit.cshtml
@@ -1,7 +1,9 @@
@using Bit.Admin.Enums;
@using Bit.Admin.Models
+@using Bit.Core.AdminConsole.Enums.Provider
@using Bit.Core.Billing.Enums
-@using Bit.Core.Enums
+@using Bit.Core.Billing.Extensions
+@using Microsoft.AspNetCore.Mvc.TagHelpers
@inject Bit.Admin.Services.IAccessControlService AccessControlService
@model OrganizationEditModel
@{
@@ -13,6 +15,12 @@
var canRequestDelete = AccessControlService.UserHasPermission(Permission.Org_RequestDelete);
var canDelete = AccessControlService.UserHasPermission(Permission.Org_Delete);
var canUnlinkFromProvider = AccessControlService.UserHasPermission(Permission.Provider_Edit);
+
+ var canConvertToBusinessUnit =
+ AccessControlService.UserHasPermission(Permission.Org_Billing_ConvertToBusinessUnit) &&
+ Model.Organization.PlanType.GetProductTier() == ProductTierType.Enterprise &&
+ !string.IsNullOrEmpty(Model.Organization.GatewaySubscriptionId) &&
+ Model.Provider is null or { Type: ProviderType.BusinessUnit, Status: ProviderStatusType.Pending };
}
@section Scripts {
@@ -114,6 +122,15 @@
Enterprise Trial
}
+ @if (canConvertToBusinessUnit)
+ {
+
+ Convert to Business Unit
+
+ }
@if (canUnlinkFromProvider && Model.Provider is not null)
{