Assign a Credential to a User

Assign a specified credential to a specified ACS user

Assigns a specified credential to a specified ACS user.

/acs/credentials/assign

post

Assigns a specified credential to a specified access system user.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
acs_user_idstring Β· uuidOptional

ID of the access system user to whom you want to assign a credential. You can only provide one of acs_user_id or user_identity_id.

user_identity_idstring Β· uuidOptional

ID of the user identity to whom you want to assign a credential. You can only provide one of acs_user_id or user_identity_id. If the ACS system contains an ACS user with the same email_address or phone_number as the user identity that you specify, they are linked, and the credential belongs to the ACS user. If the ACS system does not have a corresponding ACS user, one is created.

acs_credential_idstring Β· uuidRequired

ID of the credential that you want to assign to an access system user.

Responses
200

OK

application/json
post
/acs/credentials/assign

Request

Specify the desired user and credential by including the corresponding acs_user_id and acs_credential_id in the request body.

Request Body Parameters

Parameter
Type
Description

acs_user_id

String (UUID) Required

ID of the desired user

acs_credential_id

String (UUID) Required

ID of the desired credential

Sample Request

Response

Returns an acs_credential containing the following properties:

Property
Description

acs_credential_id

ID of the credential

acs_user_id

ID of the user to whom the credential belongs

display_name

Display name that corresponds to the credential type

code

Access (PIN) code for the credential

acs_system_id

ID of the access control system that contains the credential

access_method

Access method for the credential. Supported values: code, card, mobile_key

external_type

Brand-specific terminology for the credential type

external_type_display_name

Display name that corresponds to the brand-specific terminology for the credential type

workspace_id

ID of the workspace that contains the credential

created_at

Date and time at which the credential was created

is_multi_phone_sync_credential

Indicates whether the credential is a multi-phone sync credential

starts_at

Date and time at which the credential validity starts, in ISO 8601 format

ends_at

Date and time at which the credential validity ends, in ISO 8601 format

XXX_metadata

ACS manufacturer-specific metadata for the credential, where XXX is the manufacturer

Sample Response

This response contains manufacturer-specific metadata that may vary by manufacturer.

Last updated

Was this helpful?