Select to view content in your preferred language

Display username in Experience

575
2
10-25-2023 03:13 AM
DataOfficer
Frequent Contributor

Is there a way to display a logged in user's username in an Experience? E.g. within a Text card?
I can see ways of using the user's details to filter data and so on, but not to actually display the logged in user's username or fullname.

Thanks.

0 Kudos
2 Replies
JeffreyThompson2
MVP Regular Contributor

In Developer Edition, you can access the props.user object in any custom widget. This object has all the data the portal stores about the user.

This data is not accessible in the Online/Enterprise Editions. 

GIS Developer
City of Arlington, Texas
DataOfficer
Frequent Contributor

Thank you Jeffrey that is useful to know. I was hoping for a solution in the standard Online edition.

0 Kudos