You could try:
insert ignore into egw_acl (acl_appname, acl_location, acl_account, acl_rights)
select ‘syncml’,‘run’, account_id, 1 from egw_accounts
I’m pretty new to EGW and not entirely familiar with the database, however I think the above would work.