Starts in:
2 DAYS
16 HRS
5 MIN
0 SEC
Starts in:
2 D
16 H
5 M
0 S
Open Closed

Want to access UserAppService createUser method #145


User avatar
0
lalitChougule created

I want to create a user from my custom appService i.e I just want to call create() method of UserAppService from my custom appService. Which Interface do I have to inject in my appService ?


3 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    You can inject IdentityUserManager. it has CreateAsync method for creating users.

  • User Avatar
    0
    lalitChougule created

    Hi,

    I am able to create user using IdentityUserManager.CreateAsync method but once the user is created I want to return the inserted userId.

    How to get inserted UserId ?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Objects are passed by reference, you can get the id from the user object after the unit of work is saved.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06