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.
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.
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:
- You have a Port account and have completed the onboarding process.
- Port's Okta integration is installed and configured in your account.
- You have admin access to configure blueprints, scorecards, and dashboards in Port.
- Enable persistent calculation properties to filter widgets by calculated values.
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.
-
Go to the data model page in Port.
-
Find and click on the okta-user blueprint.
-
Click on the
{...}button in the top right corner, and choose Edit JSON. -
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}}} -
Click Save to update the blueprint.
Enhance the Okta group blueprint
Now let's enhance the group blueprint to track security-related group information:
-
Go to the data model page in Port.
-
Find and click on the okta-group blueprint.
-
Click on the
{...}button in the top right corner, and choose Edit JSON. -
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}}} -
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:
-
Go to the connectors page in Port.
-
Select the Okta integration.
-
Verify your mapping configuration includes groups:
Okta integration configuration (click to expand)
resources:- kind: okta-userselector:query: 'true'include_groups: trueinclude_applications: truefields: "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: .idtitle: .profile.displayName // .profile.firstName + " " + .profile.lastName // .profile.loginblueprint: '"okta-user"'properties:login: .profile.loginemail: .profile.emailfirstName: .profile.firstNamelastName: .profile.lastNamedisplayName: .profile.displayNametitle: .profile.titledepartment: .profile.departmentemployeeNumber: .profile.employeeNumbermobilePhone: .profile.mobilePhoneprimaryPhone: .profile.primaryPhonestreetAddress: .profile.streetAddresscity: .profile.citystate: .profile.statezipCode: .profile.zipCodecountryCode: .profile.countryCodestatus: .statuscreated: .createdactivated: .activatedlastLogin: .lastLoginlastUpdated: .lastUpdatedgroupNames: '[.groups[]?.profile.name | select(type == "string")]'relations:groups: .groups[]?.id- kind: okta-groupselector:query: 'true'port:entity:mappings:identifier: .idtitle: .profile.nameblueprint: '"okta-group"'properties:name: .profile.namedescription: .profile.descriptiontype: .typecreated: .createdlastUpdated: .lastUpdated -
Click Save & Resync to apply the mapping and sync the data.
Before creating widgets, verify that data is being synced:
-
Navigate to your software catalog.
-
Search for
okta-userorokta-groupto see if entities are being created. -
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
-
Go to the data model page in Port.
-
Click on the okta-user blueprint.
-
Go to the Scorecards tab.
-
Click + Add Scorecard.
-
Configure the scorecard:
User security posture scorecard configuration (click to expand)
Scorecard Name:
User Security PostureRules:
-
Active Status
- Level: Bronze
- Title: User is active
- Rule:
status == "ACTIVE"
-
Recent Activity
- Level: Silver
- Title: User logged in within last 90 days
- Rule:
daysSinceLastLogin != null and daysSinceLastLogin <= 90
-
Password Status
- Level: Bronze
- Title: Password is not expired
- Rule:
status != "PASSWORD_EXPIRED"
-
Account Status
- Level: Gold
- Title: Account is not locked or suspended
- Rule:
status != "LOCKED_OUT" and status != "SUSPENDED"
-
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
-
-
Click Save to create the scorecard.
Create admin group review scorecard
-
Go to the data model page in Port.
-
Click on the okta-user blueprint.
-
Go to the Scorecards tab.
-
Click + Add Scorecard.
-
Configure the scorecard:
Admin access scorecard configuration (click to expand)
Scorecard Name:
Admin group reviewRules:
-
Admin-named group membership
- Level: Gold
- Title: User is a member of an admin-named group
- Rule:
hasAdminRole == true
-
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
-
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"
-
-
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
-
Navigate to your software catalog.
-
Click on the + button in the left sidebar.
-
Select New dashboard.
-
Name the dashboard Okta Security Insights.
-
Click Create.
Add widgets
In the new dashboard, create the following widgets to visualize security insights:
Users by status (click to expand)
-
Click
+ Widgetand select Pie chart. -
Title:
Users by Status(add theUsericon). -
Choose the okta-user blueprint.
-
Under Breakdown by property, select Status.
-
Click Save.
Users by security risk level (click to expand)
-
Click
+ Widgetand select Pie chart. -
Title:
Users by Security Risk Level. -
Choose the okta-user blueprint.
-
Under Breakdown by property, select Security Risk Level.
-
Click Save.
Total active users (click to expand)
-
Click
+ Widgetand select Number Chart. -
Title:
Total Active Users(add theUsericon). -
Select
Count entitiesChart type and choose okta-user as the Blueprint. -
Select
countfor the Function. -
Add this JSON to the Initial filters editor:
{"combinator": "and","rules": [{"property": "status","operator": "=","value": "ACTIVE"}]} -
Select
customas the Unit and inputusersas the Custom unit. -
Click Save.
Users in admin-named groups (click to expand)
-
Click
+ Widgetand select Table. -
Title:
Users in admin-named groups. -
Choose the okta-user blueprint.
-
Add a filter on the In admin-named group calculation property equals
trueto show only users in admin-named groups. -
Configure columns to show: Display Name, Email, In admin-named group, Groups, Status, Last Login.
-
Click Save.
Inactive users (90+ days) (click to expand)
-
Click
+ Widgetand select Number Chart. -
Title:
Inactive Users (90+ days). -
Select
Count entitiesChart type and choose okta-user as the Blueprint. -
Select
countfor the Function. -
Add this JSON to the Initial filters editor:
{"combinator": "or","rules": [{"property": "lastLogin","operator": "isEmpty"},{"property": "lastLogin","operator": "notBetween","value": {"preset": "last3Months"}}]} -
Select
customas the Unit and inputusersas the Custom unit. -
Click Save.
Users with expired passwords (click to expand)
-
Click
+ Widgetand select Table. -
Title:
Users with Expired Passwords. -
Choose the okta-user blueprint.
-
Add filter where Status equals
PASSWORD_EXPIRED. -
Configure columns to show: Display Name, Email, Status, Last Login.
-
Click Save.
Locked or suspended users (click to expand)
-
Click
+ Widgetand select Table. -
Title:
Locked or Suspended Users. -
Choose the okta-user blueprint.
-
Add filter where Status is one of:
LOCKED_OUT,SUSPENDED. -
Configure columns to show: Display Name, Email, Status, Security Risk Level, Last Login.
-
Click Save.
Users in privileged-named groups (click to expand)
-
Click
+ Widgetand select Table. -
Title:
Users in privileged-named groups. -
Choose the okta-user blueprint.
-
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.
-
Configure columns to show: Display Name, Email, In admin-named group, Group Count, Days Since Last Login, Security Risk Level.
-
Click Save.
Admin groups (click to expand)
-
Click
+ Widgetand select Bar chart. -
Title:
Admin Groups. -
Choose the okta-group blueprint.
-
Under Breakdown by property, select Name.
-
Add filter to find admin groups by filtering on the
nameproperty:{"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"}]} -
Click Save.
Groups by type (click to expand)
-
Click
+ Widgetand select Pie chart. -
Title:
Groups by Type. -
Choose the okta-group blueprint.
-
Under Breakdown by property, select Type.
-
Click Save.
Groups with privilege-related names (click to expand)
-
Click
+ Widgetand select Table. -
Title:
Groups with privilege-related names. -
Choose the okta-group blueprint.
-
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.
-
Configure columns to show: Name, Type, Security Risk Level, Description.
-
Click Save.
Security risk distribution (click to expand)
-
Click
+ Widgetand select Bar chart. -
Title:
Security Risk Distribution. -
Choose the okta-user blueprint.
-
Under Breakdown by property, select Security Risk Level.
-
Click Save.
Troubleshooting
If your dashboard widgets show errors or no data, try the following:
Fix widgets that fail to load data
-
Verify data is synced:
- Navigate to your software catalog.
- Search for
okta-userorokta-groupentities. - If no entities exist, the Okta integration may not be syncing. Check the connectors page.
-
Check calculation properties:
- Ensure calculation properties like
daysSinceLastLogin,isPrivileged, andisAdminGroupare 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.
- Ensure calculation properties like
-
Verify filter syntax:
- For JSON filters, ensure the property identifier matches exactly (e.g.,
isPrivilegednotIs Privileged). - Boolean values should be
trueorfalse(not strings). - Check that the property exists in the blueprint schema.
- For JSON filters, ensure the property identifier matches exactly (e.g.,
-
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
-
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).
-
Verify property values:
- Status values are case-sensitive:
ACTIVE,LOCKED_OUT,SUSPENDED,PASSWORD_EXPIRED. - Boolean calculation properties return
trueorfalse, not strings.
- Status values are case-sensitive:
-
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:
-
Integrating Okta System Log API - Add sign-in events, failed authentication attempts, and security events.
-
Adding application data - Track application assignments and security configurations.
-
Including MFA data - Monitor multi-factor authentication enrollment and usage.
-
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.