function(ctx, callback) { var department = ctx.request.user.app_metadata && ctx.request.user.app_metadata.department; return callback(null, { // Only these connections should be visible in the connections picker. If only one connection is available, the connections picker will not be shown in the UI. connections: [ 'Username-Password-Authentication', 'My-Custom-DB' ], // The dictionary allows you to overwrite the title of the dashboard and the "Memberships" label in the Create User dialog. dict: { title: department ? department + ' User Management' : 'User Management Dashboard', memberships: 'Departments', menuName: ctx.request.user.name }, // The CSS option allows you to inject a custom CSS file depending on the context of the current user (eg: a different CSS for every customer) css: (department && department !== 'IT') && 'https://rawgit.com/auth0-extensions/auth0-delegated-administration-extension/master/docs/theme/fabrikam.css', // This option allows you to restrict creating new users canCreateUser: (department === 'IT') });}
function(ctx, callback) { var department = ctx.request.user.app_metadata && ctx.request.user.app_metadata.department; return callback(null, { // Only these connections should be visible in the connections picker. // If only one connection is available, the connections picker will not be shown in the UI. connections: [ 'Username-Password-Authentication', 'My-Custom-DB' ], // The dictionary allows you to overwrite the title of the dashboard and the "Memberships" label in the Create User dialog. dict: { title: department ? department + ' User Management' : 'User Management Dashboard', memberships: 'Departments' }, // User Fields are the custom fields that can be displayed in create and edit, and can also be used for searching, and can be used to customize the view user page userFields: [ { "label": "Conexión", "property": "connection", }, { "label": "Correo Electrónico", "property": "email", }, ... ], // The CSS option allows you to inject a custom CSS file depending on the context of the current user (eg: a different CSS for every customer) css: (department && department !== 'IT') && 'https://rawgit.com/auth0-extensions/auth0-delegated-administration-extension/master/docs/theme/fabrikam.css', languageDictionary: 'https://your-cdn.com/locale/es.json' });}
function(ctx, callback) { var department = ctx.request.user.app_metadata && ctx.request.user.app_metadata.department; return callback(null, { // Only these connections should be visible in the connections picker. // If only one connection is available, the connections picker will not be shown in the UI. connections: [ 'Username-Password-Authentication', 'My-Custom-DB' ], // The dictionary allows you to overwrite the title of the dashboard and the "Memberships" label in the Create User dialog. dict: { title: department ? department + ' User Management' : 'User Management Dashboard', memberships: 'Departments' }, // User Fields are the custom fields that can be displayed in create and edit, and can also be used for searching, and can be used to customize the view user page userFields: [ { "label": "Conexión", "property": "connection", }, { "label": "Correo Electrónico", "property": "email", }, ... ], // The CSS option allows you to inject a custom CSS file depending on the context of the current user (eg: a different CSS for every customer) css: (department && department !== 'IT') && 'https://rawgit.com/auth0-extensions/auth0-delegated-administration-extension/master/docs/theme/fabrikam.css', languageDictionary: 'https://your-cdn.com/locale/es.json' });}
function(ctx, callback) { var department = ctx.request.user.app_metadata && ctx.request.user.app_metadata.department; return callback(null, { // Only these connections should be visible in the connections picker. // If only one connection is available, the connections picker will not be shown in the UI. connections: [ 'Username-Password-Authentication', 'My-Custom-DB' ], // The dictionary allows you to overwrite the title of the dashboard and the "Memberships" label in the Create User dialog. dict: { title: department ? department + ' User Management' : 'User Management Dashboard', memberships: 'Departments' }, // User Fields are the custom fields that can be displayed in create and edit, and can also be used for searching, and can be used to customize the view user page userFields: [ { "label": "Conexión", "property": "connection", }, { "label": "Correo Electrónico", "property": "email", }, ... ], // The CSS option allows you to inject a custom CSS file depending on the context of the current user (eg: a different CSS for every customer) css: (department && department !== 'IT') && 'https://rawgit.com/auth0-extensions/auth0-delegated-administration-extension/master/docs/theme/fabrikam.css', languageDictionary: { loginsCountLabel: 'Cantidad de Logins:', searchBarPlaceholder: 'Busqueda de usuarios usando la sintaxis de Lucene', deviceNameColumnHeader: 'Dispositivo', ... } });}