~~NOTOC~~
[[user_management_api]] > [[BS2_EnrollUserSmallEx]]
----
===== BS2_EnrollUserSmallEx =====
[+ 2.6.3] Enrolls new user with efficient use of memory. \\
The only difference between [[BS2_EnrollUserEx]] which is using structure [[user management api#BS2UserBlobEx]] is that the 3rd parameter BS2UserPhoto of BS2UserSmallBlobEx is using pointer for efficient memory use. \\
**Tip**\\
Please use [[BS2_EnrollUserFaceEx]] for user enrollment to FaceStation F2.
==== Declaration ====
#include "BS_API.h"
int BS2_EnrollUserSmallEx(void* context, uint32_t deviceId, BS2UserSmallBlobEx* userBlob, uint32_t userCount, uint8_t overwrite);
[[user management api#BS2UserSmallBlobEx|See BS2UserSmallBlobEx Structure]]
==== Parameter ====
* [In] ''//context//'' : Context
* [In] ''//deviceId//'' : Device ID
* [In] ''//userBlob//'' : User information trying to enroll
* [In] ''//userCount//'' : Number of users
* [In] ''//overwrite//'' : Whether to overwrite duplicated user
==== Return Value ====
If successfully done, ''BS_SDK_SUCCESS'' will be returned. \\
If there is an error, the corresponding error code will be returned.
\\
==== See Also ====
[[BS2_EnrollUserSmall]]\\
[[BS2_EnrollUserSmallEx]]\\
[[BS2_GetUserSmallInfos]]\\
[[BS2_GetUserSmallInfosEx]]\\
[[BS2_GetUserSmallDatas]]\\
[[BS2_GetUserSmallDatasEx]]