This is the repository of the owncloud provisioning api client, which gives the ability to provision owncloud users, groups and apps
It implements the following provisioning API: https://doc.owncloud.org/server/8.0/admin_manual/configuration_user/user_provisioning_api.html
use Arnovr\OwncloudProvisioning\ApiConnection;
use Arnovr\OwncloudProvisioning\ProvisioningClient;
use Arnovr\OwncloudProvisioning\ResponseParser\XMLResponseParser;
use GuzzleHttp\Client;
$provisioningClient = new ProvisioningClient(
new ApiConnection(
new Client(),
'http://www.your-owncloud-instance.com/ocs/v1.php/cloud'
'username',
'password'
5 //timeout is optional
),
new XMLResponseParser()
);
$user = new CreateUser('username', 'password');
$provisioningClient->createUser($user);
$user = new EditUser('[email protected]');
$user->email = '[email protected]';
$provisioningClient->editUser($user);
- AddUserToGroup
- CreateGroup
- CreateUser
- DeleteGroup
- DeleteUser
- DeleteUserFromGroup
- EditUser
- FindGroups
- FindGroupsOfUser
- FindSubAdminGroupsOfUser
- FindUser
- FindUsers
- FindUsersOfGroup
- MakeUserSubAdminOfGroup
- RemoveUsersSubAdminRightsFromGroup
- DisableApp
- EnableApp
- FindAppInfo
- FindInstalledApps