Creating Visionline Card-based Credentials
Learn how to create a card-based credential for Visionline.
// Step 1:
// Create the new ACS user.
const acsUser = await seam.acs.users.create({
acs_system_id: "11111111-1111-1111-1111-111111111111",
full_name: "Jane Doe",
email_address: "[email protected]"
});
// Step 2:
// Create a card-based credential for each entrance for the ACS user.
const credential = await seam.acs.credentials.create({
acs_user_id: acsUser.acs_user_id,
access_method: "card",
allowed_acs_entrance_ids: [
// List the IDs of the entrances to which
// you want to grant access.
room101.seam_acs_entrance_id
],
starts_at: "2024-12-01T15:00:00.000Z",
ends_at: "2024-12-04T12:00:00.000Z",
visionline_metadata: {
"card_format": "rfid48",
"override": true
}
});
// Step 3:
// Encode the credential onto a card.
// First, get the encoder that you want to use.
const encoder = (await seam.acs.encoders.list({
acs_system_ids: ["11111111-1111-1111-1111-111111111111"]
}))[0];
# Then, encode the card.
const encodingActionAttempt = await seam.acs.encoders.encodeCredential({
acs_credential_id: credential.acs_credential_id,
acs_encoder_id: encoder.acs_encoder_id
});
# To confirm that the encoding succeeded,
# poll the returned action attempt
# until its status is success.
await seam.actionAttempts.get({
action_attempt_id: encodingActionAttempt.action_attempt_id
});Next Steps
PreviousSpecial Requirements for iOS Mobile Access SDK DevelopmentNextSandbox Assa Abloy Visionline Access Control System
Last updated
Was this helpful?

