Issuing Mobile Credentials from an Access Control System

Learn how to create mobile credentials across a user's multiple phones.

Overview

A credential manager, such as HID Origo Mobile Identities, is a cloud-based service responsible for issuing mobile credentials and keeping track of which mobile credentials have been issued to which phones. Enrolling the phone with the credential manager is a prerequisite for issuing mobile credentials. Seam streamlines this registration through an enrollment automation that automatically detects when new phones come online for a user identity and facilitates the enrollment process with the credential manager.

After setting up the enrollment automation, you can begin to issue mobile credentials to phones. Typically, without Seam, you would have to wait for a phone to complete enrollment before you could start sending credentials. Seam, however, simplifies this process by enabling you to preconfigure the mobile credential details. As soon as a new phone is enrolled successfully, Seam automatically issues the designated mobile credential to it.


Prepare the Phones for a User Identity to Start Receiving Mobile Credentials Using an Enrollment Automation

An enrollment automation initializes the phones for a user identity with a credential manager. Once enabled for a user identity, the automation oversees the registration of each new phone with a credential manager.

Initialize the User Identity with a Credential Manager

To set up an enrollment automation, call the Launch Enrollment Automation function with the ID of the user identity (user_identity_id) and the system ID of the credential manager (credential_manager_acs_system_id).

Request:

seam.enrollment_automations.launch(
  user_identity_id = "5c945ab5-c75e-4bcb-8e5f-9410061c401f",
  credential_manager_acs_system_id = "6737e186-8d54-48ce-a7da-a0be4d252172"
)

Response:

EnrollmentAutomation(user_identity_id='5c945ab5-c75e-4bcb-8e5f-9410061c401f',
    enrollment_automation_id='05505650-aa57-49ab-8f19-429738758895',
    acs_credential_provisioning_automation_id='05505650-aa57-49ab-8f19-429738758895',
    credential_manager_acs_system_id='6737e186-8d54-48ce-a7da-a0be4d252172',
    is_running=True,
    workspace_id='398d80b7-3f96-47c2-b85a-6f8ba21d07be',
    created_at="2024-01-09T05:45:33.068Z")

We may automate this step in the next iteration of our API. Consequently, you may not need to perform this step in the future.


What Are Multi-Phone Sync Credentials?

When issuing mobile credentials for a mobile app user, it is necessary to issue a multi-phone sync credential. As Managing Phones for a User Identity describes, a user identity (that is, a mobile app user) may possess multiple phones. To guarantee access across all of the phones for the user identity, the multi-phone sync credential manages the distribution of credentials to each phone linked to the user identity. The multi-phone sync credential also imports the credentials into the ACS and allocates them to the corresponding ACS user.


Issuing Multi-Phone Sync Credentials

To issue mobile credentials, you must configure a multi-phone sync credential. This type of credential automatically replicates itself when the app user logs in on a new phone. To configure a multi-phone sync credential, include the ID of the ACS user (acs_user_id), set is_multi_phone_sync_credential to true, and include the card details that would be shared across these credentials.

Seam configures the card details that you include in the request across all the credentials that it creates for each phone. Include only common card details, such as the facility code, and omit any unique card details such as the card number. For more information about specific card properties, see the user guide for the access control system or credential manager.

Request:

seam.acs.credentials.create(
  is_multi_phone_sync_credential = True,
  acs_user_id = "4d223973-0874-4831-8630-bfcb29e6bce0",
  access_method = "mobile_key",  
  # System-specific properties
  card_format = "rfid48",
  facility_code = "9",
)

Response:

AcsCredential(acs_credential_id='28dd02cb-7d54-42ee-94b4-1e70af0b21e1',
    acs_user_id='4d223973-0874-4831-8630-bfcb29e6bce0',
    display_name='Multi Phone Sync Credential',
    code=null,
    acs_system_id='8aaa5fa0-9381-4463-a0ed-85f9c1fbcef4',
    access_method='mobile_key',
    workspace_id='398d80b7-3f96-47c2-b85a-6f8ba21d07be',
    created_at='2024-01-11T10:42:25.848Z',
    is_multi_phone_sync_credential=True)

Last updated

Logo

© Seam Labs, Inc. All rights reserved.