From 89ff284f67e3b8534be45d5277b3a1c9dc9eb7cc Mon Sep 17 00:00:00 2001 From: Joseph Gigantino <128943406+Jgigantino31@users.noreply.github.com> Date: Mon, 23 Jun 2025 18:55:06 -0400 Subject: [PATCH] Update Program.cs Set three new license options to true: UseRiskInsights, UseOrganizationDomains, and UseAdminSponsoredFamilies. As mentioned in #229, licenses had to be regenerated starting in 2025.5.0. It looks like new options were added which default to false unless we set them to true here. I am not sure if the version needs to be bumped or not. I tested locally and I can now access the Claimed Domains page in my organization. Signed-off-by: Joseph Gigantino <128943406+Jgigantino31@users.noreply.github.com> --- src/licenseGen/Program.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/licenseGen/Program.cs b/src/licenseGen/Program.cs index 963586c..160463f 100644 --- a/src/licenseGen/Program.cs +++ b/src/licenseGen/Program.cs @@ -438,7 +438,9 @@ internal class Program Set("LicenseType", Enum.Parse(licenseTypeEnum, "Organization")); Set("LimitCollectionCreationDeletion", true); //This will be used in the new version of BitWarden but can be applied now Set("AllowAdminAccessToAllCollectionItems", true); - + Set("UseRiskInsights", true); + Set("UseOrganizationDomains", true); + Set("UseAdminSponsoredFamilies", true); Set("Hash", Convert.ToBase64String((Byte[])type.GetMethod("ComputeHash").Invoke(license, []))); Set("Signature", Convert.ToBase64String((Byte[])type.GetMethod("Sign").Invoke(license, [cert]))); @@ -450,4 +452,4 @@ internal class Program type.GetProperty(name)?.SetValue(license, value); } } -} \ No newline at end of file +}