Open Closed

abp new solution Authority delegation =>delegate new user #7638


User avatar
0
kazim.cesur created

Hi,

Abp new solution Authority delegation =>delegate new user dropdown not showing existing users as documentation says. Is there any configuration needed to list existing users in delegate new user dropdown on Authority delegation popup?

  • ABP Framework version: v8.2.0
  • UI Type: MVC Leptonx
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue: create new solution via abp suite. add new user role and add 2 different users in previously added user role.


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

    hi

    Are there any error messages in your browser console?

    Please share the logs of backend

    Thanks

  • User Avatar
    0
    kazim.cesur created

    Hi,

    There is no error message in my console. You can check below. I defined 4 user. 2 users in newly created group. 2 user has admin rights. None of them listed here.

    Thanks

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share your test project via https://wetransfer.com/

    liming.ma@volosoft.com

    Thanks.

  • User Avatar
    0
    kazim.cesur created

    Hi Maliming,

    You can just create new solution with ABP Suite(MVC LeptonX, Tiered, EF Core (SQL Server)).

    Create user role and define 3 user under this role. Login one of this users and try Authority delegation =>delegate new user option. You will see your users are not listed there.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Create user group and define 3 user under this group

    What do you mean by user group?

  • User Avatar
    0
    kazim.cesur created

    Hi Maliming,

    I mean User Roles.

    Please find project at https://we.tl/t-LotvotLgYh

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You have to enter the full username to find the user.

    If an API can query all users, this is a security problem. So we changed the way.

  • User Avatar
    0
    kazim.cesur created

    Hi Maliming,

    How should we know this? Could you please also update your documentation? Its was waste of time for everyone.

    Thank you for your support.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Sorry for that. We will update the document.

  • User Avatar
    0
    kazim.cesur created

    Hi Maliming,

    You said "You have to enter the full username to find the user. If an API can query all users, this is a security problem. So we changed the way."

    How can we extend this functionality? We would like to enable search, not exact fullname. Could you please provide an example?

    Thank you for your support.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can override the GetUserLookupAsync method of IdentityUserDelegationAppService Try to return the users that start with the UserName

    
    public class GetUserLookupInput
    {
        public string UserName { get; set; }
    }```
    
Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35