Open Closed

Enable Action --> Options #3812


User avatar
0
shobhit created
  • ABP Framework version: v4.2.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes /
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

How We can enable/disable action list for Administration --> Identity Management --> Users

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

2 Answer(s)
  • User Avatar
    0
    shobhit created

    In the above example we have to hide "Claims" action

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    mahmut.gundogdu created

    The identity module has extensible system feature. So you can override entity_actions.

    import { EntityAction, EntityActionList } from '@abp/ng.theme.shared/extensions';
    import { IdentityEntityActionContributors, UsersComponent } from '@volo/abp.ng.identity';
    import { IdentityUserDto } from '@volo/abp.ng.identity/proxy';
    
    const claimsModal = new EntityAction<IdentityUserDto>({
      text: 'AbpIdentity::Claims',
      action: data => {
        const component = data.getInjected(UsersComponent);
        component.openPermissionsModal(data.record.id, data.record.userName);
      },
      permission: 'MyCustomPermissionToken',
      visible: data => true // implement your custom logic
    });
    
    export function claimsModalContributor(actionList: EntityActionList<IdentityUserDto>) {
      const index = actionList.indexOf(
        'AbpIdentity::Claims',
        (action, text) => action.text === text,
      );
      actionList.dropByIndex(index);
      actionList.addByIndex(claimsModal, index);
    }
    
    export const identityEntityActionContributors: IdentityEntityActionContributors = {
      'Identity.UsersComponent': [claimsModalContributor],
    };
    
    

    See the detail. https://docs.abp.io/en/abp/latest/UI/Angular/Dynamic-Form-Extensions

    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 28, 2026, 11:44
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.