{% extends "base.html" %} {% set active_nav = "my-organization" %} {% block title %}API Tokens — {{ target_user_name }} — LSMC Atlas{% endblock %} {% block content %} {% if not has_api_access %}

⚠ This user does not have API_ACCESS group membership.

Tokens cannot be created until the user is added to the API_ACCESS group.

{% else %}

Create Token for {{ target_user_name }}

Scope is always ext_org (tenant-scoped, max EXTERNAL_USER permissions).

{% endif %}

Existing Tokens ({{ tokens | length }})

{% if tokens %}
{% for t in tokens %} {% endfor %}
Name Prefix Status Created Expires Last Used Actions
{{ t.token_name }} {{ t.token_prefix }} {% if t.status == 'REVOKED' %} Revoked {% elif t.is_expired %} Expired {% else %} ● Active {% endif %} {{ t.created_at | format_dt(user_preferences) }} {{ t.expires_at | format_dt(user_preferences) }} {{ t.last_used_at | format_dt(user_preferences) if t.last_used_at else '—' }} {% if t.status != 'REVOKED' and not t.is_expired %}
{% else %} — {% endif %}
{% else %}

No tokens found for this user.

{% endif %}
{% endblock %}