Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Andy 3 posts 73 karma points
    Sep 12, 2024 @ 03:21
    Andy
    0

    Include username in member index

    Hi All,

    Version: 8

    We have a unique requirement where we need the member "username" field added to the members index.

    Would anyone know how to achive this?

    We alredy have a custom index config where we specify the include fields as per below. I've tried many different varisation of username to include the value however none seem to be correct, any advice much appreciated!

    IValueSetValidator IUmbracoIndexConfig.GetMemberValueSetValidator()
    {
        var includeFields = new[] {
            "Username",
            "userName",
            "UserName",
            "username",
            "umbracoMember",
            "umbracoMemberUser",
            "umbracoMemberUsername",
            "umbracoMemberUserName",
            "login",
            IndexConstants.Id,
            IndexConstants.NodeName,
            IndexConstants.CreateDate,
            IndexConstants.Email,
            ... the list goes on
    

    Thanks!

Please Sign in or register to post replies

Write your reply to:

Draft