Description
Allow dynamic links on admin user manage page based on user attributes
Problem
Currently, there is no way to add Javascript or customize a FreeMarker template on the admin user management page.
For example, let's say I was on the admin page for a user with the id ba5eba11-beef-c001-dada-b01dface0000
(i.e. http://local.fusionauth.io/admin/user/manage/ba5eba11-beef-c001-dada-b01dface0000) and I wanted to add a link for an internal user tool based on that user's id (or some other attribute). For example, I might want to link to https://some-internal-tool.com/user/ba5eba11-beef-c001-dada-b01dface0000
Ideally, the link would be added to this user management page: https://fusionauth.io/assets/img/docs/guides/advanced-registration-forms/limited-menu.png
Solution
Expose the admin user manage template to the FusionAuth default Theme so that customers can add custom logic, such as the ability to add dynamic links based on the presence of certain user attributes.
Alternatives/workarounds
You might be able to create an event for when a user is created, check the id of the user that is created, and then add the dynamic link in the user.data field. For existing users, you might search based on user id, or some other attribute and then update their user.data attribute with something like:
{
"user": {
"email" : "[email protected]",
"data": {
"link": "<a href=\"example.com\"\\>Click me</a>"
}
}
}
The downside here is that the link will not render as a link in the admin UI. If the tag can be rendered as a link, this might serve as a possible workaround. Additionally, this will require the customer to write the code to call the Elastic Search Search Engine API, and then update the user.data
field. Additionally, the link would be somewhat buried under the user.data
field in the UI. It would be better if the link appeared to the right of the user profile picture on the admin user manage page .
Community guidelines
All issues filed in this repository must abide by the FusionAuth community guidelines.
How to vote
Please give us a thumbs up or thumbs down as a reaction to help us prioritize this feature. Feel free to comment if you have a particular need or comment on how this feature should work.