Open Closed

Remove OrganisationalUnits from menu. #3723


User avatar
0
epieters created
  • ABP Framework version: v5.3.4

  • UI type: MVC

  • DB provider: EF Core

  • Tiered (MVC) or Identity Server Separated (Angular): no

  • Exception message and stack trace:

  • Steps to reproduce the issue:"

I'm trying to remove OrganizationalUnits.
I've used the administration.TryRemoveMenuItem(IdentityMenuNames.OrganizationUnits), but the menu still appears.

image.png


2 Answer(s)
  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    First of all, we need to select Identity from the administration items.

    Can you try the code below?

    administration.Items.Single(x => x.Name == IdentityMenuNames.GroupName).TryRemoveMenuItem(IdentityMenuNames.OrganizationUnits);
    
  • User Avatar
    0
    epieters created

    Yep, this works.
    Thanks.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.3.0-preview. Updated on April 11, 2025, 10:10