These columns were added to the Search view in the following Settings Query (userFields 2 and 3 below)
function (ctx, callback) {
var isAdmin = ctx.request.user.app_metadata && ctx.request.user.app_metadata.isAdmin;
return callback(null, {
connections: ["Username-Password-Authentication"],
userFields: [{
"property": "app_metadata.delegatedAdminRole",
"label": "Is Admin",
"display": true,
"create": {
"display": true,
"type": "text",
"placeholder": "This will be an admin role",
"disabled": true
}
},
{
"property": "app_metadata.isAdmin",
"label": "Admin",
"display": true,
"search": {
"display": true,
"listOrder": 10,
"listSize": 150,
"sort": true
},
},
{
"property": "blocked",
"label": "Is Blocked",
"display": true,
"search": {
"listOrder": 11,
"listSize": 150,
"sort": true,
"display": true
}
},
{
"property": "blocked_for",
"label": "Bruteforce Blocked",
"display": true,
},
{
"property": "connection",
"search": { "display": "false"}
}
],
canCreateUser: true
});
}
IsAdmin is a field exposed from appMetadata, so ignore this one for now. However, blocked is the actual property of a User, as to whether they are blocked or not. However, the "sort": true
property in search activates the search chevron in the header, but seems to have no effect on the sort order.