10-14-2023 01:58 AM
Hey,
I'm using ADF 6.1.1 with APS 2.4. When I use the component <adf-identity-user-info ></adf-identity-user-info> it shows nothing. I also tried to call the service directly, but it gets all values as undefined, although I successfully log in, and I can see my list of apps.
What could be the problem and how I can fix it?
Thank you in advance.
11-04-2024 08:32 AM
Hi,
I imagine I'm late, but the problem may be that you're missing the isLoggedIn and identityUser properties.
The difference with the old component is these two parameters, the first tells the component if the user is logged in or not, normally it's false so when the component is placed without any property it's not displayed, and the second is the user information.
<adf-identity-user-info isLoggedIn="true" [identityUser]="user" [menuPositionX]="'after'" [menuPositionY]="'below'" [namePosition]="'right'" ></adf-identity-user-info>
You can take the info user with
this.identityUserService.getCurrentUserInfo()
<adf-identity-user-info
isLoggedIn="true"
[identityUser]="user"
[menuPositionX]="'after'"
[menuPositionY]="'below'"
[namePosition]="'right'"
></adf-identity-user-info>
Explore our Alfresco products with the links below. Use labels to filter content by product module.