Starts in:
1 DAY
21 HRS
59 MIN
37 SEC
Starts in:
1 D
21 H
59 M
37 S
Open Closed

Hide Identity Management for all users. #5749


User avatar
0
aqudah81 created
  • ABP Framework version: v6.0.0
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • ** Auth Server Separated (for Angular)**: yes/no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Hello ,

We need to hide the Identity Management tab from Settings tabs . What is the best way to do that ?

Best regards


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

    hi

    Remove IdentitySettingManagementPageContributor from SettingManagementPageOptions

    Configure<SettingManagementPageOptions>(options =>
    {
        options.Contributors.Remove..
    });```
    
  • User Avatar
    0
    aqudah81 created

    Hi , I tried it , but the Identity Management tab still appear .

    Thanks

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Is the ui angular?

  • User Avatar
    0
    aqudah81 created

    Hi , Yes

  • User Avatar
    0
    mahmut.gundogdu created

    the simplest way remove the permission that name is AbpIdentity.SettingManagement then user cannot seen the settings.

    But if you want to remove the compenent in settings. Create a provider. Then add app.module.ts as provider. Then get settingsTab service and remove it. (I highly suggested permission based solution)

    
    import { SettingTabsService } from '@abp/ng.setting-management/config';
    import { APP_INITIALIZER } from '@angular/core';
    import { eIdentitySettingTabNames } from '@volo/abp.ng.identity/config';
    
    export const IDENTITY_SETTING_TAB_PROVIDERS = [
      {
        provide: APP_INITIALIZER,
        useFactory: configureSettingTabs,
        deps: [SettingTabsService],
        multi: true,
      },
    ];
    
    export function configureSettingTabs(settingtabs: SettingTabsService) {
      return () => {
        settingtabs.remove([eIdentitySettingTabNames.IdentityManagement]);
      };
    }
    
    
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06