fix provision_api

The provision_api does not work for groups and apps because it does not return OC_OCS_Result-objects. This PR fixes the issue.