File: //usr/syno/synoman/webapi/SYNO.Core.OTP.lib
{"SYNO.Core.OTP": {"allowUser": ["admin.local", "normal.local", "admin.domain", "normal.domain", "admin.ldap", "normal.ldap"], "appPriv": "", "authLevel": 1, "lib": "lib/SYNO.Core.User.so", "maxVersion": 2, "methods": {"1": [{"get": {"grantByUser": true, "grantable": false}}, {"reset": {"grantByUser": true, "grantable": false}}], "2": [{"get": {"grantByUser": true, "grantable": false}}, {"reset": {"grantByUser": true, "grantable": false}}, {"get_one": {"grantByUser": true, "grantable": false}}, {"save_mail": {"grantByUser": false, "grantable": true}}, {"get_qrcode": {"grantByUser": true, "grantable": false}}, {"edit_secret_key": {"grantByUser": true, "grantable": false}}, {"auth_tmp_code": {"grantByUser": true, "grantable": true}}]}, "minVersion": 1, "priority": -10}, "SYNO.Core.OTP.Admin": {"allowUser": ["admin.local", "admin.domain", "admin.ldap"], "appPriv": "", "authLevel": 1, "lib": "lib/SYNO.Core.User.so", "maxVersion": 1, "methods": {"1": [{"reset": {"grantByUser": false, "grantable": true}}, {"get": {"grantByUser": false, "grantable": true}}]}, "minVersion": 1, "priority": 0}, "SYNO.Core.OTP.EnforcePolicy": {"allowUser": ["admin.local", "admin.domain", "admin.ldap"], "appPriv": "", "authLevel": 1, "lib": "lib/SYNO.Core.User.so", "maxVersion": 1, "methods": {"1": [{"get": {"allowDemo": true, "grantByDefault": true}}, {"set": {"grantByDefault": true}}]}, "minVersion": 1, "priority": -10}, "SYNO.Core.OTP.Mail": {"appPriv": "", "authLevel": 0, "lib": "lib/SYNO.Core.User.so", "maxVersion": 1, "methods": {"1": [{"send": {"grantByUser": false, "grantable": true}}]}, "minVersion": 1, "priority": 0}}