> For the complete documentation index, see llms.txt.
Skip to main content

Check out Port for yourself ➜ 

Visualize Okta security insights

This guide demonstrates how to build a security analytics dashboard for Okta identity and access management. You'll visualize account status, login activity, and group-name signals using Port's Okta integration.

Group-name heuristics

The admin and privilege indicators below match group names; they do not query Okta administrator-role assignments or establish effective permissions. Risk labels and scorecard levels are example review criteria, not a compliance assessment. Adapt the name patterns and thresholds to your organization before acting on the results. The screenshots illustrate the dashboard layout; use the updated group-name labels in the steps below.

Okta Security Insights Dashboard showing user status, security risk levels, and admin groups Okta Security Insights Dashboard showing groups by type, privileged groups, security risk distribution, and users in admin-named groups Okta Security Insights Dashboard showing inactive users, expired passwords, locked users, and admin groups

Common use cases​

  • Review membership in groups with admin or privilege-related names.
  • Track user security status and lifecycle events.
  • Visualize group membership patterns and access distribution.
  • Identify security gaps in user provisioning and deprovisioning.
  • Audit access patterns and organizational structure.
  • Support reviews against your security policies.

Prerequisites​

This guide assumes the following:

Set up data model​

We'll enhance the data model to capture security-related information from Okta. The Okta integration provides users and groups data, which we'll extend with security properties and relationships.

Enhance the Okta user blueprint​

First, let's add the properties used by the dashboard. The groupNames array stores names from the integration's group enrichment so calculations do not need to dereference related entities. Each calculation reads stored entity properties or relation identifiers; it does not depend on another calculation property.

  1. Go to the data model page in Port.

  2. Find and click on the okta-user blueprint.

  3. Click on the {...} button in the top right corner, and choose Edit JSON.

  4. Update the blueprint to include security properties:

    Enhanced Okta user blueprint (click to expand)
    {
    "identifier": "okta-user",
    "title": "Okta User",
    "icon": "Okta",
    "schema": {
    "properties": {
    "login": {
    "title": "Login",
    "type": "string"
    },
    "email": {
    "title": "Email",
    "type": "string"
    },
    "firstName": {
    "title": "First Name",
    "type": "string"
    },
    "lastName": {
    "title": "Last Name",
    "type": "string"
    },
    "displayName": {
    "title": "Display Name",
    "type": "string"
    },
    "title": {
    "title": "Job Title",
    "type": "string"
    },
    "department": {
    "title": "Department",
    "type": "string"
    },
    "employeeNumber": {
    "title": "Employee Number",
    "type": "string"
    },
    "mobilePhone": {
    "title": "Mobile Phone",
    "type": "string"
    },
    "primaryPhone": {
    "title": "Primary Phone",
    "type": "string"
    },
    "streetAddress": {
    "title": "Street Address",
    "type": "string"
    },
    "city": {
    "title": "City",
    "type": "string"
    },
    "state": {
    "title": "State",
    "type": "string"
    },
    "zipCode": {
    "title": "ZIP Code",
    "type": "string"
    },
    "countryCode": {
    "title": "Country Code",
    "type": "string"
    },
    "status": {
    "title": "Status",
    "type": "string",
    "enum": [
    "ACTIVE",
    "INACTIVE",
    "PASSWORD_EXPIRED",
    "LOCKED_OUT",
    "SUSPENDED",
    "DEPROVISIONED"
    ]
    },
    "created": {
    "title": "Created Date",
    "type": "string",
    "format": "date-time"
    },
    "activated": {
    "title": "Activated Date",
    "type": "string",
    "format": "date-time"
    },
    "lastLogin": {
    "title": "Last Login",
    "type": "string",
    "format": "date-time"
    },
    "lastUpdated": {
    "title": "Last Updated",
    "type": "string",
    "format": "date-time"
    },
    "groupNames": {
    "title": "Group names",
    "type": "array",
    "items": {
    "type": "string"
    }
    }
    },
    "required": [
    "login",
    "email"
    ]
    },
    "calculationProperties": {
    "hasAdminRole": {
    "title": "In admin-named group",
    "type": "boolean",
    "calculation": "any((.properties.groupNames // [])[]; test(\"admin\"; \"i\"))"
    },
    "isPrivileged": {
    "title": "In privileged-named group",
    "type": "boolean",
    "calculation": "any((.properties.groupNames // [])[]; test(\"admin|privileged\"; \"i\"))"
    },
    "daysSinceLastLogin": {
    "title": "Days Since Last Login",
    "type": "number",
    "calculation": "def loginAge: .properties.lastLogin as $last | if $last == null or $last == \"\" then null else (try ($last | sub(\"\\\\.[0-9]+Z$\"; \"Z\") | fromdateiso8601) catch null) as $epoch | if $epoch == null then null else ([(now - $epoch) / 86400, 0] | max | floor) end end; loginAge"
    },
    "securityRiskLevel": {
    "title": "Security Risk Level",
    "type": "string",
    "calculation": "def loginAge: .properties.lastLogin as $last | if $last == null or $last == \"\" then null else (try ($last | sub(\"\\\\.[0-9]+Z$\"; \"Z\") | fromdateiso8601) catch null) as $epoch | if $epoch == null then null else ([(now - $epoch) / 86400, 0] | max | floor) end end; loginAge as $days | if .properties.status == \"LOCKED_OUT\" or .properties.status == \"SUSPENDED\" then \"CRITICAL\" elif .properties.status == \"PASSWORD_EXPIRED\" then \"HIGH\" elif .properties.status == null or $days == null then \"UNKNOWN\" elif $days > 90 then \"MEDIUM\" elif (any((.properties.groupNames // [])[]; test(\"admin|privileged\"; \"i\"))) and $days > 30 then \"MEDIUM\" else \"LOW\" end"
    },
    "groupCount": {
    "title": "Group Count",
    "type": "number",
    "calculation": "(.relations.groups // []) | length"
    }
    },
    "relations": {
    "groups": {
    "title": "Groups",
    "target": "okta-group",
    "required": false,
    "many": true
    }
    }
    }
  5. Click Save to update the blueprint.

Enhance the Okta group blueprint​

Now let's enhance the group blueprint to track security-related group information:

  1. Go to the data model page in Port.

  2. Find and click on the okta-group blueprint.

  3. Click on the {...} button in the top right corner, and choose Edit JSON.

  4. Update the blueprint to include security properties:

    Enhanced Okta group blueprint (click to expand)
    {
    "identifier": "okta-group",
    "title": "Okta Group",
    "icon": "Okta",
    "schema": {
    "properties": {
    "name": {
    "title": "Name",
    "type": "string"
    },
    "description": {
    "title": "Description",
    "type": "string"
    },
    "type": {
    "title": "Type",
    "type": "string",
    "enum": [
    "BUILT_IN",
    "OKTA_GROUP",
    "APP_GROUP"
    ]
    },
    "created": {
    "title": "Created Date",
    "type": "string",
    "format": "date-time"
    },
    "lastUpdated": {
    "title": "Last Updated",
    "type": "string",
    "format": "date-time"
    }
    },
    "required": [
    "name"
    ]
    },
    "calculationProperties": {
    "isAdminGroup": {
    "title": "Admin name match",
    "type": "boolean",
    "calculation": "(.properties.name // \"\") | test(\"admin\"; \"i\")"
    },
    "isPrivileged": {
    "title": "Privileged name match",
    "type": "boolean",
    "calculation": "(.properties.name // \"\") | test(\"admin|privileged|root\"; \"i\")"
    },
    "securityRiskLevel": {
    "title": "Security Risk Level",
    "type": "string",
    "calculation": "if ((.properties.name // \"\") | test(\"admin|privileged|root\"; \"i\")) then \"MEDIUM\" else \"LOW\" end"
    }
    },
    "relations": {
    "members": {
    "title": "Members",
    "target": "okta-user",
    "required": false,
    "many": true
    }
    }
    }
  5. Click Save to update the blueprint.

The date calculations accept UTC timestamps with or without fractional seconds. Missing or invalid login dates produce a null age and an UNKNOWN user risk label, unless the account status already matches a higher-priority rule. With persistent calculations, time-based values can lag by up to 10 hours.

Update connector mapping​

Keep include_groups: true and map group names alongside the existing group relation. Apply the mapping and resync before using the new calculations:

  1. Go to the connectors page in Port.

  2. Select the Okta integration.

  3. Verify your mapping configuration includes groups:

    Okta integration configuration (click to expand)
    resources:
    - kind: okta-user
    selector:
    query: 'true'
    include_groups: true
    include_applications: true
    fields: "id,status,created,activated,lastLogin,lastUpdated,profile:(login,firstName,lastName,displayName,email,title,department,employeeNumber,mobilePhone,primaryPhone,streetAddress,city,state,zipCode,countryCode)"
    port:
    entity:
    mappings:
    identifier: .id
    title: .profile.displayName // .profile.firstName + " " + .profile.lastName // .profile.login
    blueprint: '"okta-user"'
    properties:
    login: .profile.login
    email: .profile.email
    firstName: .profile.firstName
    lastName: .profile.lastName
    displayName: .profile.displayName
    title: .profile.title
    department: .profile.department
    employeeNumber: .profile.employeeNumber
    mobilePhone: .profile.mobilePhone
    primaryPhone: .profile.primaryPhone
    streetAddress: .profile.streetAddress
    city: .profile.city
    state: .profile.state
    zipCode: .profile.zipCode
    countryCode: .profile.countryCode
    status: .status
    created: .created
    activated: .activated
    lastLogin: .lastLogin
    lastUpdated: .lastUpdated
    groupNames: '[.groups[]?.profile.name | select(type == "string")]'
    relations:
    groups: .groups[]?.id
    - kind: okta-group
    selector:
    query: 'true'
    port:
    entity:
    mappings:
    identifier: .id
    title: .profile.name
    blueprint: '"okta-group"'
    properties:
    name: .profile.name
    description: .profile.description
    type: .type
    created: .created
    lastUpdated: .lastUpdated
  4. Click Save & Resync to apply the mapping and sync the data.

Verify data sync

Before creating widgets, verify that data is being synced:

  1. Navigate to your software catalog.

  2. Search for okta-user or okta-group to see if entities are being created.

  3. If no entities appear, check the connectors page to ensure the Okta integration is running and syncing successfully.

Create security scorecards​

Use these example scorecards to review account activity and group-name signals. The membership scorecard tracks name matches; it does not validate effective permissions or certify compliance.

Create user security posture scorecard​

  1. Go to the data model page in Port.

  2. Click on the okta-user blueprint.

  3. Go to the Scorecards tab.

  4. Click + Add Scorecard.

  5. Configure the scorecard:

    User security posture scorecard configuration (click to expand)

    Scorecard Name: User Security Posture

    Rules:

    1. Active Status

      • Level: Bronze
      • Title: User is active
      • Rule: status == "ACTIVE"
    2. Recent Activity

      • Level: Silver
      • Title: User logged in within last 90 days
      • Rule: daysSinceLastLogin != null and daysSinceLastLogin <= 90
    3. Password Status

      • Level: Bronze
      • Title: Password is not expired
      • Rule: status != "PASSWORD_EXPIRED"
    4. Account Status

      • Level: Gold
      • Title: Account is not locked or suspended
      • Rule: status != "LOCKED_OUT" and status != "SUSPENDED"
    5. Privileged Access Review

      • Level: Silver
      • Title: Privileged users logged in within last 30 days
      • Filter: isPrivileged == true (only applies to users in privileged-named groups)
      • Rule: daysSinceLastLogin != null and daysSinceLastLogin <= 30
  6. Click Save to create the scorecard.

Create admin group review scorecard​

  1. Go to the data model page in Port.

  2. Click on the okta-user blueprint.

  3. Go to the Scorecards tab.

  4. Click + Add Scorecard.

  5. Configure the scorecard:

    Admin access scorecard configuration (click to expand)

    Scorecard Name: Admin group review

    Rules:

    1. Admin-named group membership

      • Level: Gold
      • Title: User is a member of an admin-named group
      • Rule: hasAdminRole == true
    2. Admin-named group activity

      • Level: Silver
      • Title: User in an admin-named group logged in within last 30 days
      • Filter: hasAdminRole == true (only applies to users in admin-named groups)
      • Rule: daysSinceLastLogin != null and daysSinceLastLogin <= 30
    3. Account status for admin-named group members

      • Level: Gold
      • Title: Account is active and not locked
      • Filter: hasAdminRole == true (only applies to users in admin-named groups)
      • Rule: status == "ACTIVE" and status != "LOCKED_OUT" and status != "SUSPENDED"
  6. Click Save to create the scorecard.

Create dashboard​

Now let's create a comprehensive security insights dashboard to visualize all the security metrics.

Set up the dashboard​

  1. Navigate to your software catalog.

  2. Click on the + button in the left sidebar.

  3. Select New dashboard.

  4. Name the dashboard Okta Security Insights.

  5. Click Create.

Add widgets​

In the new dashboard, create the following widgets to visualize security insights:

Users by status (click to expand)
  1. Click + Widget and select Pie chart.

  2. Title: Users by Status (add the User icon).

  3. Choose the okta-user blueprint.

  4. Under Breakdown by property, select Status.

  5. Click Save.

Users by security risk level (click to expand)
  1. Click + Widget and select Pie chart.

  2. Title: Users by Security Risk Level.

  3. Choose the okta-user blueprint.

  4. Under Breakdown by property, select Security Risk Level.

  5. Click Save.

Total active users (click to expand)
  1. Click + Widget and select Number Chart.

  2. Title: Total Active Users (add the User icon).

  3. Select Count entities Chart type and choose okta-user as the Blueprint.

  4. Select count for the Function.

  5. Add this JSON to the Initial filters editor:

    {
    "combinator": "and",
    "rules": [
    {
    "property": "status",
    "operator": "=",
    "value": "ACTIVE"
    }
    ]
    }
  6. Select custom as the Unit and input users as the Custom unit.

  7. Click Save.

Users in admin-named groups (click to expand)
  1. Click + Widget and select Table.

  2. Title: Users in admin-named groups.

  3. Choose the okta-user blueprint.

  4. Add a filter on the In admin-named group calculation property equals true to show only users in admin-named groups.

  5. Configure columns to show: Display Name, Email, In admin-named group, Groups, Status, Last Login.

  6. Click Save.

Inactive users (90+ days) (click to expand)
  1. Click + Widget and select Number Chart.

  2. Title: Inactive Users (90+ days).

  3. Select Count entities Chart type and choose okta-user as the Blueprint.

  4. Select count for the Function.

  5. Add this JSON to the Initial filters editor:

    {
    "combinator": "or",
    "rules": [
    {
    "property": "lastLogin",
    "operator": "isEmpty"
    },
    {
    "property": "lastLogin",
    "operator": "notBetween",
    "value": {
    "preset": "last3Months"
    }
    }
    ]
    }
  6. Select custom as the Unit and input users as the Custom unit.

  7. Click Save.

Users with expired passwords (click to expand)
  1. Click + Widget and select Table.

  2. Title: Users with Expired Passwords.

  3. Choose the okta-user blueprint.

  4. Add filter where Status equals PASSWORD_EXPIRED.

  5. Configure columns to show: Display Name, Email, Status, Last Login.

  6. Click Save.

Locked or suspended users (click to expand)
  1. Click + Widget and select Table.

  2. Title: Locked or Suspended Users.

  3. Choose the okta-user blueprint.

  4. Add filter where Status is one of: LOCKED_OUT, SUSPENDED.

  5. Configure columns to show: Display Name, Email, Status, Security Risk Level, Last Login.

  6. Click Save.

Users in privileged-named groups (click to expand)
  1. Click + Widget and select Table.

  2. Title: Users in privileged-named groups.

  3. Choose the okta-user blueprint.

  4. Add filter using the JSON editor:

    {
    "combinator": "and",
    "rules": [
    {
    "property": "isPrivileged",
    "operator": "=",
    "value": true
    }
    ]
    }

    Or use the UI filter and search for In privileged-named group in the property dropdown.

  5. Configure columns to show: Display Name, Email, In admin-named group, Group Count, Days Since Last Login, Security Risk Level.

  6. Click Save.

Admin groups (click to expand)
  1. Click + Widget and select Bar chart.

  2. Title: Admin Groups.

  3. Choose the okta-group blueprint.

  4. Under Breakdown by property, select Name.

  5. Add filter to find admin groups by filtering on the name property:

    {
    "combinator": "or",
    "rules": [
    {
    "property": "name",
    "operator": "contains",
    "value": "admin"
    },
    {
    "property": "name",
    "operator": "contains",
    "value": "Admin"
    },
    {
    "property": "name",
    "operator": "contains",
    "value": "ADMIN"
    },
    {
    "property": "name",
    "operator": "contains",
    "value": "administrator"
    },
    {
    "property": "name",
    "operator": "contains",
    "value": "Administrator"
    }
    ]
    }
  6. Click Save.

Groups by type (click to expand)
  1. Click + Widget and select Pie chart.

  2. Title: Groups by Type.

  3. Choose the okta-group blueprint.

  4. Under Breakdown by property, select Type.

  5. Click Save.

Groups with privilege-related names (click to expand)
  1. Click + Widget and select Table.

  2. Title: Groups with privilege-related names.

  3. Choose the okta-group blueprint.

  4. Add filter using the JSON editor:

    {
    "combinator": "and",
    "rules": [
    {
    "property": "isPrivileged",
    "operator": "=",
    "value": true
    }
    ]
    }

    Or use the UI filter and search for Privileged name match in the property dropdown.

  5. Configure columns to show: Name, Type, Security Risk Level, Description.

  6. Click Save.

Security risk distribution (click to expand)
  1. Click + Widget and select Bar chart.

  2. Title: Security Risk Distribution.

  3. Choose the okta-user blueprint.

  4. Under Breakdown by property, select Security Risk Level.

  5. Click Save.

Troubleshooting​

If your dashboard widgets show errors or no data, try the following:

Fix widgets that fail to load data​

  1. Verify data is synced:

    • Navigate to your software catalog.
    • Search for okta-user or okta-group entities.
    • If no entities exist, the Okta integration may not be syncing. Check the connectors page.
  2. Check calculation properties:

    • Ensure calculation properties like daysSinceLastLogin, isPrivileged, and isAdminGroup are correctly defined in your blueprints.
    • Verify that persistent calculation properties are enabled for your organization, as this is required for filtering by calculation properties in widget filters.
  3. Verify filter syntax:

    • For JSON filters, ensure the property identifier matches exactly (e.g., isPrivileged not Is Privileged).
    • Boolean values should be true or false (not strings).
    • Check that the property exists in the blueprint schema.
  4. Test without filters:

    • Remove all filters from the widget to see if data appears.
    • If data appears without filters, the issue is with the filter configuration.
    • Gradually add filters back to identify which one is causing the problem.

Fix widgets with empty results​

  1. Check if data exists:

    • The filter may be working correctly, but there might genuinely be no users matching the criteria.
    • Try removing the filter to see all users.
    • Verify the filter values match actual data (e.g., status values are uppercase like ACTIVE, LOCKED_OUT).
  2. Verify property values:

    • Status values are case-sensitive: ACTIVE, LOCKED_OUT, SUSPENDED, PASSWORD_EXPIRED.
    • Boolean calculation properties return true or false, not strings.
  3. Check the Okta integration:

    • Ensure the integration has synced recently.
    • Check if users exist in your Okta organization that match the filter criteria.

Review the dashboard​

You've successfully created a comprehensive Okta Security Insights dashboard that visualizes:

  • User security posture - Status distribution, example risk labels, and review criteria.
  • Group-name signals - Membership in groups with admin or privilege-related names.
  • Access patterns - Group memberships and access distribution.
  • Security gaps - Inactive users, expired passwords, locked accounts.
  • Review priorities - Example risk labels based on account status, login age, and group names.

Extend the dashboard​

Extend with additional connectors​

While the current Okta integration focuses on users and groups, you can extend this dashboard by:

  1. Integrating Okta System Log API - Add sign-in events, failed authentication attempts, and security events.

  2. Adding application data - Track application assignments and security configurations.

  3. Including MFA data - Monitor multi-factor authentication enrollment and usage.

  4. Risk events - Integrate Okta Risk Insights for risky sign-in detection.

Set up automation​

Create automations to:

  • Alert security teams when high-risk users are identified.
  • Automatically update security risk levels based on user activity.
  • Generate reports for compliance audits.
  • Trigger remediation workflows for security gaps.

Create additional scorecards​

Build scorecards for:

  • Group security compliance.
  • Application access security.
  • MFA enrollment rates.
  • Password policy compliance.