Open Closed

Users who have Permission #3487


User avatar
0
damien.heasman created
  • ABP Framework version: v4.4.0
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes

I have had a good look through Documentation, Samples and Framework Source Code but I can't find how to do the following:

I need to get a List of Users that have a certain Permission. For example from the Screenshot below of our Permissions I would like to get a List back of Users that have the Permission Dispatch.Dockets.Create. Is there an AppService method that I can call where I pass in a Permission I get back a List of Users. If there is no direct method to do this can you please suggest how this would be possible with the Framework. Even if I was to get a full List of Users and their Permissions would be helpful. I need to call the Appservice from C# Razor Pages Code behind.


1 Answer(s)
  • User Avatar
    0
    barrett2474 created

    Manually - Can you check which Role(s) have that turned on, then see who's in that Role(s)? Less Manually - The DB has all the info you need if you're ok at writing SQL

Made with ❤️ on ABP v9.1.0-preview. Updated on December 12, 2024, 07:15