Skip to main content
Version: v1 (Current)

Attendee Credential Types

Overview​

Attendee Credential Types define the different formats and types of credentials that can be assigned to attendees within a project. Each credential type represents a specific format (e.g., print badges, beacons) and configuration for how attendee credentials should be generated and managed.

Core Concepts​

Credential Type​

A Credential Type is a template/configuration that defines:

  • Format: The type of credential (print, beacon, etc.)
  • Name and Description: Human-readable identification
  • Badge Template: Optional association with a specific badge design
  • Default Status: Whether this is the default credential type for the project
  • Metadata: Additional stored configuration; not exposed by the reviewed dashboard validators

Default Credential Type​

Choose a default deliberately and verify it in the workflow that issues credentials. The platform has two different service lookups:

LookupBehavior
getDefaultType(project)Returns the oldest default by ID across formats, or null. Does not create a type.
default(project, format = 'print')Finds a default for that format. If none exists, creates Default with slug default_{format} and is_default = true. This path does not create a badge template.

Dashboard updates that set is_default to the JSON boolean true unset other project defaults in a transaction. The dashboard update controller rejects clearing the only default with “At least one credential type must be set as default”. These are update-path behaviors, not a universal database guarantee: the format-specific lookup can create another default, and the delete controller does not apply the last-default toggle check. Set a replacement before deleting a default; do not assume deleting it automatically selects another.

Changing a type does not by itself prove existing attendee credentials were reassigned or reprinted. Verify the issuing application's selection behavior separately.

Dashboard UI​

Credential Types Management​

The credential types management interface is accessible at:

/p/{team}/{project}/credential-types

Features​

Default Toggle​

Each credential type row includes a "Default" toggle switch that allows administrators to:

  • Quickly identify which credential type is currently set as default
  • Select a different default through a confirmed update
  • The system automatically handles unsetting the previous default

Toggle Behavior​

The Default field requires confirmation and requests a reload after updating. Confirm the change, then check the refreshed list. The controller rejects clearing the only default. Do not treat an unconfirmed field change as a saved change.

Create and configure a type​

  1. Open the project's Credential Types list and create a type with a clear name.
  2. Choose Print Badge (print), BLE Beacon (beacon) or NFC Tag (nfc_tag). These are the dashboard's offered choices; the current backend create rule requires a format but does not enforce that enum.
  3. Save and use the returned slug. The dashboard generates it from the supplied slug or name plus a random four-character suffix; do not predict it from the name alone.
  4. Open the detail page to edit the name and description. The type/format is read-only; the badge-template selector is shown for print types. Save detail changes explicitly (autoSave is disabled). The dashboard create validation accepts name, slug, format and default status; a description entered during creation is not included in that validated create payload. Save it on the detail page and reload to verify it persisted.
  5. If needed, confirm the Default toggle and check the resulting list.

When no default exists, the dashboard create request marks the new type as default. Otherwise it creates a non-default type. The creation service creates and attaches a new badge template, including for non-print formats; a template association alone does not mean a physical badge has been printed.

Permissions​

The credential-type policy uses the shared dashboard policy. Its configured rules map viewing to view_attendee_credential_types and creation, updates and deletion to manage_attendee_credential_types. Attendee credential permissions are separate (view_attendee_credentials / manage_attendee_credentials). Route authentication, project access and token abilities still apply; a permission name alone does not establish that a particular caller is authorized.

API Access​

Credential Types Endpoint​

List Credential Types (Read-Only)

GET /api/v1/projects/{teamSlug}/{projectSlug}/credential-types

This endpoint provides read-only access to retrieve credential types for a project; handle pagination rather than assuming one response contains every type. It's commonly used by:

  • Check-in applications to display available credential types
  • Integration systems to identify configured types by name and slug
  • External tools that need credential type labels and descriptions

Query and response contract:

  • The controller allows filtering by the model's fillable attributes and sorting by any column through Orion. The shared API trait sets a default limit of 100 and maximum of 1,000; follow response pagination rather than treating these as total-result limits.
  • The shared fetch query scopes records to the request's project, then applies tag visibility and permission data scopes. Authorization can further restrict what a caller sees.
  • The controller allows badgeTemplate and projectTags includes, but allowing a relation to load does not guarantee it is serialized.
  • The current resource returns id, name, slug and description (empty string when null). It adds project_tags when the relation is loaded. It does not return format, is_default, metadata, badge_template_id or a badgeTemplate object. Do not use this endpoint alone to discover the current default or retrieve a printable design.
  • Tag serialization excludes dashboard-only tags for ordinary callers; project API keys are exempt from that visibility filter. Keep API keys out of public browser code.

For example, a single item inside the paginated response's data array can look like:

{
"id": 3,
"name": "Speaker",
"slug": "speaker",
"description": "Session speakers"
}

This illustrates the item shape, not an entire response or a promise that a particular ID or slug exists in your project.

Types and assigned credentials are different resources​

A credential type describes a format and configuration. An attendee credential is an issued credential associated with an attendee. Listing types does not issue a credential, pair a beacon, grant access or print a badge. Use the REST API reference for attendee-credential operations and their permissions. List assigned records with GET /api/v1/projects/{teamSlug}/{projectSlug}/attendees/{attendee}/credentials; use a returned record’s id for rendering requests. Creating credentials uses the nested resource’s POST operation and its validated payload, not the type-list endpoint. The public credential-type resource itself currently registers only index; do not infer public create/update/delete endpoints from the dashboard routes.

Service Layer​

AttendeeCredentialTypeService​

The service layer handles:

  • Caching: Credential types are cached for performance
  • Default Management: The service update path clears other project defaults transactionally when is_default is the JSON boolean true
  • Cache Invalidation: Model observers invalidate selected lookup keys and the list cache on changes

Update Method​

The service's update() method includes special handling for the is_default toggle:

  • Wrapped in a database transaction for data integrity
  • When setting a credential type as default, automatically unsets others
  • Triggers model observers for the updated types
  • Returns the updated credential type model

Integration Patterns​

Common Use Cases​

  1. Check-In App Integration

    • Fetch available credential types via API
    • Display credential options to staff
    • Verify default selection in the issuing workflow before implementing quick assignments
    • Obtain format/default selection from an explicitly supported issuing workflow; those fields are absent from this list response
  2. Badge Printing Systems

    • Configure badge templates through the dashboard; the current public type serializer does not emit the design
    • Verify the linked design in the printing workflow
    • Check the selected credential type and design before sending a print job
  3. Attendee Registration

    • The standard attendee creation service attempts default assignment when no explicit type is supplied; other workflows must be checked separately
    • Allow selection from available credential types
    • Apply group-based credential selection only where the issuing workflow explicitly implements it

When credentials are assigned​

Entry pointSelection and expected result
Standard AttendeeService::createWith an explicit attendee_credential_type_id, creates a credential using that value and a random UUID identifier. Otherwise calls assignDefaultCredential. This describes the service path, not every registration integration.
assignDefaultCredentialUses the existing global default lookup. Returns null if no default exists or the attendee already has any non-deleted credential, regardless of type. Otherwise creates one credential with a random UUID identifier and label Default.
Attendee import post-processingProcesses newly created attendee IDs through bulk default assignment; updated attendees have no corresponding post-processing step. Only attendees in the import's project without credentials are selected. No default means zero assignments.
createAndAttachAn existing identifier in the project is reassigned to the supplied attendee. Otherwise it resolves the supplied type and falls back to a format-specific default when resolution fails. This is a separate path from default assignment.

Changing the default does not migrate existing credentials. An attendee who already has a beacon or NFC credential is also skipped by default assignment; the check is not restricted to print badges.

The import bulk path inserts in chunks of 500 and flushes project credential caches afterward. It bypasses per-model creation observers. The post-import strategy logs assignment exceptions without rethrowing them, so a completed attendee import is not proof that credentials were created. Inspect a sample of newly imported attendees and resolve assignment failures before check-in.

For internal integrations using createAndAttach, prefer an explicit, verified type slug in type. Despite its name, that method's attendee_credential_type_id input is passed to a lookup whose default key is slug; do not assume a numeric ID selects that type through this service method. This is not a statement about all HTTP endpoints, which have their own validation and mapping. If resolution fails, the format defaults to print unless supplied, and the format-specific fallback may create a default type. Also verify the identifier owner before attaching: finding an existing identifier takes the reassignment branch rather than rejecting it as already assigned.

Identifier identity and replay​

An identifier is not globally unique. For live credentials with a non-null type, the database uniqueness key is project + identifier + credential type. Another project or another type can legitimately use the same value. Soft-deleted records do not block reissuing that combination. A record whose type has been deleted has a null type and is outside the non-null-type uniqueness guarantee; inspect it before treating an identifier as an unambiguous credential.

The general identifierLookup service searches the current project without a type filter and chooses the lowest-ID live match. Consequently, createAndAttach can reassign that match before resolving the caller's requested type. Supplying type does not make the existing-identifier branch a type-specific lookup. When duplicate values exist across types, use an explicitly resolved credential record and the appropriate supported workflow; do not choose a record solely by its printed/scanned value.

For a new record, the service attempts insertion inside a transaction and, on a unique violation, reloads the live winner using project, identifier and type. That collision-recovery branch differs from the earlier identifier-only reassignment branch. It returns the winning row; it does not establish that all caller-desired fields or ownership were applied to that row. Inspect the returned record before reporting an assignment complete. A fresh random identifier on every retry also defeats identifier-based replay detection.

The native credential identity suite passed eight cases/22 assertions with synthetic SQLite records, covering the uniqueness boundary, cross-project/type reuse, soft-delete reuse, deterministic insert interleaving, default-assignment refusal and identifier exclusion from audit data. This is not a parallel-worker or PostgreSQL transaction-abort test; the SQLite transaction case cannot prove PostgreSQL savepoint recovery. Deployed schema, concurrent issuance and scanner/client interpretation still require acceptance testing.

Assignment troubleshooting​

  • Attendee has no credential: Check whether a default existed at assignment time, whether an explicit type was supplied, and whether the workflow actually calls the reviewed service. For imports, check post-processing errors even if the import completed.
  • Default changed but badge did not: Defaults select future assignments; they do not replace an existing credential or print a replacement. Review the attendee's current credential and the printing workflow.
  • Unexpected new print default: Check whether a createAndAttach caller supplied a numeric value to its slug lookup, omitted type, or supplied an unknown slug. Do not rely on fallback as validation of the intended type.
  • Identifier moved to another attendee: Check createAndAttach callers and the supplied identifier. Existing identifiers are reassigned in that service path.

After correcting a missing default or import failure, inspect existing credentials before issuing replacements. The supported nested attendee-credential POST operation accepts credential_type_slug and a required label; use the verified type slug from the current project. Omit identifier to let that request generate a UUID, or provide the intended identifier deliberately. Check the returned credential record and retain its ID before printing. A duplicate-type rejection should lead to inspecting/updating the existing credential through the supported workflow, rather than issuing another type or retrying with arbitrary identifiers. This API request differs from the internal service's misleading numeric-ID input described above; consult the REST API reference for the complete request.

Data Model​

Fields​

  • id: Primary key
  • project_id: Foreign key to project
  • name: Display name
  • description: Optional description text
  • slug: URL-friendly identifier (used in routing)
  • format: Credential format type (dashboard choices: print, beacon, nfc_tag)
  • is_default: Boolean flag for default status
  • badge_template_id: Optional foreign key to badge template
  • metadata: Additional configuration attribute; serialization is not a dashboard editing contract
  • created_at, updated_at: Timestamps

Relationships​

  • belongsTo Project
  • hasMany AttendeeCredential
  • belongsTo BadgeTemplate (optional)

Route Key​

The model uses slug as its route key name, allowing URLs like:

/credential-types/default-print

Instead of:

/credential-types/123

Best Practices​

When Creating Credential Types​

  1. Use Descriptive Names: Clear names help staff identify the correct credential type
  2. Set Appropriate Defaults: Choose the most commonly used format as default
  3. Configure Supported Fields: The model has a metadata attribute, but the reviewed dashboard create/update validators do not expose an arbitrary metadata editor
  4. Link Badge Templates: Associate with appropriate badge designs for print credentials

When Managing Defaults​

  1. Always Have One Default: Never leave a project without a default credential type
  2. Consider Impact: Check every credential-issuing integration that relies on a default
  3. Communicate Changes: Inform staff when default credential types change
  4. Test After Updates: Verify integrations still function correctly

For API Consumers​

  1. Cache Credential Types: The data changes infrequently, cache for performance
  2. Handle Default Changes: Verify selection through the issuing workflow; the public list response omits is_default
  3. Use Slug Identifiers: Reference by slug rather than ID when possible
  4. Check Serialization: An allowed include may not appear in the response; the current serializer omits badge-template data

Troubleshooting​

Issue: Cannot Unset Default​

Cause: Attempting to set the only default credential type to non-default

Solution: Create or set another credential type as default first

Issue: Multiple Defaults Exist​

Possible causes: Format-specific default creation, imports, manual changes or competing writes. Multiple defaults are not proof of corruption alone.

Solution: Confirm selection of the intended default in the dashboard, then reload and verify stored defaults and the issuing workflow. The update clears other stored defaults; concurrent changes and cached format-specific lookups still need separate checks.

Issue: API Returns No Credential Types​

Possible causes: No types configured, the wrong project selected, or authorization/tag/data scopes restricting the result

Solution: Check the selected project and caller access first, then inspect the Credential Types list. Create a type only if it is actually missing.

Issue: A service still sees the old default​

The service caches individual lookups for 24 hours and lists for 600 seconds. The observer invalidates the list, slug lookup and selected default keys, but its default key differs from the default_print / default_beacon keys used by the format-specific lookup. Verify which lookup the integration uses before attributing the result to the dashboard. Have the platform maintainer inspect the affected cache scope; do not repeatedly create replacement defaults to work around stale results.

Restricted global credential inspection​

System Attendee Credentials at /system/attendee-credentials lists assigned credential records across projects, separate from project Credential Types and pairing/printing controls. It inherits system-host super-admin, two-factor, authenticated/verified account, team-context and password-confirmation gates. The reviewed global controller has an index only and does not add a per-project action policy. Deployed ordinary-account refusal and exact scope still need acceptance; an ordinary project key is not the supported principal for this screen.

Find the credential and owning project​

The list shows Identifier, Type, Project, Label, Paired To and Added. Use the exact identifier, credential/type IDs and owning project rather than matching only a familiar label or repeated type name. The credential-type selector contains IDs from the global type list; names alone do not prove the type belongs to the intended project. Default ordering is Added descending, with 25 rows and a request limit of 1–100 rows per page. Pagination is not a complete inventory or a total count of issued/usable badges.

Text search matches the credential identifier, not attendee name, label, project name or every displayed field. Use the Credential Type and Pairing inline filters for their specific predicates, then verify returned record identities before diagnosis. Retained filter state can affect the page after navigation; inspect and clear the intended filter when checking whether a record is missing.

Understand pairing and identity fields​

The paired filter means the credential's attendee ID is non-null; unpaired means it is null. The attendee name/UUID comes from a left join that excludes soft-deleted attendees. A stored attendee ID can therefore satisfy Paired while its visible identity is blank or unavailable. This is not proof the credential is unassigned, belongs to another visible person or should be reassigned. Have the authorized project owner reconcile the exact credential/attendee records.

Paired To prefers first/last name, then UUID when available; a null attendee ID displays — unpaired —. These are presentation and association observations, not evidence of successful scan, allowed access-zone admission, printed badge, token identity or an active attendee session. Use the project's credential and admission workflow for those outcomes.

Apply filters without widening the investigation​

The controller accepts dedicated credential-type and paired query parameters as well as supported inline JSON filter entries. Dedicated parameters take precedence when both forms are supplied. Only those supported filter fields are mapped; the inline object's operator is not a general query language. Invalid/nonarray JSON is treated as no inline filters. Recheck the returned population rather than assuming an arbitrary filter expression restricted it.

The current global page offers search/filter/display only: it has no create, edit, pair, unpair, delete, restore or export control. Use the owning project's supported operations from this guide and its related admission/printing documentation, with their permissions and acceptance steps. Do not derive mutation endpoints from the monitor URL or use global visibility as a grant to change every displayed credential.

Verify results and recover misleading observations​

For a missing credential, check identifier search, selected type ID/pairing filter, paging, deleted record state and actual owning project before creating another credential. For a blank paired identity, inspect the saved attendee reference and deleted state through the authorized owner; do not unpair/reassign merely to populate the display. For an uncertain project operation, retain credential/type/project IDs and inspect saved association plus the required real scan/admission/print outcome before retrying.

Credential identifiers and attendee names/UUIDs can expose personal or access-related information. Keep raw values out of public screenshots/issues and use the minimum diagnostic facts with the intended support owner. Public source review does not establish physical possession, safe reassignment, device readiness or revocation. Detailed identity/device recovery remains private; no pairing, token, scan, badge print or credential mutation was performed for this review.

Verification scope​

Setup, request validation, dashboard field configuration, API serialization, default lookup/update behavior, assignment/identifier boundaries and observer cache keys were checked against the current platform source through 2026-10-15. A fresh-reader review covered setup, defaults, permissions, API omissions, assignment and recovery. Scoped native checks cover the serializer (three cases/four assertions) and SQLite credential identity behavior (eight cases/22 assertions). End-to-end permission enforcement, concurrent updates, physical printing and credential issuance in a deployed project still require acceptance testing.

The global credential monitor supplement was source-reviewed on 2026-10-15 at platform 3b48eb675f7c8e3c4f0b87d0cd613fa7fb371093; it adds no deployed query, identity, admission or pairing acceptance to prior credential tests.