The access_grant Object
Represents an Access Grant. Access Grants enable you to grant a user identity access to spaces, entrances, and devices through one or more access methods, such as mobile keys, plastic cards, and PIN codes. You can create an Access Grant for an existing user identity, or you can create a new user identity while creating the new Access Grant.- Access Grant
An Access Grant resource.
Properties
access_grant_id UUID
ID of the Access Grant.
access_grant_key String
Unique key for the access grant within the workspace.
access_method_ids List of UUIDs
IDs of the access methods created for the Access Grant.
client_session_token String
Client Session Token. Only returned if the Access Grant has a mobile_key access method.
created_at Datetime
Date and time at which the Access Grant was created.
customization_profile_id UUID
ID of the customization profile associated with the Access Grant.
display_name String
Display name of the Access Grant.
ends_at Datetime
Date and time at which the Access Grant ends.
errors List of Objects
Errors associated with the access grant.
The specific structure of each object in this list depends on the value of its error_code field.
Variants:
instant_key_url String
Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method.
location_ids List of UUIDs
name String
Name of the Access Grant. If not provided, the display name will be computed.
pending_mutations List of Objects
List of pending mutations for the access grant. This shows updates that are in progress.
The specific structure of each object in this list depends on the value of its mutation_code field.
Variants:
requested_access_methods List of Objects
Access methods that the user requested for the Access Grant.
reservation_key String
Reservation key for the access grant.
space_ids List of UUIDs
IDs of the spaces to which the Access Grant gives access.
starts_at Datetime
Date and time at which the Access Grant starts.
user_identity_id UUID
ID of user identity to which the Access Grant gives access.
warnings List of Objects
Warnings associated with the access grant.
The specific structure of each object in this list depends on the value of its warning_code field.
Variants:
workspace_id UUID
ID of the Seam workspace associated with the Access Grant.
Errors
cannot_create_requested_access_methods
Warnings
being_deleted
Indicates that the access grant is being deleted.
device_does_not_support_access_codes
Indicates that a device in the access grant does not support access codes and was excluded from code materialization.
overprovisioned_access
Indicates that the access grant has access to locations it should not have. Access methods are being removed from the extra locations.
requested_code_unavailable
Indicates that the requested PIN code was already in use on a device, so a different code was assigned.
underprovisioned_access
Indicates that the access grant should have access to more locations than it currently does. Access methods are being created for the missing locations.
updating_access_times
Indicates that the access times for this access grant are being updated.
Events
access_grant.created
An Access Grant was created.
access_grant.deleted
An Access Grant was deleted.
access_grant.access_granted_to_all_doors
All access requested for an Access Grant was successfully granted.
access_grant.access_granted_to_door
Access requested as part of an Access Grant to a particular door was successfully granted.
access_grant.access_to_door_lost
Access to a particular door that was requested as part of an Access Grant was lost.
access_grant.access_times_changed
An Access Grant’s start or end time was changed.
access_grant.could_not_create_requested_access_methods
One or more requested access methods could not be created for an Access Grant.
Endpoints
/access_grants/create
Creates a new Access Grant.
/access_grants/delete
Delete an Access Grant.
/access_grants/get
Get an Access Grant.
/access_grants/get_related
Gets all related resources for one or more Access Grants.
/access_grants/list
Gets an Access Grant.
/access_grants/request_access_methods
Adds additional requested access methods to an existing Access Grant.
/access_grants/update
Updates an existing Access Grant’s time window.
