Open Closed

Hide Identity User Extended property when Tenant doesn't have the Feature enabled #7519


User avatar
0
HaydenFerries created

Hello I am trying to hide a Identity User Extended property based on whether or not the Tenant has a specific feature enabled.

I am using Volo.Abp.Identity.Pro and Volo.Abp.FeatureManagement 7.2.2 Here is my extended property within the ModuleExtensionConfigurator:

   ObjectExtensionManager.Instance.Modules().ConfigureIdentity(identity =>
    {
        identity.ConfigureUser(user =>
        {
            user.AddOrUpdateProperty<bool>( //property type: string
                EnformIdentityUserConsts.MidModeration, //property name
                property =>
                {
                    property.DisplayName = LocalizableString.Create<ePlusResource>("Mid Moderation");
                    property.DefaultValue = true;
                    
                    property.Api.OnGet.IsAvailable = false;
                    property.Api.OnCreate.IsAvailable = true;
                    property.Api.OnUpdate.IsAvailable = false;

                    property.UI.OnTable.IsVisible = false;
                    property.UI.OnCreateForm.IsVisible = true;
                    property.UI.OnEditForm.IsVisible = false;
                }
            );
        });
    });
  • ABP Framework version: v7.2.2
  • UI Type: Angular
  • Database System: EF Core SQL Serve
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Steps to reproduce the issue:
  • Create a Feature within the FeatureDefinitionProvider
  • Add identity extension within the ModuleExtensionConfigurator
  • This property will always show regardless of the feature being active
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

1 Answer(s)
  • User Avatar
    1
    maliming created
    Support Team Fullstack Developer

    hi

    It's not supported at the moment, I've created an issue, we'll consider it in the next release.

    https://github.com/abpframework/abp/issues/20245

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 09, 2026, 11:56
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.