This article will guide you through changing the 'Automatic User Synchronization' Mode in BioStar 2 via BioStar 2 API.
You'll need to call below API in order to achieve this :
PUT /api/setting/biostar
Body request:
{
"BioStar" : {
"user_sync_method" : "<mode>"
}
}
Where <mode> can be:
- 0 - "Not Used"
- 1 - “All Devices”
- 2 - “All Devices (including user update from device)”
- 3 - “Specific Devices (Only devices belonging to the access group)”
In BioStar 2 Web UI, it corresponds to the below options :
[Postman request example]
[Postman response example]