Starts in:
1 DAY
19 HRS
31 MIN
33 SEC
Starts in:
1 D
19 H
31 M
33 S
Open Closed

Get FirstName, LastName user info in "currentUser" in Angular side #390


User avatar
0
hraval created
  • ABP Framework version: v3.0.5
  • UI type: Angular
  • Tiered (MVC) or Identity Server Seperated (Angular): no

Hi,

I want to get user info like FirstName, LastName in "currentUser" object in Angular side. Please share steps to add extra info in "currentUser" object.

To be specific, my usecase here is to show FirstName LastName instead of username in User Logged in section on right side.

Thanks.


2 Answer(s)
  • User Avatar
    0
    hraval created

    Hi,

    Any update on this? I don't want to call extra api to get the other user info.

  • User Avatar
    0
    alper created
    Support Team Director

    hi,

    This information is not available on the currentUser object at the moment. I have discussed it with the team and it'll be added to the currentUser which comes from http://domain.com/api/abp/application-configuration I've created an internal issue for this (for v3.2)

    Until this is implemented, you can use this URL to get the user's name surname: http://domain.com/api/identity/my-profile

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