User Management API > BS2_SetUserOverride


This feature allows doors to remain open longer than the standard open time for users who need more time for access, such as people with disabilities or delivery personnel.
Set the extended open time for the door through extendedAutoLockTimeout in BS2Door, and specify users to whom the extended open time will apply through BS2UserOverride.
When using extended open time, the following rules apply:
  • When users with and without extended open time authenticate consecutively, the open time is applied based on the last authenticated user.
  • When using two-step authentication, if at least one authenticated user is subject to extended open time, the door opens with the extended open time.

[+ 2.9.12] Sets user information using extended door open time.

Declaration

#include "BS_API.h"
 
int BS2_SetUserOverride(void* context, BS2_DEVICE_ID deviceId, const BS2UserOverride* overrides, uint32_t numOfOverrides);

Parameters

  • [In] context : Context
  • [In] deviceId : Device ID
  • [In] overrides : Pointer to the information to set
  • [In] numOfOverrides : Number of information to set


Return Value

Returns BS_SDK_SUCCESS when performed successfully, and returns the corresponding error code when failed.

See Also