Hide Log Information in the Auth0 Delegated Admin Extension

Overview

The Auth0 Delegated Admin Extension (DAE) displays log information in multiple locations. Hide the Logs tab next to the Users tab by assigning specific roles, and hide the Logs tab within User Details by configuring an Access Hook.

Applies To

  • Auth0
  • Delegated Admin Extension (DAE)
  • Access Hook

Solution

What configuration hides the Logs tab next to the Users tab?

Hooks cannot control the information on the Logs tab next to the Users tab. The DAE has four roles:

  • Delegated Admin - Administrator.
  • Delegated Admin - Operator.
  • Delegated Admin - User.
  • Delegated Admin - Auditor.

The Delegated Admin - User and Delegated Admin - Auditor roles lack permission to view the Logs tab. Assign one of these two roles to users who require restricted access to the Logs tab next to the Users tab.

What configuration hides the Logs tab within User Details?

Control the visibility of records in the User Details Logs tab using an Access Hook. The Access Hook only controls the User Details screen and does not affect the Logs tab next to the Users tab. Configure an Access Hook with the sample code snippet to uniformly hide the Logs tab within User Details for all users.
NOTE: No role exists that hides the Logs tab within User Details.

function(ctx, callback) {
  if (ctx.payload.action === 'read:logs') {
    return callback(new Error('You are not permitted to review logs.'));
  }
  return callback(null);
}

User Details

Review the Delegated Administration Access Hook documentation for additional details.

Recommended content

No recommended content found...